Skip to content

Antalya 26.3: add --jwt-command to client#1809

Open
zvonand wants to merge 7 commits into
antalya-26.3from
feature/antalya-26.3/oauth-executable-token-in-client
Open

Antalya 26.3: add --jwt-command to client#1809
zvonand wants to merge 7 commits into
antalya-26.3from
feature/antalya-26.3/oauth-executable-token-in-client

Conversation

@zvonand
Copy link
Copy Markdown
Member

@zvonand zvonand commented May 18, 2026

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

clickhouse-client: added --jwt-command and --jwt-command-timeout, which invokes an external script to obtain a JWT for authentication; the script is re-invoked on every reconnect.

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

@zvonand zvonand added port-antalya PRs to be ported to all new Antalya releases antalya-26.3 labels May 18, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

Workflow [PR], commit [d0ccc64]

@zvonand zvonand marked this pull request as ready for review May 22, 2026 11:24
@zvonand
Copy link
Copy Markdown
Member Author

zvonand commented May 22, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38da1d22e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread programs/client/Client.cpp Outdated
Comment thread programs/client/Client.cpp Outdated
zvonand and others added 3 commits May 22, 2026 14:01
…of github.com:Altinity/ClickHouse into feature/antalya-26.3/oauth-executable-token-in-client
@zvonand
Copy link
Copy Markdown
Member Author

zvonand commented May 22, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

if (config().has("jwt"))

P2 Badge Reject --login when jwt-command is configured

This guard only checks config().has("jwt"), so a jwt-command coming from config.xml is not treated as conflicting with --login. In that case the --login path can run the interactive OAuth flow and set a JWT, and only later main fails with "jwt-command and jwt cannot both be specified". The conflict should be detected here as well (checking jwt-command too) so users get an immediate BAD_ARGUMENTS error without side effects.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

antalya antalya-26.3 port-antalya PRs to be ported to all new Antalya releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants