Repository navigation
Antalya 26.3 Backport of #131963 - Clear --jwt and the other credential options from the command line of clickhouse-client and clickhouse-keeper-client - #2930
Conversation
…ptions-from-command-line Clear `--jwt` and the other credential options from the command line of `clickhouse-client` and `clickhouse-keeper-client`
CI triage for 17d6e42Summary: 7 failing checks. 1 is caused by this PR (4 stateless jobs, all the same new test). 5 are infra or unrelated to this PR. DCO is a process check.
🔴
|
|
@blau-ai fix fails caused by this PR here |
…antalya-26.3 clickhouse-client clickhouse-client in this branch has no --oauth-client-secret option, so every client invocation in the test exited with an unrecognized-option error before connecting, and reading /proc/<pid>/cmdline failed.
|
Pushed a fix: c13bea4 Caused by this PR:
|
| Check | Evidence |
|---|---|
| Integration tests (amd_binary 1/5, amd_asan db disk old analyzer 7/8) | Whole modules (test_grpc_protocol, test_storage_mongodb, test_database_iceberg, test_storage_s3_queue, …) fail in cluster.start(): the docker image pull times out (helpers/cluster.py:3513, run_and_check(images_pull_cmd, timeout=600)). This is an infra problem. |
| Stress test (amd_ubsan) | Cannot start clickhouse-server: the Hybrid table test_1.t3 can't attach on restart because test_1.local_hot does not exist (UNKNOWN_TABLE). This is a Hybrid-engine table-load-order problem and has nothing to do with clearing credentials from argv. |
| Regression release swarms, DCO, Grype | Not related to the code in this PR. I did not look deeper into the swarms failure. |
CI on the new head still needs to confirm the fix.
CI triage for #2930 (head
|
| Check | Classification | PR-caused? |
|---|---|---|
| Stress test (amd_release) | Flaky: a Hybrid table points at an underlying table that was already dropped, so the server can't restart | No |
| DCO | Fails on every antalya-26.3 PR; the commits have no Signed-off-by |
No |
| PR | Aggregate gate, red only because of the stress test | n/a |
1. Stress test (amd_release): Cannot start clickhouse-server
From the report:
Application: Caught exception while loading metadata: Code: 722. DB::Exception: Waited job failed: Code: 695.
Load job 'load table test_3.t3' failed: Code: 60. DB::Exception: Table test_3.local_hot does not exist.
Maybe you meant test_3.local_cold?: Cannot attach table `test_3`.`t3` ... ENGINE = Hybrid(remote('localhost:9000', 'test_3', 'local_hot'), ...)
SETTINGS hybrid_watermark_cold = '2025-08-01', hybrid_watermark_hot = '2025-12-01'. (UNKNOWN_TABLE)
Why it's not this PR: the PR only changes clearPasswordFromCommandLine (client and keeper-client argv scrubbing) and adds one client test. The server's metadata loading and the Hybrid engine are untouched.
What happened: t3 with hybrid_watermark_hot = '2025-12-01' is the table 03645_hybrid_watermarks.sql creates (after its ALTER ... MODIFY SETTING). In the stress run, tests share the test_N databases and get killed partway through. 03645_hybrid_watermarks, 03646_hybrid_segment_pruning and 03682_system_hybrid_watermarks all create and drop the same local_hot/local_warm/local_cold names. So t3 survived while another test dropped local_hot. On restart, Hybrid's ATTACH requires the referenced table to exist, so the server fails to start.
Evidence it's flaky:
amd_debugandamd_ubsanstress passed on this same commit.Stress test (amd_release)passed on the latest base-branch PRs Antalya 26.3 Backport of #128217 - Evaluate thePARTITION BYexpression of file and object storage writes once per INSERT, not once per block #2907, Antalya 26.3 Backport of #131001 - Reuse the GCM cipher context between rows in encrypt/decrypt #2898 and Antalya 26.3: Bump to 26.3.64 #2871.- It's the same failure family as the open issue Hybrid engine —
currentDatabase()in engine arguments breaks server restart #1993 (Hybrid restart →UNKNOWN_TABLE). That issue was aboutcurrentDatabase(); here the name is resolved correctly (test_3), but the table it points to is gone.
Next step: safe to re-run. The real fix is a separate follow-up, not part of this PR. Either:
- make Hybrid tolerate missing underlying tables at ATTACH/startup, as
Distributeddoes, or - give the three Hybrid tests unique per-test table names so they can't drop each other's tables.
2. DCO
Neither commit (17d6e422 merge of upstream ClickHouse#131963, c13bea48 test fix-up) has a Signed-off-by trailer. This is normal for backports: DCO is also red on #2907, #2898 and #2871. No action needed unless the maintainers want sign-offs.
PR-related fixes
None needed. The one PR-specific problem, --oauth-client-secret not existing in antalya-26.3's clickhouse-client, was already fixed in c13bea48.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
clickhouse-clientnow clears the values of--jwt,--ssh-key-passphrase,--one-time-passwordand--oauth-client-secretfrom its command line, as it already did for--password, so they are no longer visible inpsand/proc/<pid>/cmdline.clickhouse-keeper-clientnow does the same for--passwordand--identity. Closes ClickHouse#131191. (ClickHouse#131963 by @groeneai)Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: