dosubot[bot] commented on issue #40294: URL: https://github.com/apache/superset/issues/40294#issuecomment-4499996360
<!-- Answer --> The issue is clear from your logs — Superset is connecting via **HTTP** instead of **HTTPS**: ``` Starting new HTTP connection (1): XXXX:443 http://XXXX:443 "POST /v1/statement HTTP/1.1" 404 19 ``` Your Trino server expects HTTPS on port 443, but Superset defaults to plain HTTP for Trino connections unless explicitly configured otherwise. The `?protocol=https` query parameter in your URI doesn't work — the correct mechanism is `http_scheme` in `connect_args`. **How to fix it:** You need to configure HTTPS via one of these approaches: **Option A: Set authentication in "Extra" encrypted fields** — If you go to Advanced → Security and configure an `auth_method` in the encrypted extra JSON, Superset will automatically set `http_scheme=https` [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/db_engine_specs/trino.py#L344). For example, for basic auth: ```json { "auth_method": "basic", "auth_params": { "username": "admin", "password": "your_password" } } ``` **Option B: Upload a server certificate** — If you add a server certificate under the database connection settings, Superset will automatically use HTTPS and verify with that cert [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/db_engine_specs/trino.py#L323-L325). **Option C: Manually set `http_scheme` in the Extra field** — In the database connection's "Extra" JSON field (under Advanced → Other), add: ```json { "engine_params": { "connect_args": { "http_scheme": "https", "verify": false } } } ``` Set `"verify": false` only if you don't need certificate verification (e.g., for testing), otherwise provide the path to your CA bundle. Option C is probably the quickest way to test. The key takeaway is that the SQLAlchemy URI `trino://admin@host:443/catalog` stays the same — the HTTPS behavior is controlled by `connect_args`, not the URI query string. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).* --- Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=f4ea83aa-7872-4908-a71b-f04fc432c7e7) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
