Skip to content

Backport #109768 to 26.3: Mask session_token and Google ADC secrets in the explicit-url S3 form - #112334

Merged
Algunenano merged 3 commits into
26.3from
backport/26.3/109768
Jul 30, 2026
Merged

Algunenano merged 3 commits into
26.3from
backport/26.3/109768

Conversation

@robot-ch-test-poll2

@robot-ch-test-poll2 robot-ch-test-poll2 commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #109768
Cherry-pick pull-request #112290

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: 26.3.17.89

@robot-ch-test-poll2 robot-ch-test-poll2 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 Jul 28, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [fba86a6]

Summary: ✅

DatabaseS3.cpp/.h still had addTable() and a loaded_tables-based cache
in getTableImpl(), which the PR's own hunk left dangling once it
removed the loaded_tables field (undeclared identifier). Removed them,
matching master's "not cached across sessions" design.

The new 04510_s3_explicit_url_named_secret_mask test also exercised
use_environment_credentials on the S3 database engine, which this
branch's DatabaseS3 does not support; dropped that assertion.
…e table functions

A duplicated key-value argument such as
s3('http://...', format = 'CSV', format = 'TSV') is user-controlled input,
but parseKeyValueArguments threw LOGICAL_ERROR on the duplicate-key emplace.
LOGICAL_ERROR aborts debug builds and is treated as a critical failure by
stress and fuzzer checks, so a user typo must not produce it.

Backport of 4939661 (already applied to the
26.4 private backport), needed here too since the new secret-masking tests
from #109768 exercise this exact duplicate-key path.

Closes: #104267
@Algunenano
Algunenano merged commit 19dbdbe into 26.3 Jul 30, 2026
34 checks passed
@Algunenano
Algunenano deleted the backport/26.3/109768 branch July 30, 2026 14:56
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.

3 participants