Connect via DBeaver when SSL
See original GitHub issueHi,
I’ve exposed MetriQL behind an ssl proxy and I can connect via the python library, but via DBeaver I get an exception when trying to connect.
Error starting query at https://some-domain.com/v1/statement returned an invalid response: JsonResponse{statusCode=500, statusMessage=, headers={access-control-allow-credentials=[true], access-control-allow-headers=[content-type,token], access-control-allow-origin=[*], content-length=[129], date=[Sun, 28 Nov 2021 06:46:36 GMT], samesite=[None; Secure], server=[openresty/1.19.9.1], strict-transport-security=[max-age=63072000]}, hasValue=false} [Error: {"errors":[{"id":null,"links":null,"status":null,"code":null,"title":"An error occurred","detail":null,"meta":null}],"meta":null}]
The server side says.
SELECT TABLE_CAT, TABLE_SCHEM, TABLE_NAME, TABLE_TYPE, REMARKS,
TYPE_CAT, TYPE_SCHEM, TYPE_NAME, SELF_REFERENCING_COL_NAME, REF_GENERATION
FROM system.jdbc.tables
WHERE TABLE_NAME LIKE '%' ESCAPE '\'
ORDER BY TABLE_TYPE, TABLE_CAT, TABLE_SCHEM, TABLE_NAME
javax.ws.rs.WebApplicationException: User must be set
io.trino.server.HttpRequestSessionContext.badRequest(HttpRequestSessionContext.java:503)
io.trino.server.HttpRequestSessionContext.assertRequest(HttpRequestSessionContext.java:452)
io.trino.server.HttpRequestSessionContext.buildSessionIdentity(HttpRequestSessionContext.java:223)
io.trino.server.HttpRequestSessionContext.<init>(HttpRequestSessionContext.java:120)
com.metriql.service.jdbc.StatementService.createSessionContext(StatementService.kt:95)
com.metriql.service.jdbc.StatementService.query$lambda-3(StatementService.kt:105)
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
DB2 SSL Connection in DBeaver - Little Miss Data
Enter your host, port, username and password as you normally would. However, in the Database field, enter the database name, sslConnection=True, ...
Read more >Connecting to Db2 over an SSL port - IBM
You can connect to Db2 over a Secure Sockets Layer (SSL) port. You can use either IBM Data Studio client (Windows 10 or...
Read more >DBeaver SSL is disabled - Stack Overflow
Just choose "Edit Driver Setting" under "Connection Settings". Go to "Driver Properties" add the keys and values according to your needs.
Read more >Steps to connect SSL Database from DBeaver - MORE Maximo
Open your terminal on laptop. Navigate to the folder where you have saved database certificate. Run - keytool -importcert -alias testdb2w -file db2-ssl.cert ......
Read more >DBeaver create SSL connection to DB2 - Selcuk - Medium
DBeaver create SSL connection to DB2 ... Then we need to add SSL setting under“Driver properties” tab. Properties KeyValue Pair:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Will test it out. That’s the way I wanted it to be 😃
Wow, that’s strange. Our HTTPS workloads work maybe because HTTP redirects to HTTPS and we didn’t realize it. Let me work on it know, will get back to you in an hour.