Skip to content

Backport #108472 to 25.8: Enforce single-component matching for SSL certificate wildcards - #108763

Merged
alexey-milovidov merged 2 commits into
25.8from
backport/25.8/108472
Jun 30, 2026
Merged

alexey-milovidov merged 2 commits into
25.8from
backport/25.8/108472

Conversation

@robot-ch-test-poll4

@robot-ch-test-poll4 robot-ch-test-poll4 commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #108472
Cherry-pick pull-request #108701

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 25.8.26.3

@robot-ch-test-poll4 robot-ch-test-poll4 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Jun 28, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [c489df8]

@alexey-milovidov

Copy link
Copy Markdown
Member

Reviewed this automated backport and re-triggered CI.

Backport faithfulness: The change to src/Access/Authentication.cpp is byte-identical to the original #108472 (only hunk offsets and the index blob hashes differ, as expected for 25.8). The integration test test_ssl_cert_authentication/test.py and the new certs/config are also faithful. All Integration tests jobs (amd_asan old-analyzer 6/6 and amd_tsan 6/6) passed, including the new SSL wildcard cases.

Sole CI failure was an unrelated flake: Stateless tests (amd_asan, distributed plan, parallel, 2/2) reported 04201_trivial_count_with_additional_filter failing — but only as a stale commit-status; the GitHub Actions check-run for that exact job concluded SUCCESS. The diff is purely an EXPLAIN PIPELINE indentation flip (8 → 6 spaces) on the (ReadFromMergeTree) / MergeTreeSelect lines under the fuzzer setting --max_threads 1 (one fewer Resize nesting level). This stateless test has nothing to do with SSL certificate authentication and does not exercise any code this PR touches.

Action taken: merged fresh origin/25.8 (0 conflicts; net PR diff unchanged — 29 files, +929/-11) to re-trigger CI: run 28423925567.

@alexey-milovidov

Copy link
Copy Markdown
Member

@groeneai, the only red on this backport is an unrelated, pre-existing 25.8-branch flake, not something this SSL-auth backport can fix — could you take the 25.8 test-stabilization in a separate PR?

Failure: Stateless tests (amd_asan, distributed plan, parallel, 2/2) → 04201_trivial_count_with_additional_filter.

Root cause: the test captures EXPLAIN PIPELINE output with its indentation, but the 25.8 copy pins nothing, so under the fuzzer's --max_threads 1 the (ReadFromMergeTree) block loses one Resize nesting level (8 → 6 spaces) and the reference no longer matches.

Already fixed on master, but not cleanly cherry-pickable to 25.8: on master the test pins SET max_threads = 1; SET optimize_use_implicit_projections = 0; SET optimize_use_projections = 0; and its .reference was regenerated — but that reference reflects the post-a17b94ec153 ("Skip the recursive Planner after trivial-count optimization", not in 25.8) pipeline shape (it shows a (Filter)/FilterTransform wrapper and different base indentation). So 25.8 needs its own regenerated reference (pin the settings above + capture the 25.8 binary's output), which needs a 25.8 build — beyond what I can verify here.

This PR itself is a faithful backport of #108472 (Authentication.cpp byte-identical; all Integration tests jobs green). I've merged fresh origin/25.8 and re-triggered CI; if the rerun's fuzzer doesn't pick --max_threads 1 it should go green regardless.

@groeneai

Copy link
Copy Markdown
Collaborator

Done: #108904 (separate PR vs 25.8).

Pins max_threads = 1, optimize_use_implicit_projections = 0, optimize_use_projections = 0 and regenerates the .reference against a 25.8 binary (25.8.25.1). Confirmed the root cause on that binary via the test runner: the unpinned test fails under injected --max_threads 1 (the (ReadFromMergeTree) block drops from 8 to 6 spaces), and passes deterministically after pinning (40/40 with random settings on). As you noted, the master reference is not cherry-pickable - it has the (Filter)/FilterTransform wrapper from a17b94e, which is not in 25.8 - so 108904 carries a 25.8-specific reference.

@alexey-milovidov
alexey-milovidov merged commit efdce55 into 25.8 Jun 30, 2026
33 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/25.8/108472 branch June 30, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants