Skip to content

Enable Google as IdP for token-based authentication - #2499

Merged
zvonand merged 5 commits into
antalya-26.6from
improvement/antalya-26.6/oauth-google
Oct 22, 2026
Merged

zvonand merged 5 commits into
antalya-26.6from
improvement/antalya-26.6/oauth-google

Conversation

@zvonand

@zvonand zvonand commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

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

Enable Google as IdP for token-based authentication

CI/CD Options

Exclude tests:

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

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • 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.6 labels Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [48e9b7d]

Add a `Google` section next to `Entra` in the token authentication docs:
configuration, `expected_audience` and `username_claim` semantics (fields of
the `/tokeninfo` and `/userinfo` responses, since Google access tokens are
opaque), and mapping Google Groups to roles via the Cloud Identity API.
Also list `google` among the supported processor types.
@zvonand

zvonand commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

Tested manually against real Google -- everything works. Userinfo/tokeninfo as well as groups extraction etc

@zvonand
zvonand force-pushed the improvement/antalya-26.6/oauth-google branch from 0a1d57e to 48e9b7d Compare October 21, 2026 14:24
@zvonand zvonand self-assigned this Oct 21, 2026
@zvonand

zvonand commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

@blau-ai

@blau-ai

blau-ai commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

CI triage — @zvonand

Verdict: 5 failing checks, 0 PR-caused. Every failure is a pre-existing crash/bug, a known-flaky test, or a benign stderr warning. This PR changes only token-based authentication (JWKSProvider.cpp error strings + the Google /tokeninfo→/userinfo opaque-token processor) and tokens.md docs — none of the failing suites exercise that code (the Integration-tests suites, where token processors live, are green: 0 failures across all shards).


1. AST fuzzer (amd_debug) — not PR-caused (pre-existing server abort)

  • Report: Lost connection to server. Job log: Fuzzer exit code is 210 (NETWORK_ERROR) → Server exit code is 134 (SIGABRT). The live-check grep for MEMORY_LIMIT_EXCEEDED/TOO_MANY_SIMULTANEOUS_QUERIES did not match, so it's a genuine abort, not OOM. No core dumped and gdb reported No stack, so the exact crashing frame wasn't captured.
  • The fuzzed queries around the crash are ordinary SQL (JSONExtract, repeat, intDiv, array funcs over system.numbers_mt) executed as the default user over TCP — the AST fuzzer never authenticates with JWT/opaque tokens, so this PR's code is unreachable here.
  • Next step: safe to re-run. If it reproduces, it's a base-branch (antalya-26.6) fuzzer crash to track separately — not something this auth PR introduced or can fix.

2. Stateless (amd_asan_ubsan, distributed plan, parallel, 1/2) — not PR-caused

3. Stateless (amd_binary, cas storage, parallel) — not PR-caused

Both report Failed: 0 but Server died, and both hit the same logical error with the same STID 3994-4c1d:

Logical error: GroupingAggregatedTransform pushed bucket A twice

This is a bug in distributed/two-level aggregation merging (GroupingAggregatedTransform), entirely unrelated to authentication. The identical STID across two independent suites confirms it's one pre-existing defect, not a PR regression.

  • Next step: re-run to clear the red; file/track against the distributed-plan aggregation code if it persists on the base branch.

4. Stateless (amd_asan_ubsan, cas s3 storage, parallel, 2/2) — not PR-caused (flaky/benign)

Two sub-failures, both unrelated to auth:

  • 02435_rollback_cancelled_queries — result differs with reference (extra system.processes rows for a cancelled INSERT), failed 2/3 reruns. Known-flaky query-cancellation/rollback test; timing-dependent.
  • 03991_lazy_final_analysis_logging — Failed 0 out of 3 reruns (i.e. passed all reruns). Flagged only because of a benign warning on stderr: ConnectionGroup: Too many active sessions in group Disk, count 9100, warning limit 8000. Environmental, not a test failure.
  • Next step: safe to re-run.

5. Stress test (amd_debug) — not PR-caused

Cannot start clickhouse-server after a stress restart:

Code 36 BAD_ARGUMENTS: Alias table cannot refer to another Alias table:
Cannot attach table test_7.outer_alias_05213 ... ENGINE = Alias('test_7','inner_alias_05213')

A reattach failure in the Antalya Alias table engine (test 05213) when metadata is loaded on restart. Nothing to do with token auth.

  • Next step: re-run; track against the Alias engine load path if it recurs.

PR health check

The three changed files are tightly scoped and read cleanly: JWKS now raises AUTHENTICATION_FAILED with the URI/status/reason on non-200 responses; the Google processor fetches /tokeninfo first and only falls back to /userinfo when the username_claim isn't already present (a nice request-count optimization), with #include <IO/ReadHelpers.h> added for the new parsing. The suites that actually cover token processors (Integration tests, Fast test, Unit tests) are all green. My recommendation: re-run the five red checks; I expect them to go green or re-fail on pre-existing issues unrelated to this change. No code fix is warranted on this PR for any of them.

Triage from CI artifacts (praktika result_pr.json + job logs) for 48e9b7d. I did not build or run tests locally.

🤖 Generated with Claude Code

@zvonand
zvonand merged commit 10e34db into antalya-26.6 Oct 22, 2026
305 of 316 checks passed
@zvonand zvonand added the verified Approved for release label Oct 22, 2026
@zvonand zvonand removed the port-antalya PRs to be ported to all new Antalya releases label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants