Skip to content

[fix](catalog) Mask credentials in data source properties and URLs - #70705

Merged
Gabriel39 merged 12 commits into
apache:masterfrom
Gabriel39:fix/mask-maxcompute-token-ozone-access-key
Nov 20, 2026
Merged

Gabriel39 merged 12 commits into
apache:masterfrom
Gabriel39:fix/mask-maxcompute-token-ozone-access-key

Conversation

@Gabriel39

@Gabriel39 Gabriel39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Background

External catalogs retain connector properties. Provider declarations feed the masking registry used by display, metadata and audit SQL.

What problem does this PR solve?

Issue Number: None
Related PR: #70338 (provider-owned masking and ALTER CATALOG audit coverage), #70696 (overlapping metastore URI annotation fix), #55016 (all-FE configuration forwarding), #67489 (resolved streaming audit inputs)
PR Type: Bugfix

Problem Summary:

Name-only matching exposes JDBC/URL and SDK/Hadoop credentials. Apply shared value-aware masking and a supplementary FE-local name regex, completing diagnostic annotations.

An exercised uri value:

Before After
https://fixture:fixture-password@api.example.com/v1?region=east&token=fixture-token https://api.example.com/v1?region=east&token=*XXX

Details

  • Change map: Production: +514/-44 across 28 files; tests: +1237/-76 across 30; CI: +9/-0 in one. No generated/docs/submodule changes. Production covers shared masking, provider annotations, configuration forwarding and structured streaming audit rendering.
  • Frequency: Always when a retained credential uses one of the uncovered names or connection formats; reproduced in property display and CREATE/ALTER audit rewriting.
  • Root cause: DatasourcePrintableMap checked names without inspecting values; credential declarations were incomplete. Generic URI parsing also hid local files, ViewFS and resolved streaming batches; configuration forwarding lost SQL escapes.
  • Why existing tests missed it: Property tests missed format-specific locations; streaming assertions had accepted hidden final URIs. SQL audit tests missed these formats; existing ADBC metadata tests already require visible local paths. Admin tests missed string escaping.
  • Fix: Share catalog/audit/lineage masking, complete credential annotations and distinguish diagnostic URIs; preserve supported locations and independently sanitize selected streaming files at final audit emission; quote forwarded configuration strings correctly.
  • Other paths and branches: Shared output callers inherit the rules. Cached branch-3.1/4.0/4.1/4.2 retain the parsing gap; only master changes. No single introducing PR was identified.
  • Configs and defaults: datasource_sensitive_property_pattern is FE-local, mutable and case-insensitive, defaulting to password|passwd|secret|token|credential|access[._-]?key|api[._-]?key. Startup/custom-file/runtime validation rejects invalid stored expressions without replacing the previous value. (?!) disables only the supplement; empty matches every name. Configure all serving FEs consistently.
  • Behavior change: Stored properties and connections are unchanged. Display is more conservative: keyword matches can hide metadata, and URLs can lose userinfo/fragments or normalize query separators.

The complete masking rules are:

Input Output rule
Existing exact sensitive keys and provider prefixes Remain masked, independently of the configurable pattern. Existing hidden-property rules still omit their entries.
Recognizable JDBC property names Names ending in a JDBC url/uri component, including jdbc_url, jdbc.jdbc_url, iceberg.jdbc.uri, and paimon.jdbc.uri, mask completely. connectionString, connection_string, connection-string, and connection.string suffixes also mask completely.
JDBC values under any name Any trimmed value beginning with jdbc:, case-insensitively, masks completely, including a bare uri alias and opaque/driver-specific JDBC syntax.
Native SDK credentials Bare or dot/underscore/hyphen-delimited final components token, credential, or credentials mask completely. Registered aliases and the configurable pattern add coverage.
Hadoop credentials The built-in families below mask completely, including dynamic bucket/account names and names prefixed before fs.; they do not depend on the configurable pattern. Other credential-like names receive the default pattern's protection.
Custom names A match against the configured regex masks the entire value. Matching is a search, so the default protects custom.password, clientSecret, and custom.accessKey. It is unioned with every permanent rule.
Ordinary addresses Hostnames, IPv4, bracketed IPv6, optional numeric ports in 0–65535, and comma-separated host lists remain visible. Empty address values stay empty.
URL selection Sanitize properties ending in a delimited uri/url/host/endpoint/address component, including plural forms, and hierarchical scheme:// or file:/, hdfs:/, viewfs:/ values under other names. A name already classified sensitive takes precedence and masks completely.
Supported URL schemes http, https, thrift, hdfs, viewfs, file, s3, s3a, s3n, oss, cos, cosn, obs, gs, abfs, abfss, wasb, wasbs. Preserve the host, port, ordinary path, and non-sensitive query parameters; remove authentication userinfo (Azure exception below) and the entire fragment.
Local driver paths and file URIs Recognized driver_url suffixes retain absolute POSIX paths, including spaces/Unicode; protocol-relative, control, query, fragment, userinfo, matrix or nested-URL syntax masks completely. Hierarchical file:/absolute/path and file:///absolute/path retain their spelling, require no authority, and use the common query/signature/fragment rules. Name/JDBC masking takes precedence.
Native filesystem locations viewfs://mount-name/path accepts validated ordinary-address authority syntax, including ASCII underscore mount names, with numeric-port checks; it names a logical mount table rather than requiring a DNS host. Hierarchical absolute hdfs:/path, hdfs:///path and viewfs:///path can omit authority and retain their slash form, using configured nameservice/default-mount semantics. GCS gs:// authorities require 3–222 lowercase ASCII letters/digits/dots/underscores/hyphens, start/end with a letter/digit, and dot-separated components at most 63 characters; ports, escaping and other syntax mask completely. This accepts underscores rather than imposing DNS-host syntax; remove authentication userinfo and retain common query/path/signature checks. This is display-safety validation, not bucket-creation policy. HTTP/S3 host validation remains strict. GCS naming rules.
Resolved S3 streaming audit inputs Snapshot task-selected files; sanitize each singleton location independently, then assemble the existing escaped batch syntax. Preserve selected filenames in final success/failure/notification audit events, including tested literal commas, braces, brackets, backslashes, spaces, hashes, percent text and plus signs. Already-decoded selected keys treat # literally, including in query-shaped suffixes; temporary URI encoding is only for validation. Native path text is already decoded, so literal %, %HH and + are preserved without another decoding or URI-encoding-layer check. Native query-shaped suffixes preserve non-secret separator spelling, empty components and raw values. Whole-suffix temporary encoding is only for URI validation; names/signatures retain shared rules, while value inspection checks raw and at most three percent-decoded views (including form spaces) and masks residual encoding. Matrix/nested/list-shape path guards and unknown-name masking remain. Ordinary URL fragments still disappear. Query credentials/signatures retain their common policy. Any signed/unreliable location masks the entire batch. Apply current name rules and sanitize all other TVF properties at emission; execution inputs remain unchanged. Release temporary map/list snapshots on the worker after synchronous emission, including failure and early cancellation. This exception is internal and does not admit untrusted catalog/SQL URI-list strings.
Azure storage locations For abfs, abfss, wasb, and wasbs (case-insensitive), retain container@host after validating the raw container with the existing AzureUri grammar: one character for compatibility, or 3–63 lowercase ASCII letters/digits/hyphens, beginning and ending with a letter/digit. Missing, encoded, malformed or password-bearing containers mask the whole URI. Path/query checks and signed-URL masking still apply.
URL query credentials Decode parameter names, process duplicates and both &/; separators, and mask values whose names match permanent/configured rules or contain password/passwd/pwd/secret/token/credential, access/API/account/private/auth/app/application key variants, or authorization; exact auth and key are also protected. Ordinary URL query separators render as &; native selected-key suffixes retain their separators and empty components; decoded names must use ASCII letters/digits, dot, underscore, tilde, or hyphen.
Signed URLs A decoded query name containing signature, or a delimited sig/sas component, masks the entire URL, including AWS/GCS/OSS/CloudFront signatures and Azure SAS.
Unreliable address parsing For ordinary URL/address inputs, unknown schemes, opaque/invalid URLs, invalid host/port or escaping, unrecognized query names, matrix path parameters, repeated encoding, and nested connection strings in otherwise unclassified query values, including whitespace/form-space-prefixed JDBC, mask completely. Outside the structured streaming path above, any comma-containing URL masks completely, including ordinary query commas; decoded paths containing commas or nested :// also mask completely. Valid plain host:port lists remain visible. No raw-value or parser-exception fallback is logged.
All-FE configuration SQL ADMIN SET ALL FRONTENDS CONFIG quotes decoded names and values according to the forwarded sql_mode; regex backslashes and quotes survive peer reparsing in default and NO_BACKSLASH_ESCAPES modes.
Typed URI diagnostics Iceberg/Paimon JDBC and REST URI fields, including the shared uri alias, use sensitive=true, sensitiveInDiagnosticsOnly=true: non-empty diagnostic values render as ***, empty values as <empty>. They do not export URI aliases into the global secret-name registry; catalog output follows the value-aware rules above.
Credential annotations Access keys and every declared alias in S3, MinIO, GCS, OSS, COS, OBS, Iceberg Glue and Iceberg REST now join existing secret/token annotations; Ozone access keys and JDBC catalog URLs remain protected. These declarations mask typed diagnostics and contribute unconditional provider-sensitive names. These annotation additions do not reclassify account names, OAuth modes/scopes or credential-file paths; generic name rules can independently mask such names.

Permanent Hadoop families, matched case-insensitively:

Namespace Credential fields
fs.s3. / fs.s3a. and optional bucket.<bucket>. access.key, secret.key, session.token, encryption.key, server-side-encryption.key, proxy.password; dotted bucket names are supported.
fs.azure. account.key, sas, sas.fixed.token, account.oauth2.client.secret, account.oauth2.refresh.token, encryption.encoded.client-provided.key, including account/container suffixes.
fs.adl.oauth2. credential, refresh.token.
fs.oss. accessKeyId, accessKeySecret, securityToken.
fs.cosn. with optional userInfo. secretId, secretKey.
fs.obs. access.key, secret.key, session.token, security.token.

Masking uses *XXX in property output. Lineage continues omitting name-classified secrets and sanitizes other values. Non-empty annotated credentials render as *** in typed diagnostics. The retained mc.session_token declaration does not add token authentication to the current binder.

Testing

  • run-fe-ut.sh passes all 565 tests in 47 selected classes locally: masking/audit/lineage, configuration, metastore/filesystem holders, actual provider registration, security/metadata/plugin surfaces, dispatch, S3 offsets, ADBC paths, audit publication and config SQL roundtrips. Coverage includes URL lists, encoded/duplicate/signed URLs, 5,001-host lists, dynamic rules and unchanged connection values. FE Checkstyle passes.
  • Extended the P0/nonConcurrent SQL audit suite with SHOW, catalogs(), and persisted CREATE/ALTER assertions. It was not executed locally; the regular P0 configuration includes it, while cloud P0 skips nonConcurrent suites.
CI check Evidence
Initial policy/annotation baselines Before the policy change, 8 of 9 new tests expose credentials; the safe-endpoint control passes. Before the JDBC annotation, 2 of 18 tests fail. S3/Iceberg annotation tests reproduce 5 failures; Paimon separately reproduces 2. The multi-URL baseline exposes its later password.
Configuration trimming A targeted test reproduces a regex accepted before trimming that becomes invalid when stored.
Azure container regression Before the fix, 18 tests/2 classes reproduce 5 assertion failures: container loss in property display, token-query URLs, CREATE/ALTER audit and lineage, plus malformed authority passing through. New cases cover all four schemes, uppercase scheme, container length/character boundaries, encoded/password-bearing authority, query credentials and SAS signatures. The final expanded FE run passes all 565 tests/47 classes; the existing AzureUri parser suite is included.
Existing FE integration tests The previous head reproduces all 7 CI failures in 39 tests/4 classes. Provider fixtures use opaque names to prove admission independently of the generic regex. Final streaming audit assertions now require resolved batches, replacing the incomplete expectation that their URIs should be hidden. Malformed hosts and CREATE/ALTER JOB JDBC URLs remain masked.
Location compatibility Before this follow-up, 37 tests/3 classes reproduce 9 failures across final streaming events, local paths and lineage. A separate renderer probe reproduces literal-filename loss before its fix and passes afterward. Final tests cover one/multiple files, failed tasks, notifications, signed/embedded credentials, literal filenames, runtime rule changes, local/file URI rejection boundaries and ViewFS.
Native locations and snapshot lifetime Actual formatter probe reproduces three valid native locations masking; five focused methods reproduce five assertion failures in property/lineage and successful, failed and canceled task snapshot ownership. Added positive native audit/lineage cases, credential/signature/opaque/invalid-S3 controls and post-run release assertions. Final repository FE run passes 565 tests/47 classes; the same five focused methods and the actual native/literal renderer probes pass; Checkstyle passes.
Literal hash identities Before the fix, the actual final renderer collapses two selected hash keys to identical names. Before the fix, six focused methods execute: four expected hash/notification/credential/signature assertion failures and two existing controls pass. Tests require distinct hashes for one/multiple selected files on success/failure, notifications and query-shaped suffixes; ordinary URI fragment removal remains covered. Final FE run passes 565 tests/47 classes; Checkstyle and all original probes pass. Before its fix, a self-review probe initializes the pinned Hadoop ViewFileSystem with mount_table but observes MASK in display; named-ViewFS property/audit/lineage and malformed/encoded/port/signature controls now cover the repaired authority branch.
Decoded native percent paths Before the fix, the actual final renderer masks a batch containing100%.csv; four focused methods reproduce two percent failures with two existing controls passing. Tests add native percent/nonhex/%HH/repeated-looking/plus identities for one/multiple files, success/failure and notifications, with generic URI negative controls. Final repository FE run passes 565 tests/47 classes; the same percent renderer probe and four focused methods pass. Checkstyle passes.
Independent local review Qualified gpt-6-astra/xhigh lead and coverage reviewers approve exact head5a39cd98f66872ce9502f636d617bdae565ca5c5:59 changed files,17 checkpoints,0 findings/regressions,one-round convergence. Commit-bound PASS receipt. Static review is separate from the author-run tests above; cluster SQL/multi-FE RPC remain unverified.
Native suffix spelling and inspection Before repair, six focused methods produce four identity/credential/opaque-JDBC failures and two passing controls. Cases cover separator/empty-component identity, percent/space/plus/encoded-looking values, final success/failure/notification events, masked values with preserved non-secret syntax, and encoded/double/deep nested URLs beside malformed native percent text. A separate form-space JDBC guard fails before its repair. Final repository FE run passes 565 tests/47 classes; all seven focused identity/security/control methods and independent Checkstyle pass.
GCP metadata Identity roundtrips run with the supplementary pattern disabled using (?!); permanent HMAC keys remain masked. A separate credential-keyword test checks that gs.credential_provider_type is masked, matching the default heuristic's conservative treatment of metadata names. The original pattern is restored after each test.
Gitleaks 8.30.0 The Gitleaks job scans the full PR commit range and misclassifies two adjacent Hadoop property-name literals as API-key values. The same scan reproduces 2 findings before the config fix and 0 after it. A generic-api-key exception requires both the exact test path and one of two exact synthetic property names.
All-FE regex forwarding Before the serializer fix, 2 of 9 admin-config tests fail: the peer exposes custom.pin1, and the regex loses its backslash. After the fix, all 9 pass; actual parser/serializer/Env application plus masking and a literal matrix cover both SQL modes and command scopes. Peer application is simulated in-process, without multi-FE RPC.
Exception boundaries Two fixture-name occurrences in another file and an unrelated synthetic API-key value in the allowed file remain detected; only the two intended occurrences are ignored.

Notes for Reviewers

The new defaulted ConnectorProperty.sensitiveInDiagnosticsOnly metadata prevents shared URI aliases from hiding every REST endpoint. Connector/metastore SPI signatures and baselines are unchanged. Free-text secrets, SDK containers and unrelated logging remain outside scope.

Release note

External data source displays and audit property output now mask JDBC connection strings, native SDK/Hadoop credentials, credential-like custom properties, and URL authentication components. The new FE configuration datasource_sensitive_property_pattern adjusts extra name matching without disabling permanent credential rules.

Check List (For Author)

  • Behavior changed: Yes (see Details).
  • Does this need documentation: Yes (document the FE config and catalog-output rules in apache/doris-website; detailed rules are included above).
  • Pre-submission status: Partially verified: SQL regression and multi-FE RPC not executed locally.

AI Disclosure

  • Tool: Codex (GPT-6).
  • Generated: Production changes, tests, and this description.
  • Human review: not stated.
  • Prompts: Mask MaxCompute/Ozone credentials, extend shared JDBC/URL/SDK/Hadoop/custom-name rules, then complete sensitive annotations and address review findings.

@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No new actionable findings were identified at head edfc8e2. Reviewed all seven changed files and their provider registration, rendering, authentication-property and audit consumers. The review converged in round 1: the complete reviewer and both dedicated risk reviewers returned NO_NEW_VALUABLE_FINDINGS, and both initial risks were independently checked and dismissed with source evidence. No existing inline findings were present on the final GitHub refresh.

Critical checkpoint conclusions:

  • Goal and evidence: the MaxCompute declaration adds the retained mc.session_token key; the Ozone annotation adds its access-key aliases to catalog masking and protects Ozone diagnostic rendering. Inspected unit and SQL regression coverage exercises these outputs and preserves raw values.
  • Scope and reuse: two focused production declarations reuse the existing provider-owned mechanisms; the other changes extend tests.
  • Concurrency and locking: no new thread, lock or shared mutation path. MaxCompute builds a fresh local HashSet; existing startup registration precedes catalog access.
  • Lifecycle and initialization: no new resource ownership or static initializer. Provider-side reflection and existing classloader policies preserve annotation recognition; the security surface copies the contributed set.
  • Configuration: no configuration item or dynamic-update behavior added.
  • Compatibility: no persisted format, function signature or protocol changes. Binding and S3/Hadoop credential conversion retain original values.
  • Thrift/protobuf IDs: no changes.
  • Parallel paths: SHOW CATALOG, SHOW CREATE CATALOG and both CREATE/ALTER audit visitors consume the shared case-insensitive registry. Ozone diagnostic rendering uses the annotated field, and every declared access-key alias is extracted.
  • Conditions and errors: no new production conditional or error-handling branch; the test endpoint branch verifies a non-sensitive control remains visible.
  • Test coverage: provider tests pin keys and aliases; FE tests inspect mixed-case display, CREATE/ALTER audit rewriting and raw-value preservation; the regression extends persisted audit and catalog display assertions. Existing test dependencies and SHOW row shapes match usage.
  • Test results: no golden result files changed. Assertions were checked against source; no test result is claimed from this review.
  • Observability: existing outputs gain masking; no new logging or metrics are needed for the metadata-only change.
  • Transactions and persistence: no journal, replay or transaction algorithm changes; the regression observes the existing audit persistence path.
  • Data writes and atomicity: no data-write, crash-recovery or atomicity behavior changes.
  • FE/BE variables: none added or changed.
  • Performance: the additional key uses existing startup reflection and registry lookups; no new hot-path scan, I/O or material allocation pattern.
  • Other concerns: no further substantiated PR-introduced issue after the missed-path rechecks. Provider-contributed masking retains its existing loaded-plugin requirement.

User focus: no additional focus was supplied. There are no unresolved static questions or uncovered changed files. This was a static-only review: no builds, unit/regression tests, plugin packaging or cluster execution were performed, and the author's reported test passes were not independently reproduced. Generic URI credentials and arbitrary SDK/Hadoop pass-through keys remain outside this two-property change. The unchanged delegated S3 diagnostic behavior was checked and does not constitute a newly introduced defect here.

Review converged after 1 round(s).

### Background

External catalogs retain connection properties for connector use. Provider declarations feed the FE's masking registry; catalog display, catalog metadata, and audit SQL rendering use that registry.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#70338 (provider-owned masking and ALTER CATALOG audit coverage)
PR Type: Bugfix

Problem Summary:

Name-only matching exposes credentials in JDBC strings, URL components, SDK/Hadoop properties and custom names. Apply one value-aware display policy plus a dynamic FE-local name regex, without disabling permanent rules. The diff includes shared output routing, regex validation, diagnostic masking and tests.

One exercised `uri` value illustrates the difference:

| Before | After |
|---|---|
| `https://fixture:fixture-password@api.example.com/v1?region=east&token=fixture-token` | `https://api.example.com/v1?region=east&token=*XXX` |

### Details

- **Change map:** Production code: +232/-18; tests: +445/-22; no generated output, docs, build files, or submodule pins. Most added lines are tests. The production parts are the shared name/value policy and output routing (about 200 added lines), validated dynamic configuration (about 20), and provider declarations/diagnostic masking (about 10).
- **Frequency:** Always when a retained credential uses one of the uncovered names or connection formats; reproduced in property display and CREATE/ALTER audit rewriting.
- **Root cause:** `DatasourcePrintableMap` and catalog metadata checked registered names without inspecting values. MaxCompute session tokens, Ozone access keys, and JDBC diagnostic URLs were also missing sensitive declarations.
- **Why existing tests missed it:** `DatasourcePrintableMapTest` and `test_external_catalog_credential_masking` covered enumerated keys, missing URL, Hadoop and generic-name cases. Existing Ozone/prefix visibility assertions are updated.
- **Fix:** Route catalog SHOW/TVF, audit properties and lineage through the same policy; retain provider metadata and protect typed JDBC diagnostics.
- **Other paths and branches:** Shared output callers inherit the rules. Cached branch-3.1/4.0/4.1/4.2 retain the parsing gap; only master changes. No single introducing PR was identified.
- **Configs and defaults:** `datasource_sensitive_property_pattern` is FE-local, mutable and case-insensitive, defaulting to `password|passwd|secret|token|credential|access[._-]?key|api[._-]?key`. Startup/custom-file/runtime validation rejects invalid stored expressions without replacing the previous value. `(?!)` disables only the supplement; empty matches every name. Configure all serving FEs consistently.
- **Behavior change:** Stored properties and connections are unchanged. Display is more conservative: keyword matches can hide metadata, and URLs can lose userinfo/fragments or normalize query separators.

The complete masking rules are:

| Input | Output rule |
|---|---|
| Existing exact sensitive keys and provider prefixes | Remain masked, independently of the configurable pattern. Existing hidden-property rules still omit their entries. |
| Recognizable JDBC property names | Names ending in a JDBC `url`/`uri` component, including `jdbc_url`, `jdbc.jdbc_url`, `iceberg.jdbc.uri`, and `paimon.jdbc.uri`, mask completely. `connectionString`, `connection_string`, `connection-string`, and `connection.string` suffixes also mask completely. |
| JDBC values under any name | Any trimmed value beginning with `jdbc:`, case-insensitively, masks completely, including a bare `uri` alias and opaque/driver-specific JDBC syntax. |
| Native SDK credentials | Bare or dot/underscore/hyphen-delimited final components `token`, `credential`, or `credentials` mask completely. Registered aliases and the configurable pattern add coverage. |
| Hadoop credentials | The built-in families below mask completely, including dynamic bucket/account names and names prefixed before `fs.`; they do not depend on the configurable pattern. Other credential-like names receive the default pattern's protection. |
| Custom names | A match against the configured regex masks the entire value. Matching is a search, so the default protects `custom.password`, `clientSecret`, and `custom.accessKey`. It is unioned with every permanent rule. |
| Ordinary addresses | Hostnames, IPv4, bracketed IPv6, optional numeric ports in 0–65535, and comma-separated host lists remain visible. Empty address values stay empty. |
| URL selection | Sanitize properties ending in a delimited `uri/url/host/endpoint/address` component, including plural forms, and hierarchical `scheme://` values under other names. A name already classified sensitive takes precedence and masks completely. |
| Supported URL schemes | `http`, `https`, `thrift`, `hdfs`, `s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`, `abfss`, `wasb`, `wasbs`. Preserve the host, port, ordinary path, and non-sensitive query parameters; remove all userinfo and the entire fragment. |
| URL query credentials | Decode parameter names, process duplicates and both `&`/`;` separators, and mask values whose names match permanent/configured rules or contain `password/passwd/pwd/secret/token/credential`, access/API/account/private/auth/app/application key variants, or `authorization`; exact `auth` and `key` are also protected. Query separators render as `&`; decoded names must use ASCII letters/digits, dot, underscore, tilde, or hyphen. |
| Signed URLs | A decoded query name containing `signature`, or a delimited `sig`/`sas` component, masks the entire URL, including AWS/GCS/OSS/CloudFront signatures and Azure SAS. |
| Unreliable address parsing | Unknown schemes, unsupported multi-host URL formats, opaque/invalid URLs, invalid host/port or escaping, unrecognized query names, matrix path parameters, repeated encoding, and nested connection strings in otherwise unclassified query values mask completely. No raw-value or parser-exception fallback is logged. |

Permanent Hadoop families, matched case-insensitively:

| Namespace | Credential fields |
|---|---|
| `fs.s3.` / `fs.s3a.` and optional `bucket.<bucket>.` | `access.key`, `secret.key`, `session.token`, `encryption.key`, `server-side-encryption.key`, `proxy.password`; dotted bucket names are supported. |
| `fs.azure.` | `account.key`, `sas`, `sas.fixed.token`, `account.oauth2.client.secret`, `account.oauth2.refresh.token`, `encryption.encoded.client-provided.key`, including account/container suffixes. |
| `fs.adl.oauth2.` | `credential`, `refresh.token`. |
| `fs.oss.` | `accessKeyId`, `accessKeySecret`, `securityToken`. |
| `fs.cosn.` with optional `userInfo.` | `secretId`, `secretKey`. |
| `fs.obs.` | `access.key`, `secret.key`, `session.token`, `security.token`. |

Masking uses `*XXX` in property output. Lineage continues omitting name-classified secrets and sanitizes other values. Non-empty Ozone access keys and JDBC URLs render as `***` in their typed diagnostic strings. The retained `mc.session_token` declaration does not add token authentication to the current binder.

### Testing

- Before the policy change: 8 of 9 new property-policy tests fail because original credentials remain visible; the ordinary endpoint control passes.
- Before the JDBC annotation: 2 of 18 JDBC tests fail on the URL declaration and diagnostic disclosure.
- Configuration trimming: a targeted test reproduces accepting a regex that becomes invalid after storage trimming.
- `run-fe-ut.sh` passes all 94 tests in 10 selected classes locally, including `DatasourcePropertyMaskingTest`, `LineageCatalogPropertyMaskingTest`, and `ConfigTest`. Coverage includes encoded/duplicate/signed URLs, 5,001-host lists, dynamic rules, provider diagnostics, and unchanged connection values.
- Extended the P0/nonConcurrent SQL audit suite with SHOW, `catalogs()`, and persisted CREATE/ALTER assertions. It was not executed locally; the regular P0 configuration includes it, while cloud P0 skips nonConcurrent suites.

### Notes for Reviewers

A shared `uri` alias requires value-aware handling to preserve REST endpoints. Arbitrary free-text secrets, SDK containers and unrelated logging are outside scope. Matching can conservatively hide keyword-bearing metadata and KMS IDs.

### Release note

External data source displays and audit property output now mask JDBC connection strings, native SDK/Hadoop credentials, credential-like custom properties, and URL authentication components. The new FE configuration `datasource_sensitive_property_pattern` adjusts extra name matching without disabling permanent credential rules.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: Yes (document the FE config and catalog-output rules in apache/doris-website; detailed rules are included above).
- Pre-submission status: Partially verified: SQL regression suite not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests, and this description.
- Human review: not stated.
- Prompts: First mask MaxCompute session tokens and Ozone access keys, then extend the same PR to JDBC strings, URL credentials, native SDK/Hadoop properties, and configurable name rules.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39 Gabriel39 changed the title [fix](catalog) Mask MaxCompute session tokens and Ozone access keys [fix](catalog) Mask credentials in data source properties and URLs Nov 18, 2026
@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head eda6762. One new P1 finding: supported comma-separated URL lists can retain credentials from a later endpoint. No existing inline findings were present. No additional user focus was supplied.

Critical checkpoint conclusions:

  1. Goal and proof: shared masking reaches catalog display, metadata, audit and lineage, but the URL-list case in the inline finding defeats the intended fail-closed policy. Added tests cover individual URLs and plain host lists, but omit this case.
  2. Scope and reuse: the change is focused on one shared output policy plus provider declarations and configuration validation. Stored connection maps and getters remain unchanged.
  3. Concurrency and locking: mutable configuration is volatile; the compiled snapshot publishes source and pattern together. Subsequent reads repair a stale concurrent cache publication. No new threads or lock order were introduced; existing display read locks remain.
  4. Lifecycle and initialization: the compiled pattern is cached lazily with immutable fields. No new resource ownership, shutdown obligation or static initialization cycle was identified.
  5. Configuration: the FE-local setting is mutable and observed on subsequent rendering calls. Startup, custom-file and runtime paths validate the trimmed stored regex before publication; invalid expressions preserve the previous value. Serving FEs require consistent configuration.
  6. Compatibility: output intentionally becomes more conservative. No storage format, public SPI, function symbol or connection behavior changes were found.
  7. Thrift/protobuf: no definitions changed.
  8. Parallel paths: SHOW CATALOG and catalogs() share CatalogMgr; SHOW CREATE and CREATE/ALTER audit use the masked formatter; lineage omits sensitive names and sanitizes remaining values. These routes inherit the reported parser defect.
  9. Conditional behavior: unknown or malformed addresses and unsupported query grammars generally mask completely. The missing URL-list rejection is the verified exception.
  10. Test coverage: inspected added/updated unit and SQL regression coverage for provider aliases, diagnostics, retained values, dynamic patterns, encoded/duplicate/signed/nested URLs and long host lists. Add the credential-bearing URL-list case. Builds and tests were not executed during this static-only review; the author also reports the SQL suite unexecuted locally.
  11. Test results: no generated .out files were added or modified; runtime outcomes were not independently verified.
  12. Observability: parsing avoids logging raw values or parser exceptions. No additional metrics are needed for deterministic output masking.
  13. Persistence and failover: catalog persistence and edit-log behavior are unchanged; regex persistence uses the existing configuration mechanism.
  14. Writes and atomicity: redaction creates output strings/maps and does not alter retained connector credentials; no transaction/data-write behavior changed.
  15. FE/BE propagation: no new transmitted fields or BE execution paths.
  16. Performance: patterns are cached, host-list matching is iterative, and no additional substantiated performance defect was identified.
  17. Other concerns and limits: full changed-path coverage and risk dispositions are recorded in the shared ledger. Validation is static; no runtime or external-service behavior was exercised.

Review converged after 2 round(s).

### Background

External catalogs retain connector properties. Provider declarations feed the FE's masking registry; catalog display, catalog metadata, and audit SQL rendering use that registry.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#70338 (provider-owned masking and ALTER CATALOG audit coverage), apache#70696 (overlapping metastore URI annotation fix)
PR Type: Bugfix

Problem Summary:

Name-only matching exposes JDBC/URL and SDK/Hadoop credentials. Apply one display policy plus a dynamic FE-local name regex, preserving permanent rules. The diff also completes diagnostic annotations and tests.

An exercised `uri` value:

| Before | After |
|---|---|
| `https://fixture:fixture-password@api.example.com/v1?region=east&token=fixture-token` | `https://api.example.com/v1?region=east&token=*XXX` |

### Details

- **Change map:** Production code: +274/-26; tests: +649/-50; no generated output, docs, build files, or submodule pins. Most added lines are tests. Production parts are shared name/value policy and output routing (about 210 added lines), validated dynamic configuration (about 20), and provider declarations/diagnostic masking (about 40).
- **Frequency:** Always when a retained credential uses one of the uncovered names or connection formats; reproduced in property display and CREATE/ALTER audit rewriting.
- **Root cause:** `DatasourcePrintableMap` and catalog metadata checked registered names without inspecting values. Credential declarations were incomplete; URI parsing also treated later endpoints in URL lists as ordinary path text.
- **Why existing tests missed it:** `DatasourcePrintableMapTest` and `test_external_catalog_credential_masking` covered enumerated keys, missing URL, Hadoop and generic-name cases. Existing access-key/Ozone/prefix visibility assertions are updated; metastore URI diagnostics and multi-URL paths lacked coverage.
- **Fix:** Route catalog SHOW/TVF, audit properties and lineage through one policy; complete credential annotations and separate typed URI diagnostic masking from unconditional name registration.
- **Other paths and branches:** Shared output callers inherit the rules. Cached branch-3.1/4.0/4.1/4.2 retain the parsing gap; only master changes. No single introducing PR was identified.
- **Configs and defaults:** `datasource_sensitive_property_pattern` is FE-local, mutable and case-insensitive, defaulting to `password|passwd|secret|token|credential|access[._-]?key|api[._-]?key`. Startup/custom-file/runtime validation rejects invalid stored expressions without replacing the previous value. `(?!)` disables only the supplement; empty matches every name. Configure all serving FEs consistently.
- **Behavior change:** Stored properties and connections are unchanged. Display is more conservative: keyword matches can hide metadata, and URLs can lose userinfo/fragments or normalize query separators.

The complete masking rules are:

| Input | Output rule |
|---|---|
| Existing exact sensitive keys and provider prefixes | Remain masked, independently of the configurable pattern. Existing hidden-property rules still omit their entries. |
| Recognizable JDBC property names | Names ending in a JDBC `url`/`uri` component, including `jdbc_url`, `jdbc.jdbc_url`, `iceberg.jdbc.uri`, and `paimon.jdbc.uri`, mask completely. `connectionString`, `connection_string`, `connection-string`, and `connection.string` suffixes also mask completely. |
| JDBC values under any name | Any trimmed value beginning with `jdbc:`, case-insensitively, masks completely, including a bare `uri` alias and opaque/driver-specific JDBC syntax. |
| Native SDK credentials | Bare or dot/underscore/hyphen-delimited final components `token`, `credential`, or `credentials` mask completely. Registered aliases and the configurable pattern add coverage. |
| Hadoop credentials | The built-in families below mask completely, including dynamic bucket/account names and names prefixed before `fs.`; they do not depend on the configurable pattern. Other credential-like names receive the default pattern's protection. |
| Custom names | A match against the configured regex masks the entire value. Matching is a search, so the default protects `custom.password`, `clientSecret`, and `custom.accessKey`. It is unioned with every permanent rule. |
| Ordinary addresses | Hostnames, IPv4, bracketed IPv6, optional numeric ports in 0–65535, and comma-separated host lists remain visible. Empty address values stay empty. |
| URL selection | Sanitize properties ending in a delimited `uri/url/host/endpoint/address` component, including plural forms, and hierarchical `scheme://` values under other names. A name already classified sensitive takes precedence and masks completely. |
| Supported URL schemes | `http`, `https`, `thrift`, `hdfs`, `s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`, `abfss`, `wasb`, `wasbs`. Preserve the host, port, ordinary path, and non-sensitive query parameters; remove all userinfo and the entire fragment. |
| URL query credentials | Decode parameter names, process duplicates and both `&`/`;` separators, and mask values whose names match permanent/configured rules or contain `password/passwd/pwd/secret/token/credential`, access/API/account/private/auth/app/application key variants, or `authorization`; exact `auth` and `key` are also protected. Query separators render as `&`; decoded names must use ASCII letters/digits, dot, underscore, tilde, or hyphen. |
| Signed URLs | A decoded query name containing `signature`, or a delimited `sig`/`sas` component, masks the entire URL, including AWS/GCS/OSS/CloudFront signatures and Azure SAS. |
| Unreliable address parsing | Unknown schemes, opaque/invalid URLs, invalid host/port or escaping, unrecognized query names, matrix path parameters, repeated encoding, and nested connection strings in otherwise unclassified query values mask completely. Any comma-containing URL masks completely, including ordinary query commas; decoded paths containing commas or nested `://` also mask completely. Valid plain host:port lists remain visible. No raw-value or parser-exception fallback is logged. |
| Typed URI diagnostics | Iceberg/Paimon JDBC and REST URI fields, including the shared `uri` alias, use `sensitive=true, sensitiveInDiagnosticsOnly=true`: non-empty diagnostic values render as `***`, empty values as `<empty>`. They do not export URI aliases into the global secret-name registry; catalog output follows the value-aware rules above. |
| Credential annotations | Access keys and every declared alias in S3, MinIO, GCS, OSS, COS, OBS, Iceberg Glue and Iceberg REST now join existing secret/token annotations; Ozone access keys and JDBC catalog URLs remain protected. These declarations mask typed diagnostics and contribute unconditional provider-sensitive names. Non-secret account names, OAuth modes/scopes and credential-file paths are unchanged. |

Permanent Hadoop families, matched case-insensitively:

| Namespace | Credential fields |
|---|---|
| `fs.s3.` / `fs.s3a.` and optional `bucket.<bucket>.` | `access.key`, `secret.key`, `session.token`, `encryption.key`, `server-side-encryption.key`, `proxy.password`; dotted bucket names are supported. |
| `fs.azure.` | `account.key`, `sas`, `sas.fixed.token`, `account.oauth2.client.secret`, `account.oauth2.refresh.token`, `encryption.encoded.client-provided.key`, including account/container suffixes. |
| `fs.adl.oauth2.` | `credential`, `refresh.token`. |
| `fs.oss.` | `accessKeyId`, `accessKeySecret`, `securityToken`. |
| `fs.cosn.` with optional `userInfo.` | `secretId`, `secretKey`. |
| `fs.obs.` | `access.key`, `secret.key`, `session.token`, `security.token`. |

Masking uses `*XXX` in property output. Lineage continues omitting name-classified secrets and sanitizes other values. Non-empty annotated credentials render as `***` in typed diagnostics. The retained `mc.session_token` declaration does not add token authentication to the current binder.

### Testing

- Before the policy change: 8 of 9 new property-policy tests fail because original credentials remain visible; the ordinary endpoint control passes.
- Before the JDBC annotation: 2 of 18 JDBC tests fail on the URL declaration and diagnostic disclosure.
- Configuration trimming: a targeted test reproduces accepting a regex that becomes invalid after storage trimming.
- Annotation follow-up baseline: S3 and Iceberg execute with 5 failures; Paimon executes separately with 2 URI diagnostic failures. The multi-URL case fails because its later password remains visible.
- `run-fe-ut.sh` passes all 354 tests in 32 selected classes locally: masking/audit/lineage, configuration, metastore/filesystem holders, actual provider registration, security/metadata/plugin surfaces and dispatch. Coverage includes URL lists, encoded/duplicate/signed URLs, 5,001-host lists, dynamic rules and unchanged connection values. FE Checkstyle passes.
- Extended the P0/nonConcurrent SQL audit suite with SHOW, `catalogs()`, and persisted CREATE/ALTER assertions. It was not executed locally; the regular P0 configuration includes it, while cloud P0 skips nonConcurrent suites.

### Notes for Reviewers

The new defaulted `ConnectorProperty.sensitiveInDiagnosticsOnly` metadata prevents shared URI aliases from hiding every REST endpoint. Connector/metastore SPI signatures and baselines are unchanged. Free-text secrets, SDK containers and unrelated logging remain outside scope.

### Release note

External data source displays and audit property output now mask JDBC connection strings, native SDK/Hadoop credentials, credential-like custom properties, and URL authentication components. The new FE configuration `datasource_sensitive_property_pattern` adjusts extra name matching without disabling permanent credential rules.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: Yes (document the FE config and catalog-output rules in apache/doris-website; detailed rules are included above).
- Pre-submission status: Partially verified: SQL regression suite not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests, and this description.
- Human review: not stated.
- Prompts: Mask MaxCompute/Ozone credentials, extend shared JDBC/URL/SDK/Hadoop/custom-name rules, then complete sensitive annotations and address review findings.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all 48 changed files at head 6ff445a932ea1c666a4a6ba9c72c5585d9f82649. No substantiated new findings. The review converged in one round: both complete-scope reviewers and the separate URL-risk reviewer returned NO_NEW_VALUABLE_FINDINGS; the main reviewer independently checked their conclusions and completed the final sweep.

The existing P1 URL-list finding is fixed at this head. The comma guard runs before URI reconstruction, and decoded paths containing commas or nested schemes also mask. Tests now cover the later-endpoint credential example through property display, CREATE/ALTER audit rendering and lineage. It is therefore neither duplicated nor listed as a remaining blocker. No additional user focus was supplied.

The inspected flow is:

retained connector properties
  -> SHOW / SHOW CREATE / catalogs() / CREATE+ALTER audit / lineage
  -> shared name and value masking policy
  -> rendered strings or new metadata maps

Provider declarations feed permanent name masking; diagnostic-only URI annotations mask typed diagnostics while leaving ordinary REST URI aliases subject to value-aware rendering. Retained connection maps and getters continue to supply the original values to connectors.

Critical checkpoint conclusions:

Checkpoint Conclusion from static inspection
Goal and evidence Shared output policy covers the intended JDBC, SDK/Hadoop/custom-name and URL cases; unit and regression assertions exercise disclosure and unchanged connection values. Execution was not performed.
Scope and reuse Production changes remain focused on masking/configuration/metadata declarations and reuse existing formatting, binding and provider export paths.
Concurrency and locks Runtime configuration updates use the existing synchronized setter; the new config and immutable source/compiled-pattern snapshot use volatile publication. No new threads, nested lock order or external I/O under locks is introduced.
Lifecycle and initialization The pattern cache owns no external resources; the mask is a compile-time constant, avoiding a printable-map/redactor initialization cycle. Plugin-local reflection and filesystem parent-first foundation identity remain consistent.
Configuration The FE-local mutable regex is validated after trimming at startup, custom-file loading and runtime update, before publishing the field. Rendering detects changes without restart; permanent rules remain active when the supplement is disabled. Serving FEs need consistent settings.
Compatibility No storage format or connector SPI signature changes. The annotation member has a default; existing annotations remain usable. Display behavior becomes deliberately more conservative.
Thrift and protobuf No gensrc definitions, field IDs or enum values change.
Parallel paths Inspected SHOW, SHOW CREATE, catalogs(), both catalog audit visitors, lineage, JDBC prefix aliases, metastore backend unions and all changed filesystem credential declarations.
Special conditions and errors Address selection, unsupported/malformed URI handling, signed/nested/encoded query handling and diagnostic-only export are documented and covered by assertions. Unsupported address parsing masks without echoing raw values or parser exceptions.
Test coverage Inspected positive/negative tests for aliases, retained values, ordinary endpoints, userinfo, encoded/duplicate query names, fragments, signatures, URL lists, invalid config and a 5,001-host list. SQL regression covers actual SHOW/TVF and persisted CREATE/ALTER audit output.
Test results No expected-output artifacts change. No builds, tests, format checks or runtime validation were executed in this static-only review; author-reported test runs are not independent verification.
Observability No new operational subsystem needs metrics. Parser failure handling avoids logging credential-bearing values; existing configuration diagnostics remain available.
Transactions and persistence No transaction, visibility, EditLog or failover semantics change. Configuration continues through the existing persistence mechanism.
Data writes and atomicity Sanitization builds strings/new maps without mutating retained catalog properties; no data-write or crash-recovery path changes.
FE/BE propagation No new transmitted variables or FE/BE protocol fields.
Performance Fixed patterns are precompiled and the configurable pattern is cached. Host lists are matched per element to avoid recursive list matching. Additional work is in output rendering; no benchmark claim is made.
Other issues and limits Final recheck found no additional actionable issue, unresolved candidate or uncovered assigned static scope. Runtime behavior and SQL regression execution remain outside this review's evidence.

Coverage included all changed FE-common, connector/metastore, core, filesystem, foundation and regression files. The final sweep reconfirmed current-head identity, existing-thread disposition, all risk dispositions and the empty inline finding set. This is a converged static review, not a claim that build or runtime validation passed.

Review converged after 1 round(s).

@Gabriel39

Copy link
Copy Markdown
Contributor Author

Local pipeline review — ✅ PASS

schema: doris-repo-review/v1
status: PASS
pr: apache/doris#70705
commit: 6ff445a932ea1c666a4a6ba9c72c5585d9f82649
base: de48fa225e444ea4f25cf0699a656a901ad1ceb1
reviewed_at: 2026-11-18T13:21+08:00
reviewer: Gabriel39
model: gpt-6-astra
effort: xhigh
findings: {blocker: 0, major: 0, minor: 0, nit: 0}
rounds: 1
converged: true

Notes for maintainers

  • fe/fe-core/src/main/java/org/apache/doris/common/util/DatasourcePropertyRedactor.java:110 — Reconfirmed the existing URL-list finding is fixed; all 48 changed files were covered with no new accepted findings.
  • Read-only code review: builds and tests were not rerun. The SQL regression suite remains unexecuted locally as disclosed in the PR.

Reviewed locally with the doris-repo-review pipeline. Repository policy may accept this receipt for the matching commit; it is not a human Apache approval.

### Background

External catalogs retain connector properties. Provider declarations feed the FE's masking registry; catalog display, catalog metadata, and audit SQL rendering use that registry.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#70338 (provider-owned masking and ALTER CATALOG audit coverage), apache#70696 (overlapping metastore URI annotation fix)
PR Type: Bugfix

Problem Summary:

Name-only matching exposes JDBC/URL and SDK/Hadoop credentials. Apply one display policy plus a dynamic FE-local name regex, preserving permanent rules. The diff also completes diagnostic annotations and tests.

An exercised `uri` value:

| Before | After |
|---|---|
| `https://fixture:fixture-password@api.example.com/v1?region=east&token=fixture-token` | `https://api.example.com/v1?region=east&token=*XXX` |

### Details

- **Change map:** Production code: +274/-26; tests: +649/-50; CI config: +9/-0; no generated/docs/submodule changes. Most added lines are tests. Production parts are shared name/value policy and output routing (about 210 added lines), validated dynamic configuration (about 20), and provider declarations/diagnostic masking (about 40).
- **Frequency:** Always when a retained credential uses one of the uncovered names or connection formats; reproduced in property display and CREATE/ALTER audit rewriting.
- **Root cause:** `DatasourcePrintableMap` and catalog metadata checked registered names without inspecting values. Credential declarations were incomplete; URI parsing also treated later endpoints in URL lists as ordinary path text.
- **Why existing tests missed it:** `DatasourcePrintableMapTest` and `test_external_catalog_credential_masking` covered enumerated keys, missing URL, Hadoop and generic-name cases. Existing access-key/Ozone/prefix visibility assertions are updated; metastore URI diagnostics and multi-URL paths lacked coverage.
- **Fix:** Route catalog SHOW/TVF, audit properties and lineage through one policy; complete credential annotations and separate typed URI diagnostic masking from unconditional name registration.
- **Other paths and branches:** Shared output callers inherit the rules. Cached branch-3.1/4.0/4.1/4.2 retain the parsing gap; only master changes. No single introducing PR was identified.
- **Configs and defaults:** `datasource_sensitive_property_pattern` is FE-local, mutable and case-insensitive, defaulting to `password|passwd|secret|token|credential|access[._-]?key|api[._-]?key`. Startup/custom-file/runtime validation rejects invalid stored expressions without replacing the previous value. `(?!)` disables only the supplement; empty matches every name. Configure all serving FEs consistently.
- **Behavior change:** Stored properties and connections are unchanged. Display is more conservative: keyword matches can hide metadata, and URLs can lose userinfo/fragments or normalize query separators.

The complete masking rules are:

| Input | Output rule |
|---|---|
| Existing exact sensitive keys and provider prefixes | Remain masked, independently of the configurable pattern. Existing hidden-property rules still omit their entries. |
| Recognizable JDBC property names | Names ending in a JDBC `url`/`uri` component, including `jdbc_url`, `jdbc.jdbc_url`, `iceberg.jdbc.uri`, and `paimon.jdbc.uri`, mask completely. `connectionString`, `connection_string`, `connection-string`, and `connection.string` suffixes also mask completely. |
| JDBC values under any name | Any trimmed value beginning with `jdbc:`, case-insensitively, masks completely, including a bare `uri` alias and opaque/driver-specific JDBC syntax. |
| Native SDK credentials | Bare or dot/underscore/hyphen-delimited final components `token`, `credential`, or `credentials` mask completely. Registered aliases and the configurable pattern add coverage. |
| Hadoop credentials | The built-in families below mask completely, including dynamic bucket/account names and names prefixed before `fs.`; they do not depend on the configurable pattern. Other credential-like names receive the default pattern's protection. |
| Custom names | A match against the configured regex masks the entire value. Matching is a search, so the default protects `custom.password`, `clientSecret`, and `custom.accessKey`. It is unioned with every permanent rule. |
| Ordinary addresses | Hostnames, IPv4, bracketed IPv6, optional numeric ports in 0–65535, and comma-separated host lists remain visible. Empty address values stay empty. |
| URL selection | Sanitize properties ending in a delimited `uri/url/host/endpoint/address` component, including plural forms, and hierarchical `scheme://` values under other names. A name already classified sensitive takes precedence and masks completely. |
| Supported URL schemes | `http`, `https`, `thrift`, `hdfs`, `s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`, `abfss`, `wasb`, `wasbs`. Preserve the host, port, ordinary path, and non-sensitive query parameters; remove all userinfo and the entire fragment. |
| URL query credentials | Decode parameter names, process duplicates and both `&`/`;` separators, and mask values whose names match permanent/configured rules or contain `password/passwd/pwd/secret/token/credential`, access/API/account/private/auth/app/application key variants, or `authorization`; exact `auth` and `key` are also protected. Query separators render as `&`; decoded names must use ASCII letters/digits, dot, underscore, tilde, or hyphen. |
| Signed URLs | A decoded query name containing `signature`, or a delimited `sig`/`sas` component, masks the entire URL, including AWS/GCS/OSS/CloudFront signatures and Azure SAS. |
| Unreliable address parsing | Unknown schemes, opaque/invalid URLs, invalid host/port or escaping, unrecognized query names, matrix path parameters, repeated encoding, and nested connection strings in otherwise unclassified query values mask completely. Any comma-containing URL masks completely, including ordinary query commas; decoded paths containing commas or nested `://` also mask completely. Valid plain host:port lists remain visible. No raw-value or parser-exception fallback is logged. |
| Typed URI diagnostics | Iceberg/Paimon JDBC and REST URI fields, including the shared `uri` alias, use `sensitive=true, sensitiveInDiagnosticsOnly=true`: non-empty diagnostic values render as `***`, empty values as `<empty>`. They do not export URI aliases into the global secret-name registry; catalog output follows the value-aware rules above. |
| Credential annotations | Access keys and every declared alias in S3, MinIO, GCS, OSS, COS, OBS, Iceberg Glue and Iceberg REST now join existing secret/token annotations; Ozone access keys and JDBC catalog URLs remain protected. These declarations mask typed diagnostics and contribute unconditional provider-sensitive names. Non-secret account names, OAuth modes/scopes and credential-file paths are unchanged. |

Permanent Hadoop families, matched case-insensitively:

| Namespace | Credential fields |
|---|---|
| `fs.s3.` / `fs.s3a.` and optional `bucket.<bucket>.` | `access.key`, `secret.key`, `session.token`, `encryption.key`, `server-side-encryption.key`, `proxy.password`; dotted bucket names are supported. |
| `fs.azure.` | `account.key`, `sas`, `sas.fixed.token`, `account.oauth2.client.secret`, `account.oauth2.refresh.token`, `encryption.encoded.client-provided.key`, including account/container suffixes. |
| `fs.adl.oauth2.` | `credential`, `refresh.token`. |
| `fs.oss.` | `accessKeyId`, `accessKeySecret`, `securityToken`. |
| `fs.cosn.` with optional `userInfo.` | `secretId`, `secretKey`. |
| `fs.obs.` | `access.key`, `secret.key`, `session.token`, `security.token`. |

Masking uses `*XXX` in property output. Lineage continues omitting name-classified secrets and sanitizes other values. Non-empty annotated credentials render as `***` in typed diagnostics. The retained `mc.session_token` declaration does not add token authentication to the current binder.

### Testing

- Before the policy change: 8 of 9 new property-policy tests fail because original credentials remain visible; the ordinary endpoint control passes.
- Before the JDBC annotation: 2 of 18 JDBC tests fail on the URL declaration and diagnostic disclosure.
- Configuration trimming: a targeted test reproduces accepting a regex that becomes invalid after storage trimming.
- Annotation follow-up baseline: S3 and Iceberg execute with 5 failures; Paimon executes separately with 2 URI diagnostic failures. The multi-URL case fails because its later password remains visible.
- `run-fe-ut.sh` passes all 354 tests in 32 selected classes locally: masking/audit/lineage, configuration, metastore/filesystem holders, actual provider registration, security/metadata/plugin surfaces and dispatch. Coverage includes URL lists, encoded/duplicate/signed URLs, 5,001-host lists, dynamic rules and unchanged connection values. FE Checkstyle passes.
- Extended the P0/nonConcurrent SQL audit suite with SHOW, `catalogs()`, and persisted CREATE/ALTER assertions. It was not executed locally; the regular P0 configuration includes it, while cloud P0 skips nonConcurrent suites.

| CI check | Evidence |
|---|---|
| Gitleaks 8.30.0 | The linked failing job scans the full PR commit range and misclassifies two adjacent Hadoop property-name literals as API-key values. The same scan reproduces 2 findings before the config fix and 0 after it. A generic-api-key exception requires both the exact test path and one of two exact synthetic property names. |
| Exception boundaries | Two fixture-name occurrences in another file and an unrelated synthetic API-key value in the allowed file remain detected; only the two intended occurrences are ignored. FE source/tests are unchanged by this CI-only fix. |

### Notes for Reviewers

The new defaulted `ConnectorProperty.sensitiveInDiagnosticsOnly` metadata prevents shared URI aliases from hiding every REST endpoint. Connector/metastore SPI signatures and baselines are unchanged. Free-text secrets, SDK containers and unrelated logging remain outside scope.

### Release note

External data source displays and audit property output now mask JDBC connection strings, native SDK/Hadoop credentials, credential-like custom properties, and URL authentication components. The new FE configuration `datasource_sensitive_property_pattern` adjusts extra name matching without disabling permanent credential rules.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: Yes (document the FE config and catalog-output rules in apache/doris-website; detailed rules are included above).
- Pre-submission status: Partially verified: SQL regression suite not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests, and this description.
- Human review: not stated.
- Prompts: Mask MaxCompute/Ozone credentials, extend shared JDBC/URL/SDK/Hadoop/custom-name rules, then complete sensitive annotations and address review findings.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@Gabriel39

Copy link
Copy Markdown
Contributor Author

Local pipeline review — ✅ PASS

schema: doris-repo-review/v1
status: PASS
pr: apache/doris#70705
commit: 788ab7209d039024e1d1978fa25e1bcdadacc28b
base: de48fa225e444ea4f25cf0699a656a901ad1ceb1
reviewed_at: 2026-11-18T14:25+08:00
reviewer: Gabriel39
model: gpt-6-astra
effort: xhigh
findings: {blocker: 0, major: 0, minor: 0, nit: 0}
rounds: 1
converged: true

Notes for maintainers

  • .gitleaks.toml:79 — Reviewed the rule-local AND exception against pinned Gitleaks 8.30.0 behavior and the saved before/after and boundary-control evidence; no new accepted findings.
  • The 48 previously reviewed source/test files are byte-identical to the earlier approved head. All 49 current changed files are covered; this read-only review did not rerun scanners, builds or tests. The SQL regression suite remains unexecuted locally as disclosed in the PR.

Reviewed locally with the doris-repo-review pipeline. Repository policy may accept this receipt for the matching commit; it is not a human Apache approval.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all 49 changed files at head 788ab7209d039024e1d1978fa25e1bcdadacc28b. One new P2 finding is reported inline: the new regex policy loses backslashes when configured through ADMIN SET ALL FRONTENDS CONFIG, so peer FEs can expose custom credentials while the initiating FE masks them.

The review converged in round 2. Both complete-scope reviewers and the separate risk reviewer returned NO_NEW_VALUABLE_FINDINGS in the latest round; all initial risks and candidates have verified dispositions. There are no unresolved static questions or uncovered changed files.

The existing P1 URL-list finding is fixed at this head: literal commas mask before URI reconstruction, and decoded path commas/nested schemes/repeated encodings also fail closed. It is neither duplicated nor included as an existing blocker. No additional user focus was supplied.

The inspected flow is:

provider annotations -> permanent sensitive-name registry
retained properties -> shared name/value policy -> SHOW / SHOW CREATE / catalogs() / audit / lineage
operator regex -> local config -> forwarded SQL -> peer config (inline P2: backslash loss)

Critical checkpoint conclusions:

Checkpoint Conclusion from static inspection
Goal and evidence Shared credential masking reaches the intended output paths and preserves raw connection values; the inline P2 prevents consistent custom policy across FEs. Inspected tests support the other reviewed cases.
Scope and reuse Changes center on one shared renderer, configuration validation and provider annotations, with focused tests. The gitleaks exception requires one exact path and one of two exact synthetic property names.
Concurrency and locks Admin updates can overlap rendering. The volatile config and immutable source/compiled-pattern snapshot maintain coherent local matching; subsequent reads repair stale cache publication. No new threads, lock order or external I/O under catalog locks.
Lifecycle and initialization Cached patterns are replaced lazily and garbage collected; no new external ownership, shutdown obligation or initialization cycle. The mask is a compile-time constant.
Configuration Startup, custom-file and runtime routes validate the trimmed value before assignment; local rendering detects updates without restart. The supported all-FE SQL serialization route corrupts escaped patterns as reported inline.
Compatibility No persisted format, connector SPI signature or connection behavior changes. The new annotation member has a default; connector-local and filesystem parent-first foundation ownership remain consistent. Display intentionally becomes more conservative.
Thrift/protobuf IDs No gensrc changes or transmitted ID/enum changes.
Parallel paths SHOW and catalogs() share CatalogMgr; SHOW CREATE and CREATE/ALTER audit share the masked formatter; lineage omits sensitive names and sanitizes remaining values. Inspected provider aliases, inherited fields and metastore unions.
Conditions and errors Unsupported/malformed address parsing masks without logging raw values or parser exceptions. Invalid regexes preserve the previous local value. Diagnostic-only filtering is explicit and has direct tests.
Test coverage Inspected positive/negative cases for config loading/updates, provider aliases, raw getters, diagnostics, ordinary endpoints, URL lists, encoding, duplicate query names, fragments, signatures and long host lists. SQL regression covers actual SHOW/TVF and persisted CREATE/ALTER audit output. All-FE regex serialization lacks coverage.
Test results No generated .out files change. Assertions were inspected against source; no build, unit/regression test, formatting, scanner or runtime validation was executed in this static-only review. Author-reported passes were not independently reproduced.
Observability No new operational subsystem needs metrics. Silent parser fallback avoids credential-bearing diagnostic output; existing configuration diagnostics remain available.
Transactions and persistence No transaction, EditLog, visibility or failover semantics change. Existing configuration persistence uses Properties escaping.
Data writes and atomicity Redaction constructs output strings/maps without mutating stored properties or connection getters. No row-data, delete-bitmap, native ownership or crash-recovery changes.
FE/BE propagation No new FE/BE variables or protocol fields. The relevant FE-to-FE SQL transport and session-mode restoration were independently traced for the inline finding.
Performance Fixed patterns are precompiled and custom patterns cached. Host lists are matched per element to avoid recursive list matching; URI/query work remains local to rendering. No additional substantiated performance defect; no benchmark claim.
Other issues and limits Final missed-path rechecks found no other actionable issue. Hypothetical opaque nested query data lacked a supported consumer treating it as connection credentials and was dismissed. Free-text secrets, SDK containers and unrelated logs remain outside this change's stated scope.

This is a converged static review. Build, packaging, SQL regression and external-service execution remain outside its evidence.

Review converged after 2 round(s).

### Background

External catalogs retain connector properties. Provider declarations feed the FE's masking registry; catalog display, catalog metadata, and audit SQL rendering use that registry.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#70338 (provider-owned masking and ALTER CATALOG audit coverage), apache#70696 (overlapping metastore URI annotation fix), apache#55016 (all-FE configuration forwarding)
PR Type: Bugfix

Problem Summary:

Name-only matching exposes JDBC/URL and SDK/Hadoop credentials. Apply one display policy plus a dynamic FE-local name regex, preserving permanent rules. The diff also completes diagnostic annotations and tests.

An exercised `uri` value:

| Before | After |
|---|---|
| `https://fixture:fixture-password@api.example.com/v1?region=east&token=fixture-token` | `https://api.example.com/v1?region=east&token=*XXX` |

### Details

- **Change map:** Production code: +279/-28; tests: +710/-50; CI config: +9/-0; no generated/docs/submodule changes. Most added lines are tests. Production parts are shared name/value policy and output routing (about 210 added lines), validated configuration and SQL forwarding (about 30), and provider declarations/diagnostic masking (about 40).
- **Frequency:** Always when a retained credential uses one of the uncovered names or connection formats; reproduced in property display and CREATE/ALTER audit rewriting.
- **Root cause:** `DatasourcePrintableMap` checked names without inspecting values; credential declarations were incomplete. URI parsing accepted later endpoints as path text, and forwarded config SQL embedded decoded strings without escaping.
- **Why existing tests missed it:** Property tests missed URL/Hadoop/custom-name cases; access-key assertions expected disclosure. Metastore URI diagnostics lacked coverage. Admin config and manager regression tests used numeric values, missing SQL escaping.
- **Fix:** Share catalog/audit/lineage masking, complete credential annotations and distinguish diagnostic URIs; quote forwarded config strings using the session SQL mode.
- **Other paths and branches:** Shared output callers inherit the rules. Cached branch-3.1/4.0/4.1/4.2 retain the parsing gap; only master changes. No single introducing PR was identified.
- **Configs and defaults:** `datasource_sensitive_property_pattern` is FE-local, mutable and case-insensitive, defaulting to `password|passwd|secret|token|credential|access[._-]?key|api[._-]?key`. Startup/custom-file/runtime validation rejects invalid stored expressions without replacing the previous value. `(?!)` disables only the supplement; empty matches every name. Configure all serving FEs consistently.
- **Behavior change:** Stored properties and connections are unchanged. Display is more conservative: keyword matches can hide metadata, and URLs can lose userinfo/fragments or normalize query separators.

The complete masking rules are:

| Input | Output rule |
|---|---|
| Existing exact sensitive keys and provider prefixes | Remain masked, independently of the configurable pattern. Existing hidden-property rules still omit their entries. |
| Recognizable JDBC property names | Names ending in a JDBC `url`/`uri` component, including `jdbc_url`, `jdbc.jdbc_url`, `iceberg.jdbc.uri`, and `paimon.jdbc.uri`, mask completely. `connectionString`, `connection_string`, `connection-string`, and `connection.string` suffixes also mask completely. |
| JDBC values under any name | Any trimmed value beginning with `jdbc:`, case-insensitively, masks completely, including a bare `uri` alias and opaque/driver-specific JDBC syntax. |
| Native SDK credentials | Bare or dot/underscore/hyphen-delimited final components `token`, `credential`, or `credentials` mask completely. Registered aliases and the configurable pattern add coverage. |
| Hadoop credentials | The built-in families below mask completely, including dynamic bucket/account names and names prefixed before `fs.`; they do not depend on the configurable pattern. Other credential-like names receive the default pattern's protection. |
| Custom names | A match against the configured regex masks the entire value. Matching is a search, so the default protects `custom.password`, `clientSecret`, and `custom.accessKey`. It is unioned with every permanent rule. |
| Ordinary addresses | Hostnames, IPv4, bracketed IPv6, optional numeric ports in 0–65535, and comma-separated host lists remain visible. Empty address values stay empty. |
| URL selection | Sanitize properties ending in a delimited `uri/url/host/endpoint/address` component, including plural forms, and hierarchical `scheme://` values under other names. A name already classified sensitive takes precedence and masks completely. |
| Supported URL schemes | `http`, `https`, `thrift`, `hdfs`, `s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`, `abfss`, `wasb`, `wasbs`. Preserve the host, port, ordinary path, and non-sensitive query parameters; remove all userinfo and the entire fragment. |
| URL query credentials | Decode parameter names, process duplicates and both `&`/`;` separators, and mask values whose names match permanent/configured rules or contain `password/passwd/pwd/secret/token/credential`, access/API/account/private/auth/app/application key variants, or `authorization`; exact `auth` and `key` are also protected. Query separators render as `&`; decoded names must use ASCII letters/digits, dot, underscore, tilde, or hyphen. |
| Signed URLs | A decoded query name containing `signature`, or a delimited `sig`/`sas` component, masks the entire URL, including AWS/GCS/OSS/CloudFront signatures and Azure SAS. |
| Unreliable address parsing | Unknown schemes, opaque/invalid URLs, invalid host/port or escaping, unrecognized query names, matrix path parameters, repeated encoding, and nested connection strings in otherwise unclassified query values mask completely. Any comma-containing URL masks completely, including ordinary query commas; decoded paths containing commas or nested `://` also mask completely. Valid plain host:port lists remain visible. No raw-value or parser-exception fallback is logged. |
| All-FE configuration SQL | `ADMIN SET ALL FRONTENDS CONFIG` quotes decoded names and values according to the forwarded `sql_mode`; regex backslashes and quotes survive peer reparsing in default and `NO_BACKSLASH_ESCAPES` modes. |
| Typed URI diagnostics | Iceberg/Paimon JDBC and REST URI fields, including the shared `uri` alias, use `sensitive=true, sensitiveInDiagnosticsOnly=true`: non-empty diagnostic values render as `***`, empty values as `<empty>`. They do not export URI aliases into the global secret-name registry; catalog output follows the value-aware rules above. |
| Credential annotations | Access keys and every declared alias in S3, MinIO, GCS, OSS, COS, OBS, Iceberg Glue and Iceberg REST now join existing secret/token annotations; Ozone access keys and JDBC catalog URLs remain protected. These declarations mask typed diagnostics and contribute unconditional provider-sensitive names. Non-secret account names, OAuth modes/scopes and credential-file paths are unchanged. |

Permanent Hadoop families, matched case-insensitively:

| Namespace | Credential fields |
|---|---|
| `fs.s3.` / `fs.s3a.` and optional `bucket.<bucket>.` | `access.key`, `secret.key`, `session.token`, `encryption.key`, `server-side-encryption.key`, `proxy.password`; dotted bucket names are supported. |
| `fs.azure.` | `account.key`, `sas`, `sas.fixed.token`, `account.oauth2.client.secret`, `account.oauth2.refresh.token`, `encryption.encoded.client-provided.key`, including account/container suffixes. |
| `fs.adl.oauth2.` | `credential`, `refresh.token`. |
| `fs.oss.` | `accessKeyId`, `accessKeySecret`, `securityToken`. |
| `fs.cosn.` with optional `userInfo.` | `secretId`, `secretKey`. |
| `fs.obs.` | `access.key`, `secret.key`, `session.token`, `security.token`. |

Masking uses `*XXX` in property output. Lineage continues omitting name-classified secrets and sanitizes other values. Non-empty annotated credentials render as `***` in typed diagnostics. The retained `mc.session_token` declaration does not add token authentication to the current binder.

### Testing

- Before the policy change: 8 of 9 new property-policy tests fail because original credentials remain visible; the ordinary endpoint control passes.
- Before the JDBC annotation: 2 of 18 JDBC tests fail on the URL declaration and diagnostic disclosure.
- Configuration trimming: a targeted test reproduces accepting a regex that becomes invalid after storage trimming.
- Annotation follow-up baseline: S3 and Iceberg execute with 5 failures; Paimon executes separately with 2 URI diagnostic failures. The multi-URL case fails because its later password remains visible.
- `run-fe-ut.sh` passes all 367 tests in 35 selected classes locally: masking/audit/lineage, configuration, metastore/filesystem holders, actual provider registration, security/metadata/plugin surfaces, dispatch and config SQL roundtrips. Coverage includes URL lists, encoded/duplicate/signed URLs, 5,001-host lists, dynamic rules and unchanged connection values. FE Checkstyle passes.
- Extended the P0/nonConcurrent SQL audit suite with SHOW, `catalogs()`, and persisted CREATE/ALTER assertions. It was not executed locally; the regular P0 configuration includes it, while cloud P0 skips nonConcurrent suites.

| CI check | Evidence |
|---|---|
| Gitleaks 8.30.0 | The Gitleaks job scans the full PR commit range and misclassifies two adjacent Hadoop property-name literals as API-key values. The same scan reproduces 2 findings before the config fix and 0 after it. A generic-api-key exception requires both the exact test path and one of two exact synthetic property names. |
| All-FE regex forwarding | Before the serializer fix, 2 of 9 admin-config tests fail: the peer exposes `custom.pin1`, and the regex loses its backslash. After the fix, all 9 pass; actual parser/serializer/Env application plus masking and a literal matrix cover both SQL modes and command scopes. Peer application is simulated in-process, without multi-FE RPC. |
| Exception boundaries | Two fixture-name occurrences in another file and an unrelated synthetic API-key value in the allowed file remain detected; only the two intended occurrences are ignored. |

### Notes for Reviewers

The new defaulted `ConnectorProperty.sensitiveInDiagnosticsOnly` metadata prevents shared URI aliases from hiding every REST endpoint. Connector/metastore SPI signatures and baselines are unchanged. Free-text secrets, SDK containers and unrelated logging remain outside scope.

### Release note

External data source displays and audit property output now mask JDBC connection strings, native SDK/Hadoop credentials, credential-like custom properties, and URL authentication components. The new FE configuration `datasource_sensitive_property_pattern` adjusts extra name matching without disabling permanent credential rules.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: Yes (document the FE config and catalog-output rules in apache/doris-website; detailed rules are included above).
- Pre-submission status: Partially verified: SQL regression and multi-FE RPC not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests, and this description.
- Human review: not stated.
- Prompts: Mask MaxCompute/Ozone credentials, extend shared JDBC/URL/SDK/Hadoop/custom-name rules, then complete sensitive annotations and address review findings.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all 51 changed paths at head 839476c8b764b574118be2cfdecd8d4f1f3bcc43. No new substantiated findings. Review converged after 2 rounds, including a final challenge of the frozen review payload by both complete-scope reviewers and the separate risk reviewer.

Previously reported findings were independently rechecked: URL-list leakage is fixed by rejecting comma-containing URLs before URI reconstruction and decoded comma/nested-scheme paths; all-FE regex escaping is fixed by mode-aware SQL literal quoting with forwarded sql_mode. Neither is resubmitted; no existing P0/P1 finding remains confirmed applicable. No additional user focus was supplied.

Required checkpoint Static review conclusion
Goal and proof Shared masking protects catalog display, audit and lineage plus annotated diagnostics while preserving raw connection values. Added tests exercise the intended behavior and unchanged getters/maps; runtime success was not independently established.
Scope, clarity and reuse Common redactor and existing reflection/provider registration centralize the behavior; the SQL fix reuses the existing literal codec. Changes are focused on policy, declarations and coverage.
Concurrency and locking Runtime updates remain synchronized; configuration and the immutable source/pattern cache are volatile. Rendering uses local state. No new thread, nested lock or external I/O under locks was introduced.
Lifecycle and initialization Pattern state has class lifetime and refreshes against current configuration; no new closeable ownership or circular static initialization was found.
Dynamic configuration Startup, custom-file and runtime paths validate the trimmed value before storage. Rendering observes changes without restart; ALL FRONTENDS forwards SQL mode and quotes decoded names/values for that mode.
Compatibility and rolling upgrades The annotation member defaults to false. No changed SPI signatures, catalog storage format or connection semantics; older FEs retain their older behavior and must be upgraded before accepting the new configuration.
Thrift/protobuf IDs No definitions changed; cross-branch field-ID checks are not applicable.
Parallel paths SHOW CATALOG, SHOW CREATE, catalogs(), CREATE/ALTER audit, lineage, typed diagnostic rendering and provider alias registration were traced. Shared URI aliases retain value-aware handling.
Special conditions and errors JDBC strings, URL lists, signatures, encodings, unknown schemes and invalid addresses have explicit conservative rules and negative tests. Parser failures mask without logging credential-bearing exceptions.
Test coverage Inspected positive/negative URL policy, provider aliases, immutable raw values, dynamic/invalid/empty regex, startup/custom loading, lineage/audit and default/NO_BACKSLASH_ESCAPES parse/serialize/reparse cases, plus the SQL audit regression.
Expected results Added expected strings and assertions match the inspected paths; no result snapshots changed.
Observability Existing configuration reporting is reused; pure display transformations need no new operational metrics. Redactor exceptions intentionally omit raw input.
Persistence and failover Catalog persistence and edit-log paths are unchanged; display produces new maps/strings. Existing Java Properties serialization owns persisted configuration.
Data writes and atomicity No transaction or data-write protocol changed; visible-version and delete-bitmap invariants are unaffected.
FE/BE variables No new cross-process variable or send path.
Performance and memory Fixed patterns are cached; configuration patterns refresh when needed. Host lists are processed iteratively; no new retained unbounded collection or obvious performance regression was identified.
Other/module concerns Connector/foundation boundaries remain intact. No optimizer rewrite, catalog reset, lower-case mapping or visible-version behavior changed. The gitleaks exception requires both one exact test path and an exact synthetic property name.

Validation and coverage limits: static inspection only. No builds, unit/regression tests, style checks, scanner runs, plugin packaging, remote connections or actual multi-FE RPC were executed for this review. The SQL audit regression and real multi-FE behavior remain runtime validation limits; author-reported test results were not independently reproduced. There are no unresolved candidate findings or unreviewed changed paths within the assigned static scope.

Review converged after 2 round(s).

### Background

Catalog output exposes safe connector locations. S3 streaming audit statements retain the files selected for each attempt, using escaped batch syntax.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#67489 (resolved streaming audit inputs)
PR Type: Bugfix

Problem Summary:

The generic address sanitizer hides supported local ADBC paths, SQLite file URIs, ViewFS locations and resolved S3 audit batches. Preserve these locations while applying credential rules at final output.

| Input | Before | After |
|---|---|---|
| `driver_url=/opt/example/libdriver.so` | `*XXX` | Original absolute path |
| `uri=file:/data/example/catalog.db` | `*XXX` | Original file URI |
| `fs.defaultFS=viewfs://example-cluster` | `*XXX` | Original ViewFS location |
| Final streaming audit URI | `*XXX` | Selected filenames with credentials sanitized |

### Details

- **Change map:** Production +148/-25 across six files; tests +174/-16 across four. Shared masking handles local/ViewFS forms and resolved singleton paths; streaming snapshots selected files and uses a scoped final audit renderer. No generated, persistence, configuration or submodule changes.
- **Frequency:** Always for the supported locations above; reproduced by final-event and property assertions.
- **Root cause:** Host-based URI validation rejects authority-free file paths and unsupported ViewFS schemes. Re-parsing a generated glob/list as a generic URI loses the trusted singleton structure.
- **Why existing tests missed it:** Streaming tests accepted hidden final URIs and inspected batches only before final masking. Property and SQL audit tests omitted local/ViewFS forms. Existing ADBC metadata tests already assert local visibility, but were not part of prior local validation.
- **Fix:** Recognize absolute local driver paths and authority-free absolute file URIs; admit ViewFS under the HDFS policy. Snapshot selected singleton paths, sanitize each independently, and assemble escaped batch display at audit emission. Keep current name/JDBC/query/signature rules and sanitize all other TVF properties.
- **Other paths and branches:** SHOW, catalogs(), lineage and property audit callers share the location rules. Success, failure and notification streaming events use the same renderer. Ordinary SQL/catalog URI lists remain conservatively masked. Only master changes; these regressions originate in this unmerged PR and have not been introduced into release branches.
- **Behavior change:** Safe locations become visible again. Signed, unknown, nested and ambiguous connection values remain masked. No connection or execution inputs change; no new network requests occur.

### Testing

| Check | Result |
|---|---|
| Before fix | 37 tests/3 classes run, 9 assertion failures, no errors/skips |
| Literal filename renderer probe | Reproduces lost selected filenames before the singleton-path refinement; passes afterward |
| Final repository FE runner | 553 tests/47 classes pass, no failures/errors/skips; includes streaming/audit helpers, offset/event providers, ADBC properties/resolver, shared masking, lineage and prior provider/config coverage |
| FE Checkstyle | Pass |
| SQL regression | Extended SHOW, catalogs() and persisted audit assertions; not executed locally without a cluster |

### Notes for Reviewers

The scoped renderer runs only for internally prepared S3 streaming tasks. Ordinary SQL callers keep the default audit encryption path. Current name rules apply when publishing; ambiguous or signed selected inputs mask the entire batch. Literal path handling does not add a SQL-visible masking bypass.

### Release note

Preserve supported local, file and ViewFS locations in masked output, and retain sanitized selected filenames in S3 streaming audit events.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: No (restores supported locations; full masking rules are documented in the PR).
- Pre-submission status: Partially verified: cluster SQL regression not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests and this description.
- Human review: not stated.
- Prompts: Fully fix the remaining PR comments and review the changes again.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all 59 changed files and their relevant producer/consumer paths at 48dfec4. One new P2 finding is inline: the new selected-file parser drops a literal hash suffix from supported S3 object keys, so final audit output identifies a different input. Execution still uses the original file statuses.

Review converged in 2 rounds: all three reviewers returned NO_NEW_VALUABLE_FINDINGS in the latest round, all candidates and initial risks have explicit dispositions, and the final changed-file/anchor sweep is complete.

The inspected flows were:

provider annotations -> masking registry -> shared name/value rules -> SHOW / catalogs() / SQL audit / lineage
selected file statuses -> task snapshots -> singleton sanitization -> escaped batch -> final audit event
config input -> validation -> volatile setting -> current rendering policy
all-FE config -> SQL-mode-aware quoting -> forwarded session variables -> peer parsing

Critical checkpoint conclusions:

Checkpoint Conclusion
Goal and proof Shared credential masking reaches the intended outputs; inspected unit/regression assertions support the main cases. The literal-key final-audit gap is the inline finding.
Scope and reuse Shared policy, provider-owned declarations and existing SQL literal codec keep the change focused.
Concurrency and locks Volatile configuration and paired immutable cache snapshots are consistent; audit snapshots are copied before synchronous emission. No new lock order or metadata-lock IO issue found.
Lifecycle and initialization Attempt preparation resets audit state; success/failure/notification paths use the same final callback; cancellation and resource release preserve existing sequencing. No new owned resource or static-init cycle found.
Configuration Mutable FE-local regex validates the stored trimmed value before mutation at startup, custom-file load and runtime; readers observe updates. All-FE quoting uses the forwarded SQL mode.
Compatibility Defaulted annotation metadata is additive; no storage-format or connector SPI signature change found.
Thrift/protobuf No changes.
Parallel paths SHOW, SHOW CREATE, catalogs(), CREATE/ALTER audit, lineage, typed diagnostics and streaming final events inspected. One selected-key mismatch remains inline.
Conditions and error handling Unsupported/ambiguous locations mask; parser causes are suppressed in the new renderer. No additional failure-path defect found.
Test coverage Positive/negative name, JDBC, URL, Azure, local, ViewFS, dynamic-config and streaming fixtures inspected. Final audit lacks the existing literal-hash notification fixture.
Changed results No golden .out files changed; revised assertions match the stated masking policy.
Observability Audit identifiers remain available except for the reported key truncation; no new metric requirement identified.
Persistence and failover Catalog storage/edit-log behavior is unchanged; the knob follows existing FE-local configuration handling.
Data writes and atomicity Connection maps and execution file statuses are unchanged. No new transaction, visibility, version or delete-bitmap behavior.
FE/BE propagation No new transmitted variables; all-FE SQL mode uses the existing forwarding mechanism.
Performance Regex compilation is cached; host lists use iterative per-item parsing. No substantiated new performance defect; no benchmarks run.
Other checks Provider aliases/admission and the narrowly constrained Gitleaks fixture exception inspected; no additional finding.

Existing review context: the URL-list P1 is fixed by raw-comma and decoded-path rejection, so no existing P0/P1 comment remains blocking on this head. The earlier regex-forwarding, Azure-container, ordinary S3 batch, local ADBC and ViewFS concerns are also addressed in the inspected code. The new inline finding concerns literal-key parsing introduced by the singleton renderer and is distinct from the earlier brace/comma batch rejection. No additional user focus was supplied.

Validation limits: static inspection only. No builds, tests, benchmarks, cluster SQL, real S3/SQS execution or multi-FE RPC were run in this review. No source coverage gap or unresolved candidate remains; these execution limits are not claims of runtime validation.

Review converged after 2 round(s).

### Background

Filesystem locations can use provider-specific authorities or configured defaults. Streaming audit snapshots are needed only until the worker publishes the attempt's final audit event.

### What problem does this PR solve?

Issue Number: None
Related PR: None
PR Type: Bugfix

Problem Summary:

DNS-host validation hides valid GCS underscore buckets and configured authority-free HDFS/ViewFS paths. Completed streaming task history also retains newly added temporary audit snapshots. Preserve supported native locations and release snapshots after synchronous audit emission.

| Input | Before | After |
|---|---|---|
| `gs://example_bucket/warehouse` | `*XXX` | Original location |
| `hdfs:///data.csv`, `viewfs:///warehouse` | `*XXX` | Original location |
| Completed/canceled streaming attempt | New audit map/list retained | New audit map/list released |

### Details

- **Frequency:** Always when rendering these native locations or retaining an attempted task in history; reproduced through actual formatter, lineage and task methods.
- **Root cause:** URI.getHost requires DNS-host syntax, unlike GCS bucket authorities and filesystem defaults. The new snapshot fields reset only before a later attempt, which a completed task never starts.
- **Why existing tests missed it:** Property, audit and lineage tests covered DNS authorities and named ViewFS mounts. Streaming tests checked event contents but not post-attempt snapshot ownership. SQL audit tests omitted native authority/default cases.
- **Fix:** Validate GCS bucket characters and length separately; allow hierarchical absolute HDFS/ViewFS paths with no authority and reconstruct their slash form safely. Keep credential/query/signature checks and strict HTTP/S3 validation. Use worker-owned finally cleanup around the entire run, after synchronous audit and including early cancellation; concurrent cancellation cleanup is unchanged.
- **Other paths and branches:** Shared SHOW/catalogs()/audit/lineage rendering receives the native-location fixes. Success, failure, notification and early-cancel paths release snapshots; retries prepare fresh snapshots. Only master changes; both regressions originate in this unmerged PR, not release branches.
- **Behavior change:** Supported native locations remain visible with credentials sanitized. Execution inputs, stored properties and offset commits are unchanged. No new settings, protocol fields, threads, I/O or persistence formats.

### Testing

| Check | Result |
|---|---|
| Before fix | Actual formatter probe masks all three valid forms; five focused test methods execute with five expected assertion failures across property/lineage and successful/failed/canceled task snapshot ownership |
| Expanded repository FE runner | 557 tests/47 classes pass, no failures/errors/skips |
| FE Checkstyle | Pass |
| SQL regression | Added native location and credential assertions to SHOW, catalogs() and persisted audit; not executed locally without a cluster |

### Notes for Reviewers

The worker clears only the newly introduced temporary map/list. Existing task history fields and command behavior are unchanged. GCS validation is a display-safety check, not a bucket-creation policy or authorization check.

### Release note

Preserve supported GCS and default HDFS/ViewFS locations in masked output, and release temporary streaming audit snapshots after an attempt finishes.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: No (restores supported metadata output and fixes transient resource ownership; full output rules are in the PR).
- Pre-submission status: Partially verified: cluster SQL regression and multi-FE RPC not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests and this description.
- Human review: not stated.
- Prompts: Fully repair the PR and continue reviewing until no new issues remain.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review of head 3c2eaac, covering all 59 changed files and their relevant callers. One new P2 is reported inline: decoding a selected literal percent key again hides the whole streaming audit batch. Existing hash-key P2 thread 4624936897 still applies and is not duplicated. The earlier URL-list P1 4609073214 is fixed on this head; no previously reported P0/P1 remains independently confirmed.

Critical checkpoint conclusions:

  • Goal and proof: shared value-aware masking covers display, audit and lineage, with diagnostic annotation coverage. Location preservation remains incomplete for the inline percent case and known hash case. Tests were inspected only.
  • Scope and reuse: one shared redactor, existing provider annotation/export pipeline, SQL literal codec and S3 batch renderer are reused; execution properties remain unchanged.
  • Concurrency and locking: volatile configuration and immutable source/Pattern snapshots publish coherent rules; task snapshots and audit callbacks are worker-owned and synchronous. No new blocking I/O or lock-order change.
  • Lifecycle: run-finally releases temporary audit maps/lists on success, failure and early cancellation; retries prepare fresh snapshots. No additional lifecycle defect found.
  • Configuration: the new FE-local mutable regex validates trimmed startup/custom/runtime values and is observed by subsequent rendering, including final streaming emission. All-FE SQL escaping follows forwarded sql_mode.
  • Compatibility: the new annotation member defaults false; connector bindings, stored properties, protocol/storage formats and SPI method signatures are unchanged. Mixed-version FEs require support for the new configuration before applying it everywhere.
  • Thrift/protobuf and FE-BE variables: no definitions, IDs, enums or transmitted variables changed.
  • Parallel paths: SHOW, SHOW CREATE, catalogs(), CREATE/ALTER/TVF/job audit and lineage reviewed; normal URI sanitization and the structured streaming exception both inspected.
  • Special conditions: provider/permanent rules survive disabling the supplement; Azure containers, GCS/native/local locations, malformed/signed/nested URLs and host-list handling have concrete checks and negative tests.
  • Coverage and results: unit/provider/alias/config/SQL-mode/audit-publication tests and SQL regression assertions inspected. Literal percent final-audit coverage is missing; expected mask changes otherwise match the stated policy. No result files changed.
  • Observability: audit batch identity loss is reported; parser errors have sanitized failure messages. No further logging or metric requirement identified.
  • Persistence and transactions: no EditLog, visibility, rowset/delete-bitmap, transaction/commit or failover protocol change; output copies do not alter selected statuses or data-write atomicity.
  • Performance: compiled patterns are reused and long host lists matched per item; no new data-row work, I/O or material performance defect identified.
  • Other concerns: prior ViewFS/local-path/Azure/batch/regex fixes are present; no additional user-provided focus.

Review converged after 2 rounds: the latest general and risk reviewers found no additional valuable findings and all candidates/risks were disposed. Validation limits: static inspection only; no builds, tests, Checkstyle, packaging, SDK/cluster execution or real multi-FE RPC performed.

Review converged after 2 round(s).

### Background

S3 streaming tasks retain decoded selected object locations for final audit events, including failed attempts. A hash in that trusted object key is part of its identity. ViewFS authorities identify configured mount tables.

### What problem does this PR solve?

Issue Number: None
Related PR: None
PR Type: Bugfix

Problem Summary:

The singleton sanitizer treats literal hashes as URL fragments, collapsing selected filenames and hiding later query syntax. DNS validation also hides valid underscore ViewFS mount names. Preserve both native identities with the shared credential policy.

| Selected files | Before | After |
|---|---|---|
| `file#1.csv`, `file#2.csv` | `{file,file}` | `{file#1.csv,file#2.csv}` |

### Details

- **Frequency:** Always when a selected path contains a hash or a ViewFS mount name contains an underscore; reproduced in final success, failure and notification audit rendering.
- **Root cause:** The new singleton splitter separates a native decoded key using generic URI fragment syntax. The shared URL renderer then discards that suffix, losing identity and later query structure. ViewFS also incorrectly inherits DNS-host validation.
- **Why existing tests missed it:** The existing notification-provider fixture proves selection of file#1.csv, but final audit tests used ordinary filenames or other glob characters. Property/SQL audit tests intentionally remove ordinary URL fragments and missed logical underscore mount names.
- **Fix:** Keep literal hashes in selected paths and query-shaped suffixes, encode them temporarily only for URI validation, and pass the original query separately through the existing credential/signature parser. Validate ViewFS logical authorities with the existing ordinary-address grammar instead of DNS-host semantics. Preserve generic fragment removal and every current name/path/query/unknown-format guard.
- **Other paths and branches:** Final successful, failed and notification audit events share this sanitizer. Ordinary catalog/SQL addresses retain generic fragment removal; ViewFS validates safe logical authority syntax, including underscores, with userinfo/query/port guards. Only master changes; the regression originates in this unmerged PR. Existing BE delimiter behavior is separate and does not justify losing failed-attempt identity.
- **Behavior change:** Final audit retains distinct selected filenames. Sensitive query values stay masked and signed selected locations mask entirely, including when the query follows a literal hash. Execution inputs, offsets, stored properties and task lifecycle are unchanged.

### Testing

| Check | Result |
|---|---|
| Before fix | Actual renderer probe collapses two names to identical file entries and exits1; six focused test methods execute with four expected assertion failures and two existing controls passing |
| Expanded repository FE runner | 559 tests/47 classes pass, no failures/errors/skips, BUILD SUCCESS |
| FE Checkstyle | Pass |
| Final probes | Same six hash/control methods and four native/hash/literal/ViewFS probes all pass; staged Gitleaks scan passes |
| Native ViewFS baseline | Pinned Hadoop ViewFileSystem initializes mount_table successfully, but the actual formatter returns MASK; positive property/audit/lineage and negative authority cases added |
| Coverage | One/multiple files, success/failure, notification fixture, hashes before/after query markers, credentials/signatures and unchanged input paths; ordinary URL fragment removal remains asserted |
| Cluster validation | SQL regression and multi-FE RPC not executed locally |

### Notes for Reviewers

The exception is restricted to internally selected singleton locations. Arbitrary SQL/catalog values cannot opt into it. Unreliable selected query syntax remains fail-closed under the existing policy.

### Release note

Retain literal hash characters in selected S3 audit identities and display validated logical ViewFS mount names while sanitizing credentials.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: No (restores selected-attempt auditing; complete rules are in the PR).
- Pre-submission status: Partially verified: cluster SQL regression and multi-FE RPC not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests and this description.
- Human review: not stated.
- Prompts: Fully fix remaining PR comments and continue local review until no new issues remain.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review of head 2b8cf6d covered all 59 changed paths, their relevant producers/consumers, tests, and existing threads. One new P2 finding is inline: non-secret query-like text in a selected S3 object key is normalized, so the final audit event can name a different selected input. This concerns selected-attempt audit identity, including failed attempts; it does not assert that the BE successfully reads literal question-mark keys.

The existing literal-percent P2 still applies: a second decode masks an already-decoded percent key and its batch. It is already covered and is not reposted. The previous URL-list P1 is fixed by rejection before path reconstruction; no existing P0/P1 finding was confirmed as still applicable. The reported all-FE escaping, Azure container, ordinary selected-batch, local ADBC path, ViewFS mount-table, and hash-preservation instances are addressed on this head.

Critical checkpoint conclusions:

  • Goal/correctness: the shared policy extends masking to catalog output, audit properties, lineage and typed diagnostics without changing stored connection values. Selected-location fidelity remains affected by the inline issue and the known percent issue.
  • Scope/reuse: changes stay within output policy, supporting configuration, annotations and audit snapshots; shared reflection, SQL literal quoting and batch rendering are reused.
  • Concurrency/locking: regex source/pattern snapshots are immutable and volatile-published; config validation precedes publication. Task snapshots are worker-owned and the audit callback runs synchronously. No new catalog locks or I/O under locks were found.
  • Lifecycle/static initialization: per-attempt snapshots reset before retries and release in run's finally, including early cancellation. No new native ownership or C++ static-initialization dependency is introduced.
  • Configuration: the mutable regex is checked at startup and runtime and observed on rendering. Permanent/provider rules survive disabling the supplementary heuristic. Forwarded SQL now uses mode-aware string quoting.
  • Compatibility: the annotation element is defaulted; connector/metastore method surfaces and persisted/wire formats are unchanged. Older binaries retain their previous display policy until upgraded.
  • Thrift/protobuf: no gensrc changes; field-ID comparison is not applicable.
  • Parallel paths: SHOW, SHOW CREATE, catalogs(), CREATE/ALTER property audit and lineage use the shared policy. Both metastore families and filesystem aliases are covered; streaming uses its structured callback.
  • Conditions/errors: malformed or ambiguous addresses return a mask, invalid regexes fail before publication, and new audit parser errors omit original secret-bearing causes. Format exceptions have comments and negative cases.
  • Test coverage: inspected positive/negative URI, alias/provider, config roundtrip, raw-value preservation and final streaming-event cases. Literal separator identity is missing; the existing percent case remains uncovered. SQL regression checks both display and persisted audit.
  • Test results: no result .out files changed. Updated expected Java output follows the masking policy, subject to the reported literal-key gaps. No builds or tests were executed.
  • Observability: selected-input tracing is the remaining audit concern. Existing query IDs and error boundaries remain; no additional metric need was identified for local formatting.
  • Transactions/persistence: no EditLog, visible-version, delete-bitmap, failover or stored catalog metadata change; config persistence uses the existing mechanism.
  • Data writes/atomicity: no new mutation of selected status objects, execution inputs, offset/commit state or transaction behavior was found.
  • FE/BE propagation: no new transmitted field or variable; the S3 accessor exposes existing task statuses for audit snapshots.
  • Performance: no new remote I/O or per-row work; host-list validation iterates, and snapshots/parsing are per audit attempt. No benchmark was run.
  • Other concerns/user focus: the Gitleaks exception is limited to an exact path and two exact synthetic names. No additional user focus was supplied and no other new issue was substantiated.

Validation was static inspection only. Cluster SQL regression, real multi-FE RPC and runtime performance remain unverified; there are no unresolved static candidates or uncovered changed paths. Review convergence means reviewer agreement and coverage completion, not that the reported defects have been fixed.

Review converged after 2 round(s).

### Background

S3 listing and notification metadata supply selected native object paths. Notification keys have already been URL-decoded before audit snapshots are prepared.

### What problem does this PR solve?

Issue Number: None
Related PR: None
PR Type: Bugfix

Problem Summary:

The singleton sanitizer decodes an already-decoded selected path again and treats literal percent sequences as nested URI encoding. Valid object filenames hide the entire final audit batch. Preserve native path text while retaining ordinary URI encoding checks.

| Selected filename | Before | After |
|---|---|---|
| `100%.csv`, `literal%252F.csv` | Entire batch URI is `*XXX` | Original distinct filenames |

### Details

- **Frequency:** Always for a native filename containing malformed URI-like percent text or a sequence misclassified as another encoding layer; reproduced in final audit rendering.
- **Root cause:** URLDecoder interprets native filename text as URI syntax, throwing on a literal percent. The later repeated-encoding guard also applies URI semantics to the same native text.
- **Why existing tests missed it:** Notification tests selected ordinary/hash keys; final audit tests covered glob/hash characters but no percent corpus. Property/SQL tests correctly hide malformed ordinary URIs and did not exercise the already-decoded internal path contract.
- **Fix:** Check native path text verbatim and apply repeated-encoding detection only to generic URI paths. Clarify the internal API's already-decoded path requirement. Keep matrix/nested/list, authority, name, query and signature guards unchanged.
- **Other paths and branches:** Polling and notification success/failure events share the native renderer. Ordinary SQL/catalog values retain URI parsing and encoding checks; query-shaped suffixes retain their strict policy. Only master changes; this regression originates in the unmerged PR.
- **Behavior change:** Selected literal percent and plus filenames remain visible, with unrelated credentials still masked. No input/status/offset, persistence, configuration, thread or I/O change.

### Testing

| Check | Result |
|---|---|
| Before fix | Actual final renderer probe masks the whole batch and exits1; four focused methods execute with two expected percent assertion failures and two existing controls passing |
| Coverage | One/multiple selected files, success/failure, notifications, bare percent, nonhex percent, literal %HH/repeated-looking text and plus; ordinary malformed/repeated-encoding URI controls remain masked |
| Expanded repository FE runner | 561 tests/47 classes pass, no failures/errors/skips, BUILD SUCCESS |
| FE Checkstyle | Pass; staged Gitleaks scan also passes |
| Same focused checks | Actual percent renderer probe and all four percent/control methods pass |
| Cluster validation | SQL regression and multi-FE RPC not executed locally |

### Notes for Reviewers

Only the internal task-selected path skips URI decoding. SQL/catalog inputs cannot opt into it. Unknown query syntax, signatures and ambiguous path connection syntax retain existing fail-closed behavior.

### Release note

Preserve already-decoded native object filenames containing literal percent characters in final streaming audit events.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: No (restores selected-attempt identity; full policy is in the PR).
- Pre-submission status: Partially verified: cluster SQL regression and multi-FE RPC not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests and this description.
- Human review: not stated.
- Prompts: Fully fix PR comments and repeat local review until no new issues remain.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review of all 59 changed files at 9eae85ccdd8e781101c0ff0cda1394fae6be3868: no new substantiated findings. Two complete-scope reviewers and a separate URI/streaming risk reviewer each returned NO_NEW_VALUABLE_FINDINGS; all risk items and candidates have an evidence-backed disposition.

The existing P2 selected-file suffix finding still applies: native data?x=1;y=2.csv becomes data?x=1&y=2.csv in final audit output, and empty suffix components are discarded. It is already reported and is not duplicated inline. The prior P1 URL-list leak is fixed by the early comma rejection and decoded-path guards; no existing P0/P1 was confirmed still applicable. Inspected source also addresses the existing Azure-container, local-ADBC, ViewFS, resolved-batch, hash, percent and all-FE escaping reports.

Review checkpoint Conclusion
Goal and proof Credential masking reaches display, SQL audit, typed diagnostics and lineage while preserving stored connection values. Added tests support these paths; the known suffix-identity P2 remains.
Scope and reuse Shared policy is centralized; SQL quoting and selected-batch escaping reuse existing helpers.
Concurrency and locks Config/cache publication uses volatile immutable snapshots. Audit snapshots remain worker-owned through synchronous rendering; no new lock order or remote I/O under locks.
Lifecycle and initialization Temporary audit maps/lists are released in worker finally, including failure/early cancellation. No new initialization cycle found.
Configuration The FE-local mutable regex is validated after trimming on startup/custom/runtime paths. Rendering observes updates; forwarded SQL preserves escapes under the forwarded sql_mode. Serving FEs need consistent configuration.
Compatibility Defaulted annotation metadata and additive helper/getter APIs introduce no changed connector SPI signature, persisted format or FE/BE wire field.
Thrift/protobuf IDs No gensrc changes.
Parallel paths Checked provider registration, SHOW/SHOW CREATE/catalogs(), parser encryption, lineage, polling/notification streaming and generic/custom audit routes.
Special conditions Local/file/native/Azure exceptions have explicit validation and negative cases; malformed, nested and signed locations fail closed.
Test breadth Inspected unit coverage for aliases, positive/negative URI formats, dynamic/config startup policy, SQL-mode roundtrips, final streaming events and cleanup, plus the SQL audit regression.
Expected results Changed assertions match the stated policy; no .out files changed. The existing suffix-separator case remains uncovered by added final-event assertions.
Observability Final audit retains selected inputs through the structured renderer; parser failure boundaries avoid echoing credential-bearing values. No added hot logging or metric need identified.
Transactions and persistence Offset commit/replay and retained connection properties are unchanged; transient audit snapshots do not change persistence.
Data writes and atomicity Insert execution and selected statuses remain unchanged. Transaction visibility, visible-version and delete-bitmap paths are untouched.
FE/BE propagation No new transmitted variable or BE memory-ownership path.
Performance Patterns are cached; host lists are checked per host. No concrete new performance defect found in the rendered-value/file scans.
Further checks Diagnostic-only aliases reach the appropriate registry policy; the Gitleaks exception combines exact path and synthetic-name constraints. No further substantiated issue found.

No additional user-provided focus was specified. Coverage is complete for this static review, with no unresolved new candidate. Builds, tests, Gitleaks, cluster SQL and real multi-FE RPC were not run in this invocation; test results claimed by the PR author were not independently reproduced.

Review converged after 1 round(s).

### Background

Selected object keys can contain query-shaped text. That text identifies the native key; ordinary URL query normalization must not rewrite its non-secret spelling.

### What problem does this PR solve?

Issue Number: None
Related PR: None
PR Type: Bugfix

Problem Summary:

Final streaming audit collapses distinct selected keys by changing semicolons to ampersands and removing empty components. URI validation also rejects literal percent values in native suffixes. Preserve native suffix spelling while retaining credential/signature and nested-connection checks.

| Selected suffix | Before | After |
|---|---|---|
| `x=1;y=2.csv` | `x=1&y=2.csv` | Original semicolon |
| `x=1&&y=2.csv` | `x=1&y=2.csv` | Original empty component |
| `tag=100%.csv` | Entire batch masked | Original value |

### Details

- **Frequency:** Always for the affected selected-key suffixes; reproduced on final success/failure/notification events.
- **Root cause:** The shared query formatter applies ordinary URL normalization and strict URL decoding to already-decoded native key text. The original nested-JDBC guard also misses leading whitespace/form-space views.
- **Why existing tests missed it:** Generic property tests intentionally normalize URL separators. Final audit tests covered hashes and percent paths but omitted query-suffix separators, empty components and native percent values.
- **Fix:** Encode the whole native suffix only for temporary URI validation. Sanitize parameters in place, preserving native delimiters, empties and safe raw values; ordinary URLs retain normalization. Names/signatures keep shared classification. Inspect raw and at most three decoded native value views, preserving output text; literal percent cannot hide an encoded connection, and residual encoding fails closed. Include whitespace/form-space JDBC inspection.
- **Other paths and branches:** Polling/event success/failure use the same renderer; ordinary catalog/audit/lineage property output retains URL behavior with stronger nested-JDBC detection. Only master changes; the identity regression originates in the unmerged PR. No public API, configuration, wire, persistence or execution-input changes.
- **Behavior change:** Safe selected identities remain distinct. Credentials still mask; signatures, nested connections, unknown names and undecidable deep encodings hide the entire URI/batch. Native plus spelling remains literal in output.

### Testing

| Check | Result |
|---|---|
| Before fix | Six focused methods execute with four expected identity/credential/opaque-JDBC failures and two passing controls |
| Additional guard | Focused form-space JDBC case fails before its inspection fix; corrected literal-glob mask expectation passes independently |
| Coverage | Semicolon/ampersand distinction, repeated/leading/trailing empty components, percent/encoded-looking/plus/space values; one/multi-file success/failure and notifications; encoded secret names, signatures, encoded/double/deep nested connections with trailing literal percent |
| Expanded repository FE runner | 565 tests/47 classes pass, no failures/errors/skips, BUILD SUCCESS |
| FE Checkstyle | Pass; seven focused identity/security/control methods and staged Gitleaks scan pass |
| Cluster validation | SQL regression and multi-FE RPC not executed locally |

### Notes for Reviewers

Native mode is private and derives only from task-selected snapshots. No SQL property can select it. Inspection is bounded and never returns decoded text; no new I/O, thread or retained state is introduced.

### Release note

Preserve non-secret native selected-key query suffix spelling in streaming audit while sanitizing credentials and nested connections.

### Check List (For Author)

- Behavior changed: Yes (see Details).
- Does this need documentation: No (restores selected-attempt identity; complete rules are in the PR).
- Pre-submission status: Partially verified: cluster SQL regression and multi-FE RPC not executed locally.

### AI Disclosure

- Tool: Codex (GPT-6).
- Generated: Production changes, tests and this description.
- Human review: not stated.
- Prompts: Fully repair PR comments and repeat local review until no new issues remain.
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@Gabriel39

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review of all 59 changed files at 5a39cd9 found no new actionable findings. Review converged in 1 round, including the final sweep. No additional user focus was supplied.

The nine existing review concerns were independently rechecked: URL-list credential leakage, all-FE regex quoting, Azure container retention, local ADBC paths, ViewFS mount names, selected S3 batches, and native hash/percent/separator identity are addressed at this head. The previously reported P1 URL-list issue no longer applies; no existing P0/P1 finding remains blocking. No duplicate inline comments are added.

Critical checkpoint conclusions:

  • Goal and evidence: credentials are masked across SHOW CATALOG/SHOW CREATE, catalogs(), audit properties, typed diagnostics and lineage without changing connector inputs. Unit and audit-regression assertions cover these boundaries; only static inspection was performed.
  • Scope and clarity: the shared value policy, annotation metadata and existing SQL literal/glob codecs keep the changes focused on output behavior.
  • Concurrency: the dynamic configuration is volatile and its source/compiled pattern publish together; task attempts are serial and audit rendering is synchronous. No new lock ordering, remote I/O under locks, or deadlock path was found.
  • Lifecycle: selected properties/paths are copied before execution and released by the worker after synchronous audit, including failure and early cancellation; no new static-initialization cycle was found.
  • Configuration: the new mutable pattern is validated after trimming on startup, custom loading and runtime updates, refreshed on output, and forwarded with mode-aware SQL quoting. Permanent/provider rules remain active when the additional rule is disabled.
  • Compatibility: the defaulted annotation member preserves existing holder behavior; raw maps, connector inputs, storage formats and wire signatures are unchanged. Mixed-version rollout provides the new display policy on upgraded FEs.
  • Thrift/protobuf: no definitions or numeric IDs changed.
  • Parallel paths: provider admission, SHOW variants, catalogs(), parser-based CREATE/ALTER audit, lineage, polling and notification streaming sources were traced. Selected singletons are sanitized before batch glob rendering; ordinary URL lists retain fail-closed behavior.
  • Conditional checks: local-file, Azure container and native-key exceptions have explicit rationale and negative cases; malformed, signed and nested connection values remain masked.
  • Test coverage: inspected positive/negative alias, URL encoding/list/signature, dynamic configuration, SQL-mode roundtrip, lineage and final success/failure/cancellation audit tests plus persisted-audit SQL assertions.
  • Expected results: changed assertions agree with the intended masking and preserved safe location spelling; no handwritten .out file is introduced. Runtime results were not independently verified.
  • Observability: existing contextual audit-failure logs are retained; the new replacement renderer suppresses secret-bearing parser causes. No new operational metric is required for these formatting changes.
  • Persistence and failover: no EditLog, metadata persistence, offset-commit or transaction protocol is changed; custom configuration retains the existing escaped Properties persistence path.
  • Data writes and atomicity: execution continues using the original properties and exact file statuses; this patch changes audit/display representations, not write visibility or transaction outcomes.
  • FE/BE propagation: no new cross-process execution variable or send path is introduced; all-FE configuration forwarding was inspected separately.
  • Performance and memory: host lists use iterative matching, native query decoding is bounded, and temporary task snapshots are released; no new unbounded background work or BE memory-accounting change is introduced.
  • Other issues: final rechecks of error paths, plugin annotation/classloader boundaries, provider aliases and the narrowly constrained Gitleaks fixture exception found no additional substantiated defect.

Coverage limits: this invocation ran no builds, unit tests, regression tests, benchmarks, live S3 operations or real multi-FE RPC. The cluster-backed audit suite and live rollout behavior remain runtime validation limits, not unresolved static candidates.

Review converged after 1 round(s).

@Gabriel39

Copy link
Copy Markdown
Contributor Author

Local pipeline review — ✅ PASS

schema: doris-repo-review/v1
status: PASS
pr: apache/doris#70705
commit: 5a39cd98f66872ce9502f636d617bdae565ca5c5
base: de48fa225e444ea4f25cf0699a656a901ad1ceb1
reviewed_at: 2026-11-19T16:21+08:00
reviewer: Gabriel39
model: gpt-6-astra
effort: xhigh
findings: {blocker: 0, major: 0, minor: 0, nit: 0}
rounds: 1
converged: true

Notes for maintainers

  • fe/fe-core/src/main/java/org/apache/doris/common/util/DatasourcePropertyRedactor.java:250 preserves selected native suffix separators, empty components and safe original values while retaining shared credential/signature checks. Native value inspection is bounded to three decodes; unresolved encoding remains masked.
  • fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingInsertTask.java:160 releases temporary audit snapshots on the worker after synchronous final emission, including early cancellation. Previously reported native-location and selected-identity regressions are verified repaired.
  • Static review covered all 59 changed files and all 17 checkpoints. Reviewers did not run builds/tests; author-reported FE and style results are separate evidence. Cluster SQL regression and multi-FE RPC remain unverified locally.

Reviewed locally with the doris-repo-review pipeline. Repository policy may accept this receipt for the matching commit; it is not a human Apache approval.

@Gabriel39
Gabriel39 merged commit 6a6c752 into apache:master Nov 20, 2026
49 of 50 checks passed
yiguolei pushed a commit that referenced this pull request Nov 23, 2026
#70776)

### What problem does this PR solve?

Issue Number: None

Related PR: #70705 (merged master implementation; manually adapted to
branch-4.2), #70366 (only its shared codepoint-aware SQL replacement
helper)

Background:

External catalog properties reach SHOW output, SQL audit rendering and
lineage metadata. Branch-4.2 uses a static `PrintableMap` registry
rather than master's connector provider registration. Its registry omits
several typed credential aliases and only examines property names,
allowing retained session tokens, JDBC connection strings and
credentials embedded in otherwise ordinary URLs to appear in output.

Problem Summary:

Bring the structured property masking behavior of #70705 to branch-4.2
while preserving the branch's Java 8 API compatibility and its existing
catalog implementations. For example, formatting
`mc.session_token=fixture-session-material` with masking enabled
previously printed the value; it now prints `mc.session_token = *XXX`.
Ordinary REST endpoints remain readable, while embedded userinfo and
secret parameters are removed or masked. Runtime connection values
remain intact.

Details:

- **Frequency:** Always for an affected retained property when a covered
output path renders it.
- **Root cause:** The legacy exact-name registry misses credential
aliases and has no value-aware address policy. ALTER CATALOG also lacks
both the audit-encryption interface and the property-range parser
visitor on this branch. Its shared SQL replacement helper additionally
treats parser codepoint positions as UTF-16 indices, which can truncate
a masked range when SQL contains supplementary characters.
- **Why existing tests missed it:** `PrintableMapTest` checks the older
exact-name list and basic formatting. The existing external-catalog
audit regression covers Iceberg OAuth fields but not MaxCompute/Ozone,
JDBC URLs, custom/Hadoop credentials or URL userinfo. Existing S3
streaming audit tests check the selected batch but lack
credential-bearing and literal-path boundary cases.
- **Fix:** Keep a permanent credential union, add the same supplemental
name and structured-value rules as master, and route the branch's
existing output paths through it. Add both missing ALTER CATALOG audit
hooks. Preserve selected S3 object identities while masking each
internal singleton before building its display glob.
- **Other paths and branches:** Master is fixed by #70705; this PR
targets branch-4.2 only. The previous branch comparison also identified
gaps on branch-4.1; it is not changed here. The omissions originate in
the legacy registry; a single introducing PR has not been established.

Change map:

| Part | Result |
|---|---|
| Shared property redactor and registry | Master-equivalent name, JDBC,
Hadoop and address rules; all sensitive aliases declared by branch-4.2
property holders are included |
| Metastore/storage annotations | Mark missing Glue/DLF/Iceberg/Paimon
access keys and S3/COS/OBS/OSS-HDFS session material sensitive without
changing binding |
| Catalog/audit/lineage hooks | Apply one policy to the supported
branch-4.2 output paths, including both ALTER CATALOG audit hooks |
| Streaming S3 audit | Snapshot selected files and properties, apply the
current policy at emission, preserve native filenames, release snapshots
after audit |
| SQL replacement prerequisite | Reuse master’s codepoint-aware shared
helper so supplementary characters cannot leave credential suffixes
outside the replaced range |
| Config validation and forwarding | Reject invalid regex values before
publication; preserve backslashes and quotes when forwarding
configuration SQL |
| Tests | Cover visible endpoints, secret values, disabled supplemental
rules, malformed/signed addresses, raw-value preservation and streaming
task lifecycle |

#### Masking rules

The display marker is `*XXX`. This is output redaction, not encryption
of stored metadata.

| Input | Output rule |
|---|---|
| Existing permanent secret names | Whole value masked,
case-insensitively; existing hidden properties remain omitted |
| MaxCompute | `mc.access_key`, `mc.secret_key`, `mc.session_token`
masked |
| Ozone | `ozone.access_key`, `ozone.secret_key`, `ozone.session_token`
masked |
| Metastore credentials | All sensitive aliases from Glue, DLF, Iceberg
REST/JDBC, Paimon REST/JDBC and Lance REST holders are included; this
covers `aws.glue.session-token`, `iceberg.jdbc.password`,
`paimon.jdbc.password`, Paimon DLF access-key fields, and Lance
bearer/API keys |
| Storage credentials | All existing sensitive
S3/GCS/Azure/OSS/OSS-HDFS/COS/OBS/MinIO/Ozone aliases remain protected;
session/security-token aliases are included. Retained
`AZURE_ACCOUNT_KEY`, `AZURE_CLIENT_SECRET`, `COS_ACCESS_KEY`,
`COS_SECRET_KEY`, `COS_SESSION_TOKEN`, `COS_TOKEN`, `OBS_ACCESS_KEY`,
`OBS_SECRET_KEY`, `OBS_SESSION_TOKEN`, `OBS_TOKEN`, `OSS_ACCESS_KEY`,
`OSS_SECRET_KEY`, `OSS_SESSION_TOKEN`, `OSS_TOKEN` and
`dlf.catalog.securityToken` remain protected even when this branch does
not bind them |
| Explicit JDBC/connection-string names | Names ending in a delimited
JDBC URL/URI component, or
`connectionString`/`connection_string`/`connection-string`/`connection.string`,
mask the entire value, including `jdbc_url`, `jdbc.jdbc_url`,
`iceberg.jdbc.uri`, `paimon.jdbc.uri` |
| JDBC value under another name | Any trimmed value beginning with
`jdbc:` (case-insensitively) is entirely masked, including opaque Oracle
syntax under the shared `uri` alias |
| Native SDK credentials | Bare or delimited final `token`,
`credential`, `credentials` components mask the entire value |
| Trino passthrough | After `trino.`, any occurrence of `key`, `secret`,
`password`, `token`, `credential` triggers whole-value masking. Matching
follows master's case-insensitive substring semantics, including unusual
property names |
| Custom names | The case-insensitive supplemental regex is searched
anywhere in the property name; its default masks names containing
`password`, `passwd`, `secret`, `token`, `credential`, and common
access/API-key spellings |
| Address names/values | Delimited final URI/URL/host/endpoint/address
names, including plurals, and recognized hierarchical URI-shaped values
use the address policy below |

Permanent Hadoop name families also mask whole values, with
case-insensitive matching and optional namespace prefixes before `fs.`:

| Family | Permanent credential names |
|---|---|
| `fs.s3.*`, `fs.s3a.*` | `access.key`, `secret.key`, `session.token`,
`encryption.key`, `server-side-encryption.key`, `proxy.password`;
optional `bucket.<bucket>.` scopes, including dotted bucket names |
| `fs.azure.*` | `account.key`, `sas`, `sas.fixed.token`,
`account.oauth2.client.secret`, `account.oauth2.refresh.token`,
`encryption.encoded.client-provided.key`, including account/container
suffixes |
| `fs.adl.oauth2.*` | `credential`, `refresh.token` |
| `fs.oss.*` | `accessKeyId`, `accessKeySecret`, `securityToken` |
| `fs.cosn.*` | `secretId`, `secretKey`, including `userInfo.` scopes |
| `fs.obs.*` | `access.key`, `secret.key`, `session.token`,
`security.token` |

Address behavior:

- Ordinary host/port values and comma-separated plain host lists remain
visible, including bracketed IPv6. Numeric ports must be in the range
0–65535. Long lists are checked iteratively.
- Supported schemes are `http`, `https`, `thrift`, `hdfs`, `viewfs`,
`file`, `s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`,
`abfss`, `wasb`, `wasbs`.
- Remove ordinary URL userinfo and fragments. Preserve safe
authority/path and non-secret query parameters. Decode parameter names
before classification; mask every occurrence of
password/token/credential and
access/API/account/private/auth/application-key parameters,
authorization, bare `auth` and bare `key`. Supplemental name rules apply
to query names too.
- A parameter containing `signature`, or a delimited `sig`/`sas`, masks
the entire URL. Unknown schemes, malformed
authorities/ports/escapes/query names, opaque formats, URL lists,
ambiguous matrix paths and nested/over-encoded connection strings also
mask the entire value. No parser-error fallback prints the raw input.
- Ordinary URL query separators are normalized to `&`. Repeated secret
parameters are all masked. Non-sensitive names containing nested
URL/JDBC values cause whole-address masking.
- Preserve ABFS/WASB container identity in `container@host`; it is
native storage syntax. Validate the container, rejecting encoded or
password-bearing forms. Preserve valid GCS bucket authorities with
underscores and valid HDFS/ViewFS default-authority locations and
logical mount names.
- Unambiguous absolute local `driver_url` paths and absolute
`file:/...`/`file:///...` locations remain visible. Ambiguous local path
syntax is masked. The name-based secret rule always takes precedence.
- Only internal, already selected S3 file statuses enable native-file
audit handling. Sanitize each selected singleton before assembling the
existing escaped glob. Preserve literal `#`, percent spellings, `+`,
spaces, separators and empty query-shaped components that identify
different objects; inspect bounded decoded views for nested credentials
without emitting those views. Generic SQL URI lists do not enable this
mode. Signed or unsafe selected locations mask the whole batch.

Configuration:

`datasource_sensitive_property_pattern` is FE-local and mutable, with
default:

```text
password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
```

Known secrets and this regex are combined by union. `(?!)` disables only
the supplemental rule; an empty regex matches every name. Invalid
patterns are rejected during startup, custom-config loading and runtime
updates before replacing the previous value. Configure every serving FE
consistently. Forwarded SQL preserves regex backslashes and quotes under
both ordinary SQL mode and `NO_BACKSLASH_ESCAPES`.

Output scope:

- SHOW CATALOG, SHOW CREATE CATALOG and `catalogs()` share the
value-aware policy.
- CREATE/ALTER CATALOG audit SQL uses the same property renderer. Shared
replacement ranges follow parser codepoint positions, preserving masking
boundaries after supplementary characters. Existing masking-enabled
property SQL paths, including resource/storage-vault and job audit
formatting, inherit the shared rules.
- Lineage omits name-sensitive properties and sanitizes remaining
values.
- The branch-specific Lance SHOW CREATE TABLE path uses the same value
policy. Authentication-integration and Kafka specialized name checks
retain their existing additional heuristics.
- Successful, failed, notification-based and cancelled S3 streaming task
paths preserve the audit/lifecycle contract. Snapshots are released on
the worker after synchronous audit, including early cancellation.

Scope is structured property output. Arbitrary catalog comments,
unrelated free text/logging, raw resource proc output and external SDK
containers without a recognized secret name or supported address
structure are not general-purpose secret-scanned. Branch-4.2 has no
master's provider plugin architecture or typed diagnostic formatter; the
port collects its existing sensitive annotations directly and keeps bare
`uri` value-aware rather than making every URI globally secret. Stored
properties, client inputs, replay, authentication choices and artifact
loading are unchanged.

### Testing

- Baseline RED: `PrintableMapTest#testMaxComputeSessionTokenIsMasked`
ran and failed with `expected mc.session_token = *XXX`, `actual
mc.session_token = fixture-session-material`.
- Unicode RED: the new supplementary-character audit test ran before the
shared-helper fix and failed; the malformed output retained the entire
`fixture-session-material` token. The final candidate includes this case
and a multi-range replacement case.
- Extended property/catalog/resource/offset verification: 742 tests
across 70 selected classes, zero failures/errors, 10 existing disabled
integration cases skipped.
- Final focused verification after the Unicode prerequisite: 191 tests
across 10 classes, zero failures/errors/skips, including 24
property-policy tests, catalog and streaming audit, config forwarding,
parser, CREATE/ALTER VIEW and async-MV dependencies. The corrected
multi-range fixture was rerun in its complete 24-test class; other
focused cases use the identical production code.
- FE Checkstyle: passed with the repository Maven validation.
- Local review: completed before the first commit. Fixed Trino
name-matching parity, the Unicode replacement prerequisite and test
setup/API issues, then repeated review until no new concrete findings
remained. The full staged diff, caller/range producers, lifecycle,
raw-value preservation and submitted metadata were reviewed.
- Extended `test_external_catalog_credential_masking`
(`p0,nonConcurrent`) covers SHOW/TVF output and persisted CREATE/ALTER
audit SQL. Cluster regression and real multi-FE RPC are not run locally.

Pre-submission status: Partially verified: cluster regression and real
multi-FE RPC are not run locally. Targeted FE verification, Checkstyle,
staged secret scanning and pre-commit review are complete with no open
findings.

### Release note

External catalog display, audit property SQL and lineage metadata on
branch-4.2 now mask additional credentials and embedded connection
secrets consistently with master. Safe endpoints and supported native
filesystem identities remain readable. Runtime connection settings are
unchanged.

### Check List (For Author)

- Test
    - [x] Regression test
    - [x] Unit Test
    - [ ] Manual test

- Behavior changed:
    - [ ] No.
- [x] Yes. Additional structured credential values are hidden from
output.

- Does this need documentation?
    - [ ] No.
- [x] Yes. Document the FE-local regex, fixed-rule union and structured
URL behavior in external catalog/security documentation.

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
Gabriel39 added a commit to apache/doris-website that referenced this pull request Nov 23, 2026
## What changes

Catalog documentation shows a password mask without explaining the
coverage of other credentials or URI handling. Document the shared
masking policy planned for **Doris 4.2.0 and for 5.0 and later
releases**, based on apache/doris#70705 and the 4.2.0 backport
apache/doris#70776.

Add complete English and Chinese references in both dev and 4.x, with
sidebar entries and links from the Catalog overview, SHOW references and
FE configuration. The reference explains:

- Supported SHOW, audit, lineage and typed-diagnostic output paths;
markers, omitted properties and the distinction from metadata
encryption.
- The union of permanent/built-in credential names, connector rules,
SDK/Hadoop/JDBC name rules and the supplemental regex.
- Representative Catalog/metastore and storage credential families,
including MaxCompute session tokens and Ozone access keys.
- Whole-value JDBC masking; visible plain hosts; URL userinfo/fragment
removal and sensitive query-value masking; whole-value masking of
signatures and unreliable formats.
- Native storage/path exceptions and internal streaming-S3 audit
behavior.
- `datasource_sensitive_property_pattern`: default, replacement/disable
semantics, empty/invalid expressions, FE-local consistency and
persistence.
- Limits for URL paths, unknown query parameters, SDK containers,
comments and free text, with synthetic examples and operational
guidance.

Update dev and 4.x SHOW examples to hide `jdbc_url`, mark terminal
output as text and distinguish masking markers from placeholders.

## Version and language scope

| Version | Documentation scope |
|---|---|
| 4.2.0 | Planned shared masking behavior, documented in 4.x with an
explicit 4.2.0 starting version; full reference, FE parameter, sidebar
and updated SHOW examples. |
| 5.0 and later | Planned shared policy documented in dev; provider
registration, typed diagnostics and Fluss/ADBC-specific rules are
identified separately. |
| 4.0 / 4.1 / 3.x | Outside the new complete policy. Existing
field-specific masking must not be mistaken for complete credential
coverage. No 3.x documentation is changed. |

The 4.2.0 implementation uses a built-in registry and sensitive field
declarations; it does not have the 5.0 typed-diagnostic formatter or
Fluss/ADBC-specific registration. Its reference therefore omits those
rows and retains the permanent Trino namespace rule. This documents the
behavior of each implementation without implying that masking adds
connector support.

Changes are limited to the dev and 4.x documentation, with paired
English/Chinese updates. All 3.x documents remain identical to the
original PR baseline; no new 3.x reference, scope notice, example
formatting or unrelated link repair is included. The website currently
has dev, 4.x and 3.x navigation; this change does not add a 5.x
documentation version or claim a release date.

## Validation

- Complete local self-review against the merged master implementation
and the 4.2.0 backport, including all seven website review checkpoints;
findings corrected before committing.
- Native Docusaurus EN/zh-CN sample build including all changed dev/4.x
documents, plus static verification.
- All 20 changed Markdown pages: internal links/anchors, localized
rendered content, version scope, JDBC masking examples and configuration
anchors. Browser hydration, overview-to-reference navigation and sidebar
entries checked in both languages for dev and 4.x.
- Identical fenced examples and inline property names between each new
English/Chinese reference pair.
- Changed-file governance has zero errors. The paired versioned
references retain the same user-facing title, producing advisory
duplicate-title warnings; other warnings are existing conventions in the
touched pages. Staged Gitleaks, submitted-content privacy/scope and
whitespace checks pass.

Validation is a bounded bilingual sample, not a full five-locale
publication build. Browser checks serve the sample's own CDN assets
locally. No runtime code or new product test cases are included; no live
external Catalog credentials are required or used.

## Versions

- [x] dev
- [x] 4.x
- [ ] 3.x
- [ ] 2.1 or older (not covered by version/language sync gate)

## Languages

- [x] Chinese
- [x] English

## Docs Checklist

- [x] Checked by AI
- [ ] Test Cases Built (documentation-only; existing native
build/link/browser checks are used)
- [x] Updated required version and language counterparts, or explained
why not
- [x] If only one language changed, confirmed whether source/translation
counterparts need sync (both updated)
wyxxxcat pushed a commit to wyxxxcat/doris that referenced this pull request Nov 24, 2026
…pache#70705)

External catalogs retain connector properties. Provider declarations
feed the masking registry used by display, metadata and audit SQL.

Issue Number: None
Related PR: apache#70338 (provider-owned masking and ALTER CATALOG audit
coverage), apache#70696 (overlapping metastore URI annotation fix), apache#55016
(all-FE configuration forwarding), apache#67489 (resolved streaming audit
inputs)
PR Type: Bugfix

Problem Summary:

Name-only matching exposes JDBC/URL and SDK/Hadoop credentials. Apply
shared value-aware masking and a supplementary FE-local name regex,
completing diagnostic annotations.

An exercised `uri` value:

| Before | After |
|---|---|
|
`https://fixture:fixture-password@api.example.com/v1?region=east&token=fixture-token`
| `https://api.example.com/v1?region=east&token=*XXX` |

- **Change map:** Production: +514/-44 across 28 files; tests: +1237/-76
across 30; CI: +9/-0 in one. No generated/docs/submodule changes.
Production covers shared masking, provider annotations, configuration
forwarding and structured streaming audit rendering.
- **Frequency:** Always when a retained credential uses one of the
uncovered names or connection formats; reproduced in property display
and CREATE/ALTER audit rewriting.
- **Root cause:** `DatasourcePrintableMap` checked names without
inspecting values; credential declarations were incomplete. Generic URI
parsing also hid local files, ViewFS and resolved streaming batches;
configuration forwarding lost SQL escapes.
- **Why existing tests missed it:** Property tests missed
format-specific locations; streaming assertions had accepted hidden
final URIs. SQL audit tests missed these formats; existing ADBC metadata
tests already require visible local paths. Admin tests missed string
escaping.
- **Fix:** Share catalog/audit/lineage masking, complete credential
annotations and distinguish diagnostic URIs; preserve supported
locations and independently sanitize selected streaming files at final
audit emission; quote forwarded configuration strings correctly.
- **Other paths and branches:** Shared output callers inherit the rules.
Cached branch-3.1/4.0/4.1/4.2 retain the parsing gap; only master
changes. No single introducing PR was identified.
- **Configs and defaults:** `datasource_sensitive_property_pattern` is
FE-local, mutable and case-insensitive, defaulting to
`password|passwd|secret|token|credential|access[._-]?key|api[._-]?key`.
Startup/custom-file/runtime validation rejects invalid stored
expressions without replacing the previous value. `(?!)` disables only
the supplement; empty matches every name. Configure all serving FEs
consistently.
- **Behavior change:** Stored properties and connections are unchanged.
Display is more conservative: keyword matches can hide metadata, and
URLs can lose userinfo/fragments or normalize query separators.

The complete masking rules are:

| Input | Output rule |
|---|---|
| Existing exact sensitive keys and provider prefixes | Remain masked,
independently of the configurable pattern. Existing hidden-property
rules still omit their entries. |
| Recognizable JDBC property names | Names ending in a JDBC `url`/`uri`
component, including `jdbc_url`, `jdbc.jdbc_url`, `iceberg.jdbc.uri`,
and `paimon.jdbc.uri`, mask completely. `connectionString`,
`connection_string`, `connection-string`, and `connection.string`
suffixes also mask completely. |
| JDBC values under any name | Any trimmed value beginning with `jdbc:`,
case-insensitively, masks completely, including a bare `uri` alias and
opaque/driver-specific JDBC syntax. |
| Native SDK credentials | Bare or dot/underscore/hyphen-delimited final
components `token`, `credential`, or `credentials` mask completely.
Registered aliases and the configurable pattern add coverage. |
| Hadoop credentials | The built-in families below mask completely,
including dynamic bucket/account names and names prefixed before `fs.`;
they do not depend on the configurable pattern. Other credential-like
names receive the default pattern's protection. |
| Custom names | A match against the configured regex masks the entire
value. Matching is a search, so the default protects `custom.password`,
`clientSecret`, and `custom.accessKey`. It is unioned with every
permanent rule. |
| Ordinary addresses | Hostnames, IPv4, bracketed IPv6, optional numeric
ports in 0–65535, and comma-separated host lists remain visible. Empty
address values stay empty. |
| URL selection | Sanitize properties ending in a delimited
`uri/url/host/endpoint/address` component, including plural forms, and
hierarchical `scheme://` or `file:/`, `hdfs:/`, `viewfs:/` values under
other names. A name already classified sensitive takes precedence and
masks completely. |
| Supported URL schemes | `http`, `https`, `thrift`, `hdfs`, `viewfs`,
`file`, `s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`,
`abfss`, `wasb`, `wasbs`. Preserve the host, port, ordinary path, and
non-sensitive query parameters; remove authentication userinfo (Azure
exception below) and the entire fragment. |
| Local driver paths and file URIs | Recognized `driver_url` suffixes
retain absolute POSIX paths, including spaces/Unicode;
protocol-relative, control, query, fragment, userinfo, matrix or
nested-URL syntax masks completely. Hierarchical `file:/absolute/path`
and `file:///absolute/path` retain their spelling, require no authority,
and use the common query/signature/fragment rules. Name/JDBC masking
takes precedence. |
| Native filesystem locations | `viewfs://mount-name/path` accepts
validated ordinary-address authority syntax, including ASCII underscore
mount names, with numeric-port checks; it names a logical mount table
rather than requiring a DNS host. Hierarchical absolute `hdfs:/path`,
`hdfs:///path` and `viewfs:///path` can omit authority and retain their
slash form, using configured nameservice/default-mount semantics. GCS
`gs://` authorities require 3–222 lowercase ASCII
letters/digits/dots/underscores/hyphens, start/end with a letter/digit,
and dot-separated components at most 63 characters; ports, escaping and
other syntax mask completely. This accepts underscores rather than
imposing DNS-host syntax; remove authentication userinfo and retain
common query/path/signature checks. This is display-safety validation,
not bucket-creation policy. HTTP/S3 host validation remains strict. [GCS
naming rules](https://docs.cloud.google.com/storage/docs/buckets). |
| Resolved S3 streaming audit inputs | Snapshot task-selected files;
sanitize each singleton location independently, then assemble the
existing escaped batch syntax. Preserve selected filenames in final
success/failure/notification audit events, including tested literal
commas, braces, brackets, backslashes, spaces, hashes, percent text and
plus signs. Already-decoded selected keys treat `#` literally, including
in query-shaped suffixes; temporary URI encoding is only for validation.
Native path text is already decoded, so literal `%`, `%HH` and `+` are
preserved without another decoding or URI-encoding-layer check. Native
query-shaped suffixes preserve non-secret separator spelling, empty
components and raw values. Whole-suffix temporary encoding is only for
URI validation; names/signatures retain shared rules, while value
inspection checks raw and at most three percent-decoded views (including
form spaces) and masks residual encoding. Matrix/nested/list-shape path
guards and unknown-name masking remain. Ordinary URL fragments still
disappear. Query credentials/signatures retain their common policy. Any
signed/unreliable location masks the entire batch. Apply current name
rules and sanitize all other TVF properties at emission; execution
inputs remain unchanged. Release temporary map/list snapshots on the
worker after synchronous emission, including failure and early
cancellation. This exception is internal and does not admit untrusted
catalog/SQL URI-list strings. |
| Azure storage locations | For `abfs`, `abfss`, `wasb`, and `wasbs`
(case-insensitive), retain `container@host` after validating the raw
container with the existing `AzureUri` grammar: one character for
compatibility, or 3–63 lowercase ASCII letters/digits/hyphens, beginning
and ending with a letter/digit. Missing, encoded, malformed or
password-bearing containers mask the whole URI. Path/query checks and
signed-URL masking still apply. |
| URL query credentials | Decode parameter names, process duplicates and
both `&`/`;` separators, and mask values whose names match
permanent/configured rules or contain
`password/passwd/pwd/secret/token/credential`,
access/API/account/private/auth/app/application key variants, or
`authorization`; exact `auth` and `key` are also protected. Ordinary URL
query separators render as `&`; native selected-key suffixes retain
their separators and empty components; decoded names must use ASCII
letters/digits, dot, underscore, tilde, or hyphen. |
| Signed URLs | A decoded query name containing `signature`, or a
delimited `sig`/`sas` component, masks the entire URL, including
AWS/GCS/OSS/CloudFront signatures and Azure SAS. |
| Unreliable address parsing | For ordinary URL/address inputs, unknown
schemes, opaque/invalid URLs, invalid host/port or escaping,
unrecognized query names, matrix path parameters, repeated encoding, and
nested connection strings in otherwise unclassified query values,
including whitespace/form-space-prefixed JDBC, mask completely. Outside
the structured streaming path above, any comma-containing URL masks
completely, including ordinary query commas; decoded paths containing
commas or nested `://` also mask completely. Valid plain host:port lists
remain visible. No raw-value or parser-exception fallback is logged. |
| All-FE configuration SQL | `ADMIN SET ALL FRONTENDS CONFIG` quotes
decoded names and values according to the forwarded `sql_mode`; regex
backslashes and quotes survive peer reparsing in default and
`NO_BACKSLASH_ESCAPES` modes. |
| Typed URI diagnostics | Iceberg/Paimon JDBC and REST URI fields,
including the shared `uri` alias, use `sensitive=true,
sensitiveInDiagnosticsOnly=true`: non-empty diagnostic values render as
`***`, empty values as `<empty>`. They do not export URI aliases into
the global secret-name registry; catalog output follows the value-aware
rules above. |
| Credential annotations | Access keys and every declared alias in S3,
MinIO, GCS, OSS, COS, OBS, Iceberg Glue and Iceberg REST now join
existing secret/token annotations; Ozone access keys and JDBC catalog
URLs remain protected. These declarations mask typed diagnostics and
contribute unconditional provider-sensitive names. These annotation
additions do not reclassify account names, OAuth modes/scopes or
credential-file paths; generic name rules can independently mask such
names. |

Permanent Hadoop families, matched case-insensitively:

| Namespace | Credential fields |
|---|---|
| `fs.s3.` / `fs.s3a.` and optional `bucket.<bucket>.` | `access.key`,
`secret.key`, `session.token`, `encryption.key`,
`server-side-encryption.key`, `proxy.password`; dotted bucket names are
supported. |
| `fs.azure.` | `account.key`, `sas`, `sas.fixed.token`,
`account.oauth2.client.secret`, `account.oauth2.refresh.token`,
`encryption.encoded.client-provided.key`, including account/container
suffixes. |
| `fs.adl.oauth2.` | `credential`, `refresh.token`. |
| `fs.oss.` | `accessKeyId`, `accessKeySecret`, `securityToken`. |
| `fs.cosn.` with optional `userInfo.` | `secretId`, `secretKey`. |
| `fs.obs.` | `access.key`, `secret.key`, `session.token`,
`security.token`. |

Masking uses `*XXX` in property output. Lineage continues omitting
name-classified secrets and sanitizes other values. Non-empty annotated
credentials render as `***` in typed diagnostics. The retained
`mc.session_token` declaration does not add token authentication to the
current binder.

- `run-fe-ut.sh` passes all 565 tests in 47 selected classes locally:
masking/audit/lineage, configuration, metastore/filesystem holders,
actual provider registration, security/metadata/plugin surfaces,
dispatch, S3 offsets, ADBC paths, audit publication and config SQL
roundtrips. Coverage includes URL lists, encoded/duplicate/signed URLs,
5,001-host lists, dynamic rules and unchanged connection values. FE
Checkstyle passes.
- Extended the P0/nonConcurrent SQL audit suite with SHOW, `catalogs()`,
and persisted CREATE/ALTER assertions. It was not executed locally; the
regular P0 configuration includes it, while cloud P0 skips nonConcurrent
suites.

| CI check | Evidence |
|---|---|
| Initial policy/annotation baselines | Before the policy change, 8 of 9
new tests expose credentials; the safe-endpoint control passes. Before
the JDBC annotation, 2 of 18 tests fail. S3/Iceberg annotation tests
reproduce 5 failures; Paimon separately reproduces 2. The multi-URL
baseline exposes its later password. |
| Configuration trimming | A targeted test reproduces a regex accepted
before trimming that becomes invalid when stored. |
| Azure container regression | Before the fix, 18 tests/2 classes
reproduce 5 assertion failures: container loss in property display,
token-query URLs, CREATE/ALTER audit and lineage, plus malformed
authority passing through. New cases cover all four schemes, uppercase
scheme, container length/character boundaries, encoded/password-bearing
authority, query credentials and SAS signatures. The final expanded FE
run passes all 565 tests/47 classes; the existing AzureUri parser suite
is included. |
| Existing FE integration tests | The previous head reproduces all 7 CI
failures in 39 tests/4 classes. Provider fixtures use opaque names to
prove admission independently of the generic regex. Final streaming
audit assertions now require resolved batches, replacing the incomplete
expectation that their URIs should be hidden. Malformed hosts and
CREATE/ALTER JOB JDBC URLs remain masked. |
| Location compatibility | Before this follow-up, 37 tests/3 classes
reproduce 9 failures across final streaming events, local paths and
lineage. A separate renderer probe reproduces literal-filename loss
before its fix and passes afterward. Final tests cover one/multiple
files, failed tasks, notifications, signed/embedded credentials, literal
filenames, runtime rule changes, local/file URI rejection boundaries and
ViewFS. |
| Native locations and snapshot lifetime | Actual formatter probe
reproduces three valid native locations masking; five focused methods
reproduce five assertion failures in property/lineage and successful,
failed and canceled task snapshot ownership. Added positive native
audit/lineage cases, credential/signature/opaque/invalid-S3 controls and
post-run release assertions. Final repository FE run passes 565 tests/47
classes; the same five focused methods and the actual native/literal
renderer probes pass; Checkstyle passes. |
| Literal hash identities | Before the fix, the actual final renderer
collapses two selected hash keys to identical names. Before the fix, six
focused methods execute: four expected
hash/notification/credential/signature assertion failures and two
existing controls pass. Tests require distinct hashes for one/multiple
selected files on success/failure, notifications and query-shaped
suffixes; ordinary URI fragment removal remains covered. Final FE run
passes 565 tests/47 classes; Checkstyle and all original probes pass.
Before its fix, a self-review probe initializes the pinned Hadoop
ViewFileSystem with mount_table but observes MASK in display;
named-ViewFS property/audit/lineage and malformed/encoded/port/signature
controls now cover the repaired authority branch. |
| Decoded native percent paths | Before the fix, the actual final
renderer masks a batch containing100%.csv; four focused methods
reproduce two percent failures with two existing controls passing. Tests
add native percent/nonhex/%HH/repeated-looking/plus identities for
one/multiple files, success/failure and notifications, with generic URI
negative controls. Final repository FE run passes 565 tests/47 classes;
the same percent renderer probe and four focused methods pass.
Checkstyle passes. |
| Independent local review | Qualified gpt-6-astra/xhigh lead and
coverage reviewers approve exact
head5a39cd98f66872ce9502f636d617bdae565ca5c5:59 changed files,17
checkpoints,0 findings/regressions,one-round convergence. [Commit-bound
PASS
receipt](apache#70705 (comment)).
Static review is separate from the author-run tests above; cluster
SQL/multi-FE RPC remain unverified. |
| Native suffix spelling and inspection | Before repair, six focused
methods produce four identity/credential/opaque-JDBC failures and two
passing controls. Cases cover separator/empty-component identity,
percent/space/plus/encoded-looking values, final
success/failure/notification events, masked values with preserved
non-secret syntax, and encoded/double/deep nested URLs beside malformed
native percent text. A separate form-space JDBC guard fails before its
repair. Final repository FE run passes 565 tests/47 classes; all seven
focused identity/security/control methods and independent Checkstyle
pass. |
| GCP metadata | Identity roundtrips run with the supplementary pattern
disabled using `(?!)`; permanent HMAC keys remain masked. A separate
credential-keyword test checks that `gs.credential_provider_type` is
masked, matching the default heuristic's conservative treatment of
metadata names. The original pattern is restored after each test. |
| Gitleaks 8.30.0 | The Gitleaks job scans the full PR commit range and
misclassifies two adjacent Hadoop property-name literals as API-key
values. The same scan reproduces 2 findings before the config fix and 0
after it. A generic-api-key exception requires both the exact test path
and one of two exact synthetic property names. |
| All-FE regex forwarding | Before the serializer fix, 2 of 9
admin-config tests fail: the peer exposes `custom.pin1`, and the regex
loses its backslash. After the fix, all 9 pass; actual
parser/serializer/Env application plus masking and a literal matrix
cover both SQL modes and command scopes. Peer application is simulated
in-process, without multi-FE RPC. |
| Exception boundaries | Two fixture-name occurrences in another file
and an unrelated synthetic API-key value in the allowed file remain
detected; only the two intended occurrences are ignored. |

The new defaulted `ConnectorProperty.sensitiveInDiagnosticsOnly`
metadata prevents shared URI aliases from hiding every REST endpoint.
Connector/metastore SPI signatures and baselines are unchanged.
Free-text secrets, SDK containers and unrelated logging remain outside
scope.

External data source displays and audit property output now mask JDBC
connection strings, native SDK/Hadoop credentials, credential-like
custom properties, and URL authentication components. The new FE
configuration `datasource_sensitive_property_pattern` adjusts extra name
matching without disabling permanent credential rules.

- Behavior changed: Yes (see Details).
- Does this need documentation: Yes (document the FE config and
catalog-output rules in apache/doris-website; detailed rules are
included above).
- Pre-submission status: Partially verified: SQL regression and multi-FE
RPC not executed locally.

- Tool: Codex (GPT-6).
- Generated: Production changes, tests, and this description.
- Human review: not stated.
- Prompts: Mask MaxCompute/Ozone credentials, extend shared
JDBC/URL/SDK/Hadoop/custom-name rules, then complete sensitive
annotations and address review findings.
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.

4 participants