Skip to content

Add TLS verification toggle to trino - #458

Open
Bohreromir wants to merge 5 commits into
mainfrom
feat/trino-connection-tls-impersonation
Open

Bohreromir wants to merge 5 commits into
mainfrom
feat/trino-connection-tls-impersonation

Conversation

@Bohreromir

@Bohreromir Bohreromir commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Description

Add TLS verification and impersonation options to user created trino connections

Docs

Release note

Checklist

Author

  • AI review done, findings addressed
  • Tests added or updated
  • Changelog updated (if the repo keeps one)

Reviewer

  • Useful comments and logging
  • Docs added or updated per the style guide

Acceptance

  • Check for release notes and docs

@Bohreromir
Bohreromir added this pull request to stack #459 November 10, 2026 20:29
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.53% 9267 / 13721
🔵 Statements 66.47% 12444 / 18721
🔵 Functions 68.35% 2983 / 4364
🔵 Branches 57.47% 5227 / 9095
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/server/trino/config.ts 100% 100% 100% 100%
src/lib/server/trino/user-clients.ts 100% 100% 100% 100%
src/routes/(app)/trino/+page.server.ts 0% 0% 0% 0% 25-119
src/routes/(app)/trino/+page.svelte 0% 0% 0% 0% 401-817
src/routes/(app)/trino/validation.ts 33.33% 0% 0% 33.33% 8-28
Generated in workflow #1305 for commit d2e2d10 by the Vitest Coverage Report Action

@Bohreromir Bohreromir self-assigned this Nov 10, 2026
@Bohreromir
Bohreromir marked this pull request as ready for review November 10, 2026 20:33
@Bohreromir
Bohreromir force-pushed the feat/trino-connection-tls-impersonation branch from 5fff85b to 8596c50 Compare November 10, 2026 20:50
@Bohreromir Bohreromir moved this to Development: Waiting for Review in Stackable Engineering Nov 11, 2026
@labrenbe
labrenbe self-requested a review November 11, 2026 10:45
@labrenbe labrenbe moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Nov 11, 2026
@Bohreromir
Bohreromir force-pushed the feat/trino-connection-tls-impersonation branch from 18eea7c to 41d33b1 Compare November 12, 2026 11:08
@Bohreromir Bohreromir changed the title Add TLS verification and impersonation options to trino Add TLS verification toggle to trino Nov 12, 2026
@Bohreromir
Bohreromir force-pushed the feat/trino-connection-tls-impersonation branch from 41d33b1 to 811b728 Compare November 12, 2026 11:55
Base automatically changed from worktree-unified-ca-certs to main November 12, 2026 13:39
…nnection form

Connections entered on /trino could neither skip TLS certificate
verification nor turn off user impersonation.

- "Skip TLS certificate verification" toggle, only shown and accepted
  when STACKABLE_COCKPIT_TRINO_ALLOW_INSECURE_TLS=true
  (Helm: trino.tls.allowInsecureUserConnections)
- "Impersonate the logged-in user" toggle for basic auth, defaulting to
  STACKABLE_COCKPIT_TRINO_USER_IMPERSONATION
- Both settings are persisted in local storage; the connection summary
  shows "TLS unverified" when verification is skipped
Per-user connections use the deployment's impersonation setting
(STACKABLE_COCKPIT_TRINO_USER_IMPERSONATION) again, as before. The TLS
verification option stays.
…ABLE_COCKPIT_TRINO_ALLOW_INSECURE_TLS

The variable skips TLS certificate verification for the pre-configured
connection and, without STACKABLE_COCKPIT_TRINO_URL, lets users skip it
for their own. The Helm value trino.tls.insecure becomes
trino.tls.allowInsecure.
@Bohreromir
Bohreromir force-pushed the feat/trino-connection-tls-impersonation branch from b0e7b86 to cbf7e08 Compare November 12, 2026 13:39
STACKABLE_COCKPIT_TRINO_ALLOW_INSECURE_TLS both skipped verification for
the pre-configured connection and let users skip it for their own,
depending on whether STACKABLE_COCKPIT_TRINO_URL was set.

- STACKABLE_COCKPIT_TRINO_TLS_INSECURE (trino.tls.insecure) skips
  verification for the pre-configured connection, as on main.
- STACKABLE_COCKPIT_TRINO_USER_CONNECTION_TLS_ALLOW_INSECURE
  (trino.userConnection.tls.allowInsecure) lets users skip it for the
  connection they enter in the UI.

Cockpit and the Helm chart reject either setting where it has no effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

1 participant