You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/trino/pages/usage-guide/connect_to_trino.adoc
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,41 @@ It is typically secured via HTTPS with a certificated provided by a xref:secret-
20
20
As most setups use a self-signed certificate, that cannot be verified without the CA certificate, the easiest way is to disable the Trino cert validation as the following guide does, however this is not secure!
21
21
To use certificate validation instead, you need to extract the `ca.crt` file from the the SecretClass and provide it to the Trino client.
22
22
23
+
== Connect with Superset
24
+
25
+
In Superset, a `Database Connection` to Trino can be configured via the API or UI.
26
+
Set the `SQLALCHEMY URI` in the `Basic` tab.
27
+
28
+
image::connect-with-superset-1.png[]
29
+
30
+
Stackable Trino clusters use HTTPS per default. Therefore additional settings must be configured.
31
+
32
+
=== Set `http_scheme`
33
+
34
+
In the `Advanced` tab under `Other` in the `ENGINE PARAMETERS` settings, set the `http_scheme` explicitly to `https`.
35
+
36
+
[source,json]
37
+
----
38
+
{"connect_args":{"http_scheme":"https"}}
39
+
----
40
+
41
+
image::connect-with-superset-2.png[]
42
+
43
+
=== Set `ROOT CERTIFICATE`
44
+
45
+
Additionally, in the `Advanced` tab under `Security` in the `ROOT CERTIFICATE`, you may want to set a CA Bundle for e.g. self-signed certificates.
46
+
47
+
=== Skip TLS verification
48
+
49
+
WARNING: This deactivates TLS verification and should only be used for testing purposes and never in production!
50
+
51
+
In the `Advanced` tab under `Other` in the `ENGINE PARAMETERS`, set `verify` to `false`.
0 commit comments