Repository navigation
Antalya 25.8 Backport of #131963 - Clear --jwt and the other credential options from the command line of clickhouse-client and clickhouse-keeper-client - #2935
Conversation
…ptions-from-command-line Clear `--jwt` and the other credential options from the command line of `clickhouse-client` and `clickhouse-keeper-client` Conflicts committed as-is, conflict markers included: - programs/keeper-client/KeeperClient.cpp (both modified)
Resolved the keeper-client include conflict and trimmed the test to the options antalya-25.8 supports.
|
Port-AL: cherry-pick conflicts resolved by AI Conflicted files:
Commits:
|
CI triage for
|
| Check | Classification | Caused by this PR? |
|---|---|---|
| Integration tests (amd_binary, 2/5) | Flaky S3Queue timing test | No |
| GrypeScanServer / Grype Scan | Infra: the parse step hit its 60-minute timeout | No |
| DCO | Missing Signed-off-by on backport commits (same on other backport PRs) |
No |
This PR only changes programs/keeper-client/KeeperClient.cpp, src/Common/clearPasswordFromCommandLine.{h,cpp} and a new stateless test 05813_clear_credentials_from_command_line. That code clears credentials from the command line of clickhouse-client / clickhouse-keeper-client, and the server never runs it. All stateless, unit, stress and regression suites passed, including the new test.
1. Integration tests (amd_binary, 2/5): fail: 1, passed: 737, broken: 2
The only failing test is test_storage_s3_queue/test_1.py::test_multiple_tables_streaming_sync_distributed[unordered]. It failed on the first run and on the retry. The [ordered] variant passed both times.
for _ in range(150):
if (get_count(node, dst_table_name) + get_count(node_2, dst_table_name)) == total_rows:
...
> assert False
test_storage_s3_queue/test_1.py:283: AssertionError
- The test gives two S3Queue servers 150 s to ingest 1000 files (10,000 rows) and fails if the count doesn't match by then. Every file in the
system.s3queuedump from the failure isProcessed(587 entries oninstance). So ingestion was running; it did not finish inside the 150 s window. - Not caused by this PR: the diff contains no S3Queue, server or MergeTree code.
- Evidence it's flaky: upstream already had this test reported as flaky (Test
test_storage_s3_queue/test.py::test_multiple_tables_streaming_sync_distributedis flaky ClickHouse/ClickHouse#66834). The integration suites passed on the most recent antalya-25.8 backport PRs I checked (Antalya 25.8 Backport of #131154 - Reject out-of-rangeDecimalscale when reading aField#2856, Antalya 25.8 Backport of #127286 - Reject too deep cursors instead of exhausting the stack #2855, Antalya 25.8 Backport of #99628 - Fix TOCTOU race in vertical merge cancellation #2818, Antalya 25.8 Backport of #94615 - Fix default expression evaluation when referencing other columns with defaults #2797). - Next step: safe to re-run the job. If it fails a third time, I'd suggest a separate ticket to add it to
tests/broken_tests.yamlor relax the timeout, rather than any change here.
2. GrypeScanServer / Grype Scan
##[error]The action 'Parse grype results' has timed out after 60 minutes.
- The scan itself finished in about 3 minutes, and the status reports 0 high/critical vulnerabilities. The Python step that parses the results then hung until the 60-minute timeout. The same job takes about 4 minutes on Antalya 25.8 Backport of #131154 - Reject out-of-range
Decimalscale when reading aField#2856 and Antalya 25.8 Backport of #127286 - Reject too deep cursors instead of exhausting the stack #2855. - Classification: infra/tooling hang, not caused by this PR. Next step: re-run the job.
3. DCO
- Neither commit has a
Signed-off-bytrailer:43253106c1(the upstream merge commit) and8de1b2973f(my conflict-resolution commit). - DCO also fails on other antalya-25.8 backport PRs (Antalya 25.8 Backport of #131154 - Reject out-of-range
Decimalscale when reading aField#2856, Antalya 25.8 Backport of #127286 - Reject too deep cursors instead of exhausting the stack #2855), so it hasn't been blocking backports. If you need it green, a maintainer can set the DCO override. Fixing it in the branch would mean rewriting history with a force-push, which I'm not allowed to do.
Bottom line: the PR looks clean. Re-run Integration tests (amd_binary, 2/5) and the Grype job. CI on the re-run has the final word.
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: