Repository navigation
[fix](catalog) Backport comprehensive credential masking to branch-4.2 - #70776
Conversation
### What problem does this PR solve? Issue Number: None Related PR: apache#70705 (merged master implementation; manually adapted to branch-4.2), apache#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 apache#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 apache#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
|
run buildall |
|
/review |
There was a problem hiding this comment.
No new actionable defects found at commit 1595f01. Reviewed all 33 changed files and their upstream/downstream paths. The review converged in 1 round: both complete-scope reviewers and the separate risk reviewer returned NO_NEW_VALUABLE_FINDINGS; every candidate and initial risk was independently checked and dismissed with evidence. There are no existing inline findings to retain as blockers.
Critical checkpoint conclusions:
- Goal and evidence: the shared policy consistently covers structured catalog display, CREATE/ALTER audit and lineage. Added unit/regression assertions cover permanent aliases, URLs, config changes, Unicode and S3 audit behavior; these were inspected, not executed.
- Scope: the shared redactor, output hooks, config forwarding, Unicode replacement prerequisite and focused tests form a cohesive change.
- Concurrency and locks: the compiled regex is published as an immutable volatile snapshot; S3 audit snapshots stay on the worker through synchronous rendering. No new lock ordering or heavy work under added locks.
- Lifecycle and static initialization: reflection collects sensitive aliases without initializing connector instances. Worker finally releases the new snapshots after audit, including early cancellation; no new ownership cycle identified.
- Configuration: the FE-local mutable regex is validated before startup/custom/runtime publication and observed dynamically. Invalid updates preserve the previous value; known-secret rules remain permanent. Serving FEs require consistent configuration.
- Compatibility: no wire/storage format or function registration changes. Existing sql_mode forwarding preserves quoted config values; older FEs retain their prior masking behavior until upgraded.
- Thrift/protobuf: no changed definitions, so cross-branch field/enum comparison is inapplicable.
- Parallel paths: inspected SHOW CATALOG, SHOW CREATE, catalogs(), CREATE/ALTER audit, lineage, Lance output, Kafka/auth name checks, and both listing and notification S3 paths.
- Special conditions: URI scheme/authority exceptions and native filename handling have explicit boundaries; malformed, signed, ambiguous and nested connections fail closed. Display sanitization does not mutate runtime properties or selected paths.
- Test coverage: positive/negative address policy, disabled/invalid/dynamic rules, SQL modes, Unicode ranges, lineage, S3 success/failure/cancel/notification and persisted audit paths are represented. Cluster behavior and real multi-FE RPC remain unverified by execution.
- Expected results: changed expectations agree with whole-JDBC masking and valid S3 bucket syntax; no .out files changed.
- Observability: new SQL-rendering errors suppress raw parser text/causes; existing audit failure logging remains. No new distributed operation requires metrics.
- Transactions and persistence: no EditLog, replay, failover or persisted metadata behavior changes.
- Data writes and correctness: rendering uses display copies; connection settings, selected files, visibility and transaction atomicity are unaffected by the reviewed changes.
- FE/BE variables: none added; the new setting is FE-local. Existing FE-to-FE SQL-mode propagation was traced through sender and receiver.
- Performance: fixed patterns and the dynamic cache are reused, host lists are checked iteratively, and native decoding is bounded. No obvious new performance defect found by inspection.
- Other checks and user focus: no additional user focus was supplied. The expression legality rule is inapplicable to the S3 accessor addition; no optimizer rewrite, delete-bitmap or visible-version changes were introduced.
Validation limits: static review only. No builds, tests, benchmarks, fuzzing, concurrent execution or cluster/RPC validation were run; no repository source was modified and submodules were left uninitialized. No unresolved static coverage gaps remain.
Review converged after 1 round(s).
## 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)
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
PrintableMapregistry 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-materialwith masking enabled previously printed the value; it now printsmc.session_token = *XXX. Ordinary REST endpoints remain readable, while embedded userinfo and secret parameters are removed or masked. Runtime connection values remain intact.Details:
PrintableMapTestchecks 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.Change map:
Masking rules
The display marker is
*XXX. This is output redaction, not encryption of stored metadata.mc.access_key,mc.secret_key,mc.session_tokenmaskedozone.access_key,ozone.secret_key,ozone.session_tokenmaskedaws.glue.session-token,iceberg.jdbc.password,paimon.jdbc.password, Paimon DLF access-key fields, and Lance bearer/API keysAZURE_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_TOKENanddlf.catalog.securityTokenremain protected even when this branch does not bind themconnectionString/connection_string/connection-string/connection.string, mask the entire value, includingjdbc_url,jdbc.jdbc_url,iceberg.jdbc.uri,paimon.jdbc.urijdbc:(case-insensitively) is entirely masked, including opaque Oracle syntax under the sharedurialiastoken,credential,credentialscomponents mask the entire valuetrino., any occurrence ofkey,secret,password,token,credentialtriggers whole-value masking. Matching follows master's case-insensitive substring semantics, including unusual property namespassword,passwd,secret,token,credential, and common access/API-key spellingsPermanent Hadoop name families also mask whole values, with case-insensitive matching and optional namespace prefixes before
fs.:fs.s3.*,fs.s3a.*access.key,secret.key,session.token,encryption.key,server-side-encryption.key,proxy.password; optionalbucket.<bucket>.scopes, including dotted bucket namesfs.azure.*account.key,sas,sas.fixed.token,account.oauth2.client.secret,account.oauth2.refresh.token,encryption.encoded.client-provided.key, including account/container suffixesfs.adl.oauth2.*credential,refresh.tokenfs.oss.*accessKeyId,accessKeySecret,securityTokenfs.cosn.*secretId,secretKey, includinguserInfo.scopesfs.obs.*access.key,secret.key,session.token,security.tokenAddress behavior:
http,https,thrift,hdfs,viewfs,file,s3,s3a,s3n,oss,cos,cosn,obs,gs,abfs,abfss,wasb,wasbs.authand barekey. Supplemental name rules apply to query names too.signature, or a delimitedsig/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.&. Repeated secret parameters are all masked. Non-sensitive names containing nested URL/JDBC values cause whole-address masking.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.driver_urlpaths and absolutefile:/.../file:///...locations remain visible. Ambiguous local path syntax is masked. The name-based secret rule always takes precedence.#, 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_patternis FE-local and mutable, with default: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 andNO_BACKSLASH_ESCAPES.Output scope:
catalogs()share the value-aware policy.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
urivalue-aware rather than making every URI globally secret. Stored properties, client inputs, replay, authentication choices and artifact loading are unchanged.Testing
PrintableMapTest#testMaxComputeSessionTokenIsMaskedran and failed withexpected mc.session_token = *XXX,actual mc.session_token = fixture-session-material.fixture-session-materialtoken. The final candidate includes this case and a multi-range replacement case.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
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)