Skip to content

Add allow_insecure_auth to opt out of the HTTP+auth guard - #633

Merged
hashhar merged 1 commit into
trinodb:masterfrom
hashhar:hashhar/494-allow-insecure-auth
Aug 20, 2026
Merged

Add allow_insecure_auth to opt out of the HTTP+auth guard#633
hashhar merged 1 commit into
trinodb:masterfrom
hashhar:hashhar/494-allow-insecure-auth

Conversation

@hashhar

@hashhar hashhar commented Aug 19, 2026

Copy link
Copy Markdown
Member

Description

Fixes #494.

The client rejects credentials over plain http://, with no opt-out. This breaks topologies where the transport is encrypted below the application layer, e.g. an mTLS-terminating service mesh sidecar: the connection looks like plain HTTP but isn't insecure end-to-end.

Add allow_insecure_auth (default False) to suppress the guard. If the coordinator has HTTPS enabled, Trino's own http-server.authentication.allow-insecure-over-http must also be set server-side.

Release notes

(x) Release notes are required, with the following suggested text:

* Add an `allow_insecure_auth` connection option to opt out of the guard
  against sending authentication credentials over plain HTTP for
  connections that are encrypted below the application layer.
  ({issue}`494`)

@azawlocki-sbdt azawlocki-sbdt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The client rejects credentials over plain http://, with no opt-out.
This breaks topologies where the transport is encrypted below the
application layer, e.g. an mTLS-terminating service mesh sidecar:
the connection looks like plain HTTP but isn't insecure end-to-end.

Add allow_insecure_auth (default False) to suppress the guard.
@hashhar
hashhar force-pushed the hashhar/494-allow-insecure-auth branch from 87b400e to 8a3d7ca Compare August 20, 2026 15:34
@hashhar
hashhar merged commit 1a4ba08 into trinodb:master Aug 20, 2026
11 checks passed
@hashhar
hashhar deleted the hashhar/494-allow-insecure-auth branch August 20, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Trino python client doesn't respect forwarded HTTP header

2 participants