Skip to content

Allow to store externalAuthenticationToken in SYSTEM Cache#28783

Merged
kokosing merged 2 commits intotrinodb:masterfrom
ssheikin:ssheikin/43/trino/cli-cache-token-SYSTEM
Apr 1, 2026
Merged

Allow to store externalAuthenticationToken in SYSTEM Cache#28783
kokosing merged 2 commits intotrinodb:masterfrom
ssheikin:ssheikin/43/trino/cli-cache-token-SYSTEM

Conversation

@ssheikin
Copy link
Copy Markdown
Contributor

(in dotfiles),
so it can be reused between processes, without requiring authentication. This may be helpful in case different CLI are run from the same machine.

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## Section
* Allow to store externalAuthenticationToken in SYSTEM Cache. ({issue}`issuenumber`)

@wendigo
Copy link
Copy Markdown
Contributor

wendigo commented Mar 20, 2026

What if I want to authenticate as two different users in the two different CLIs?

@ssheikin
Copy link
Copy Markdown
Contributor Author

The same question as
What if I want to authenticate to two different servers in the two different CLIs?
Don't use this type of caching, then.

Copy link
Copy Markdown
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

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

Can you please add tests to io.trino.client.auth.external.TestExternalAuthenticator?

@ssheikin ssheikin force-pushed the ssheikin/43/trino/cli-cache-token-SYSTEM branch from 0d64d60 to 3b0c061 Compare March 25, 2026 10:12
@github-actions github-actions bot added the docs label Mar 25, 2026
@ssheikin ssheikin force-pushed the ssheikin/43/trino/cli-cache-token-SYSTEM branch 2 times, most recently from d0f021b to 929a1e3 Compare March 25, 2026 10:42
@ssheikin
Copy link
Copy Markdown
Contributor Author

@wendigo @lukasz-walkiewicz would you like to take another glance here?

@augurpl
Copy link
Copy Markdown
Contributor

augurpl commented Mar 25, 2026

not an expert here so just, ack.

(in dotfiles),
so it can be reused between processes, without requiring authentication.
This may be helpful in case different CLI are run from the same machine.
Storing tokens cached within system deals with filesystem, where delays
are much more significant than in-memory. Increasing to 100
concurrent transaction increases the overall execution time, thus, also
increasing timeout for a test method.
@ssheikin ssheikin force-pushed the ssheikin/43/trino/cli-cache-token-SYSTEM branch from 929a1e3 to 2f14893 Compare March 31, 2026 16:32
@ssheikin
Copy link
Copy Markdown
Contributor Author

ssheikin commented Apr 1, 2026

Is it a good time to move forward with this PR?

@kokosing kokosing merged commit 9a0341b into trinodb:master Apr 1, 2026
99 checks passed
@github-actions github-actions bot added this to the 481 milestone Apr 1, 2026
@ssheikin ssheikin deleted the ssheikin/43/trino/cli-cache-token-SYSTEM branch April 1, 2026 11:59
@ebyhr ebyhr mentioned this pull request Apr 2, 2026
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.

4 participants