This is an automated email from the ASF dual-hosted git repository.

Gabriel39 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e3308dcaf8a [doc](lakehouse) Document catalog credential masking rules 
(#4675)
e3308dcaf8a is described below

commit e3308dcaf8a63cccb98bd71edd1edb12eb046c94
Author: Gabriel <[email protected]>
AuthorDate: Mon Nov 23 13:29:08 2026 +0800

    [doc](lakehouse) Document catalog credential masking rules (#4675)
    
    ## 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)
---
 docs/admin-manual/config/fe-config.md              |  17 ++
 docs/lakehouse/catalog-overview.md                 |   4 +
 docs/lakehouse/catalog-property-masking.md         | 197 +++++++++++++++++++++
 .../sql-statements/catalog/SHOW-CATALOG.md         |   8 +-
 .../sql-statements/catalog/SHOW-CREATE-CATALOG.md  |   8 +-
 .../current/admin-manual/config/fe-config.md       |  17 ++
 .../current/lakehouse/catalog-overview.md          |   4 +
 .../current/lakehouse/catalog-property-masking.md  | 197 +++++++++++++++++++++
 .../sql-statements/catalog/SHOW-CATALOG.md         |   8 +-
 .../sql-statements/catalog/SHOW-CREATE-CATALOG.md  |   8 +-
 .../version-4.x/admin-manual/config/fe-config.md   |  17 ++
 .../version-4.x/lakehouse/catalog-overview.md      |   4 +
 .../lakehouse/catalog-property-masking.md          | 194 ++++++++++++++++++++
 .../sql-statements/catalog/SHOW-CATALOG.md         |   8 +-
 .../sql-statements/catalog/SHOW-CREATE-CATALOG.md  |   8 +-
 sidebars.ts                                        |   1 +
 .../version-4.x/admin-manual/config/fe-config.md   |  17 ++
 .../version-4.x/lakehouse/catalog-overview.md      |   4 +
 .../lakehouse/catalog-property-masking.md          | 194 ++++++++++++++++++++
 .../sql-statements/catalog/SHOW-CATALOG.md         |   8 +-
 .../sql-statements/catalog/SHOW-CREATE-CATALOG.md  |   8 +-
 versioned_sidebars/version-4.x-sidebars.json       |   1 +
 22 files changed, 916 insertions(+), 16 deletions(-)

diff --git a/docs/admin-manual/config/fe-config.md 
b/docs/admin-manual/config/fe-config.md
index 645cf08fff7..237a132244d 100644
--- a/docs/admin-manual/config/fe-config.md
+++ b/docs/admin-manual/config/fe-config.md
@@ -126,6 +126,23 @@ IsMutable:true
 
 The tryLock timeout configuration of catalog lock.  Normally it does not need 
to change, unless you need to test something.
 
+#### `datasource_sensitive_property_pattern`
+
+Planned for Doris 4.2.0 and for 5.0 and later releases. Not supported in 4.0, 
4.1 or 3.x.
+
+- Type: string
+- IsMutable: true
+- MasterOnly: false (FE-local)
+- Default:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+A case-insensitive regex searched in data-source property names and URL query 
names when masking supported output. Its matches are combined with built-in and 
registered secret rules. `(?!)` disables only this supplemental expression; an 
empty expression matches every name. Invalid expressions are rejected during 
startup, custom configuration loading and runtime updates.
+
+Apply the same setting to every serving FE. Runtime SQL changes are not 
persistent; use `fe.conf` or a documented persistent configuration mechanism 
for restarts and new FEs. See [Catalog Property 
Masking](../../lakehouse/catalog-property-masking.md#configure-additional-names)
 for examples, scope and URI rules.
+
 #### `enable_bdbje_debug_mode`
 
 Default:false
diff --git a/docs/lakehouse/catalog-overview.md 
b/docs/lakehouse/catalog-overview.md
index 088f81ab17d..0eda7c86302 100644
--- a/docs/lakehouse/catalog-overview.md
+++ b/docs/lakehouse/catalog-overview.md
@@ -27,6 +27,10 @@ Data catalogs are primarily applicable to the following 
three types of scenarios
 
 This article uses [Iceberg Catalog](./catalogs/iceberg-catalog) as an example 
to introduce the basic operations of data catalogs. For detailed introductions 
to different data catalogs, please refer to the corresponding data catalog 
documentation.
 
+## Sensitive Property Masking
+
+The shared Catalog property masking policy is planned for Doris 4.2.0 and for 
5.0 and later releases. Passwords, access keys, tokens, JDBC strings and URL 
credentials are masked in supported display, audit and lineage paths; runtime 
connection values are unchanged. See [Catalog Property 
Masking](./catalog-property-masking.md) for the rules, version differences, 
configuration and limitations.
+
 ## Creating a Data Catalog
 
 Create an Iceberg Catalog using the `CREATE CATALOG` statement.
diff --git a/docs/lakehouse/catalog-property-masking.md 
b/docs/lakehouse/catalog-property-masking.md
new file mode 100644
index 00000000000..eb6ba8b787e
--- /dev/null
+++ b/docs/lakehouse/catalog-property-masking.md
@@ -0,0 +1,197 @@
+---
+{
+    "title": "Catalog Property Masking",
+    "language": "en",
+    "description": "Understand how Doris masks Catalog credentials, JDBC 
strings, URLs, SDK and Hadoop properties in SHOW output, audit SQL and 
lineage.",
+    "keywords": ["catalog property masking", "catalog credentials", "SHOW 
CATALOG", "JDBC URL", "datasource_sensitive_property_pattern"],
+    "doc_type": "reference"
+}
+---
+
+Doris masks sensitive external Catalog properties in supported display and 
audit paths. Masking replaces a whole value or a sensitive URL parameter with 
`*XXX`; some internal properties are omitted entirely. Connectors continue 
using the original values.
+
+:::info Version scope
+This policy and `datasource_sensitive_property_pattern` are planned for Doris 
4.2.0 and for 5.0 and later releases. In the 4.x documentation, this feature 
applies starting with 4.2.0. Do not assume the complete policy is available in 
4.0, 4.1 or 3.x; older releases may mask individual fields without implementing 
all of these rules.
+:::
+
+## Quick Start
+
+For an existing Catalog that you have permission to view:
+
+```sql
+SHOW CATALOG example_catalog;
+SHOW CREATE CATALOG example_catalog;
+SELECT `Property`, `Value`
+FROM catalogs()
+WHERE CatalogName = 'example_catalog'
+ORDER BY `Property`;
+```
+
+The following mappings illustrate the output policy; they do not require a 
connection to the example endpoints:
+
+| Property | Original value | Displayed value |
+|---|---|---|
+| `mc.session_token` | `example-token` | `*XXX` |
+| `ozone.access_key` | `example-key` | `*XXX` |
+| `jdbc_url` | `jdbc:mysql://db.example.com:3306/example` | `*XXX` |
+| `uri` | `https://api.example.com/catalog` | 
`https://api.example.com/catalog` |
+| `iceberg.rest.uri` | 
`https://user:[email protected]/catalog?token=example&region=east` | 
`https://api.example.com/catalog?token=*XXX&region=east` |
+| `hosts` | `host1.example.com:9000,host2.example.com:9000` | Unchanged |
+| `endpoint` | `https://api.example.com/?X-Amz-Signature=example` | `*XXX` |
+
+Masked output cannot recover the original secret. Use your configuration 
management or secret store when recreating or changing a Catalog.
+
+## Where Masking Applies
+
+| Output | Behavior |
+|---|---|
+| `SHOW CATALOG`, `SHOW CREATE CATALOG`, `catalogs()` | Apply the shared 
property-name and value rules. Hidden properties remain omitted. |
+| CREATE / ALTER CATALOG SQL in the audit log | Replace sensitive properties 
in the statement text using the same rules. |
+| Catalog properties in lineage metadata | Omit properties whose names are 
sensitive; sanitize retained properties that contain connection strings or URL 
credentials. |
+| Typed connector property diagnostics (5.0 and later) | Fields declared 
sensitive by a connector render as `***`, or `<empty>` when unset. A structured 
URI can be sensitive in diagnostics while still using value-aware masking in 
Catalog output. |
+
+The same masking-enabled property renderer is used by some resource, 
storage-vault and job SQL paths. This does not mean that every resource proc 
result, SDK diagnostic, HTTP response or application log uses this renderer.
+
+## Property Name Rules
+
+Doris takes the union of:
+
+1. Built-in sensitive names and connector/filesystem secret aliases. In 4.2.0, 
these come from the built-in registry and sensitive field declarations; in 5.0 
and later, loaded providers also register secret aliases and namespaces.
+2. Permanent connection-string, native credential and Hadoop credential name 
rules.
+3. The configurable supplemental name expression described below.
+
+Exact secret names are compared case-insensitively. A sensitive name takes 
precedence over value parsing: a harmless-looking endpoint stored under 
`custom.password` is still hidden when that name matches the policy. Property 
names themselves remain visible.
+
+### Catalog and Metastore Credentials
+
+The table lists representative names and special rules. Connector availability 
depends on the Doris version; a masking rule does not add connector support. 
Accepted aliases of a declared secret field follow the same protection; this is 
not a list of the only names that can be sensitive.
+
+| Catalog or service | Whole-value masking |
+|---|---|
+| JDBC | `password`, `jdbc.password`, and explicit JDBC connection properties 
such as `jdbc_url`. An embedded password is not required for a JDBC connection 
string to be hidden. |
+| MongoDB | `mongodb.uri` and `mongodb.password`. The MongoDB URI is always 
hidden, including when it has no visible password. |
+| MaxCompute | `mc.access_key`, `mc.secret_key`, `mc.session_token`. |
+| Iceberg REST | `iceberg.rest.oauth2.token`, 
`iceberg.rest.oauth2.credential`, `iceberg.rest.access-key-id`, 
`iceberg.rest.secret-access-key`, `iceberg.rest.session-token`. REST service 
URIs use the address rules below. |
+| Iceberg JDBC / Paimon JDBC | `iceberg.jdbc.password`, 
`paimon.jdbc.password`, `jdbc.password`, and explicit JDBC URI properties. The 
shared `uri` alias is hidden when its value starts with `jdbc:`. |
+| Paimon REST | `paimon.rest.dlf.access-key-id`, 
`paimon.rest.dlf.access-key-secret`, plus credential names recognized by the 
shared rules. |
+| Glue / retained DLF properties | Glue aliases such as `glue.access_key`, 
`glue.secret_key`, `aws.glue.access-key`, `aws.glue.secret-key`, 
`aws.glue.session-token`; retained DLF aliases such as `dlf.access_key`, 
`dlf.secret_key`, `dlf.session_token`, `dlf.catalog.accessKeyId`, 
`dlf.catalog.accessKeySecret`, `dlf.catalog.sessionToken`, 
`dlf.catalog.securityToken`. Retaining a masking rule does not imply support 
for creating that metastore type. |
+| Fluss (5.0 and later) | `fluss.client.security.sasl.username`, 
`fluss.client.security.sasl.password`, 
`fluss.client.security.sasl.jaas.config`. Under `fluss.lake.paimon.`, a name 
containing `key`, `secret`, `password`, `token` or `credential` is sensitive. |
+| Trino | Under `trino.`, a name containing `key`, `secret`, `password`, 
`token` or `credential` is sensitive, for example `trino.keytab` or 
`trino.connection-password`. |
+| ADBC (5.0 and later) | `password`; under `adbc.`, a name containing `key`, 
`secret`, `password`, `token`, `credential` or `authorization` is sensitive. 
Connection URIs also use the address rules. |
+| Elasticsearch | Declared password aliases such as `elasticsearch.password`; 
endpoint values use the address rules. |
+| Other Catalogs | The same global policy applies according to their 
metastore, filesystem and credential properties. A Catalog type alone does not 
make every property sensitive. |
+
+In 5.0 and later, the namespace rules for Fluss, Trino and ADBC perform 
case-insensitive substring matching in the name after the prefix. For example, 
`trino.monkey` also contains `key` and is masked. These registered rules still 
apply when the supplemental expression is disabled.
+
+### Storage and Native SDK Credentials
+
+| Property family | Sensitive fields and representative aliases |
+|---|---|
+| S3 | Access keys, secret keys and session tokens: `s3.access_key`, 
`s3.secret_key`, `s3.session_token`, `s3.access-key-id`, 
`s3.secret-access-key`, `s3.session-token`, and declared bare/AWS aliases. |
+| GCS | `gs.access_key`, `gs.secret_key`, `gs.session_token`, and their 
declared S3/AWS aliases. |
+| Azure | Account-name/access-key aliases, account keys and OAuth client 
secrets, including `azure.account_name`, `azure.access_key`, 
`azure.account_key`, `azure.secret_key`, `azure.oauth2_client_secret`, 
`AZURE_ACCOUNT_KEY`, `AZURE_CLIENT_SECRET`. An explicitly protected account 
identifier remains hidden even when it is not a password. |
+| OSS / OSS-HDFS | Access keys, secret keys, session/security tokens, 
including `oss.access_key`, `oss.secret_key`, `oss.session_token`, 
`oss.hdfs.access_key`, `oss.hdfs.secret_key`, `oss.hdfs.security_token`, 
`oss.security_token`, plus `OSS_ACCESS_KEY`, `OSS_SECRET_KEY`, 
`OSS_SESSION_TOKEN`, `OSS_TOKEN`. |
+| COS | `cos.access_key`, `cos.secret_key`, `cos.session_token`, 
`COS_ACCESS_KEY`, `COS_SECRET_KEY`, `COS_SESSION_TOKEN`, `COS_TOKEN`, and 
declared S3 aliases. |
+| OBS | `obs.access_key`, `obs.secret_key`, `obs.session_token`, 
`OBS_ACCESS_KEY`, `OBS_SECRET_KEY`, `OBS_SESSION_TOKEN`, `OBS_TOKEN`, and 
declared S3 aliases. |
+| MinIO | `minio.access_key`, `minio.secret_key`, `minio.session_token`, and 
declared S3/AWS aliases. |
+| Ozone | `ozone.access_key`, `ozone.secret_key`, `ozone.session_token`, and 
declared S3 aliases. |
+| Native SDK credentials | Bare `token`, `credential`, `credentials`, or names 
ending in one of these components after `.`, `_` or `-`, are always hidden. 
This also covers unprefixed SDK properties retained in a Catalog. |
+| Other built-in secrets | Names such as `kerberos_keytab_content`, 
`bos_secret_accesskey` and AI API-key properties remain protected. |
+
+Some generated storage aliases, such as exact uppercase `AWS_ACCESS_KEY`, 
`AWS_SECRET_KEY` and `AWS_TOKEN`, are omitted from printable maps rather than 
returned with a mask. Do not depend on SHOW output to enumerate or back up 
every stored property.
+
+### Hadoop Credentials
+
+These permanent rules are case-insensitive and also recognize a namespace 
before `fs.`, such as `hadoop.fs.s3a.secret.key`:
+
+| Family | Whole-value masking |
+|---|---|
+| `fs.s3.*`, `fs.s3a.*` | `access.key`, `secret.key`, `session.token`, 
`encryption.key`, `server-side-encryption.key`, `proxy.password`; also 
`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 the `userInfo.` scope. |
+| `fs.obs.*` | `access.key`, `secret.key`, `session.token`, `security.token`. |
+
+A file path naming a credential file is not the file's contents. These name 
rules do not read or scan the referenced file.
+
+## JDBC Strings and Address Values
+
+### Whole Connection Strings
+
+Names ending in a delimited JDBC URL/URI component, such as `jdbc_url`, 
`jdbc.jdbc_url`, `iceberg.jdbc.uri` or `paimon.jdbc.uri`, are entirely hidden. 
The suffixes `connectionString`, `connection_string`, `connection-string` and 
`connection.string` are also hidden.
+
+Any trimmed value starting with `jdbc:` is entirely hidden, regardless of its 
property name or case. This covers opaque driver syntaxes such as Oracle 
connection strings under `uri`.
+
+### Hosts and URLs
+
+Doris examines names ending in a delimited `uri`, `url`, `host`, `endpoint` or 
`address`, including their plural forms. Hierarchical URI-shaped values are 
also examined under other property names, such as `warehouse`.
+
+| Value | Result |
+|---|---|
+| Plain host or host:port, bracketed IPv6, comma-separated plain hosts | 
Visible when the form and numeric port are valid. Ports must be in 0–65535. |
+| Supported URL with ordinary authentication userinfo | Remove userinfo; 
preserve the safe host, port and path. |
+| Secret query parameters | Decode names before classification; mask every 
matching value, including duplicate parameters. |
+| URL fragment | Remove it. |
+| Authorization signature | Hide the entire URL when a parameter name contains 
`signature` or a delimited `sig` / `sas`. |
+| Unknown scheme, opaque format, malformed authority/port/escape/query name, 
URL list or a URL containing commas, ambiguous matrix path or nested connection 
string | Hide the entire value. There is no raw-value fallback when parsing 
fails. |
+
+Supported schemes are `http`, `https`, `thrift`, `hdfs`, `viewfs`, `file`, 
`s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`, `abfss`, `wasb` 
and `wasbs`.
+
+Query-name checks include the name rules above, plus password/passwd/pwd, 
secret/token/credential, access/API/account/private/auth/application-key 
spellings, `authorization`, bare `auth` and bare `key`. Ordinary URL query 
separators are normalized to `&`. Nested URL/JDBC values or unreliable repeated 
encoding cause the whole address to be hidden.
+
+### Native Storage and Local Paths
+
+- In ABFS/WASB URIs, a valid `container@host` identifies storage, rather than 
a login. Preserve the container; reject missing, encoded, malformed or 
password-bearing container forms.
+- Preserve valid GCS bucket authorities containing underscores, HDFS/ViewFS 
absolute locations with a default authority, and ViewFS logical mount names.
+- Preserve unambiguous absolute POSIX local `driver_url` paths and absolute 
`file:/...` / `file:///...` locations. Ambiguous syntax remains hidden. This is 
a display rule and does not change driver-loading restrictions.
+- For internal streaming S3 audit only, Doris sanitizes each selected file 
before assembling the escaped batch glob, using the policy effective when the 
audit event is emitted. It preserves literal `#`, percent spellings, `+`, 
spaces and non-secret query-shaped suffix separators that distinguish object 
keys. Signed or unsafe selected locations hide the whole batch. An ordinary 
Catalog URI or user-supplied URI list cannot enable this internal mode.
+
+## Configure Additional Names
+
+`datasource_sensitive_property_pattern` is an FE-local, mutable string 
configuration. Its default is:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+The shared property renderer searches the case-insensitive regex anywhere in a 
property name, including URL query parameter names. Typed diagnostics continue 
to follow field sensitivity declarations. It covers names such as 
`custom.password`, `clientSecret` and `custom.api-key`. It can also hide 
non-secret operational settings whose names contain these words.
+
+| Value | Effect |
+|---|---|
+| Default expression | Add the common credential-name matches to all permanent 
rules. |
+| A custom expression | Replace only the supplemental expression; built-in and 
registered secret rules still apply. |
+| `(?!)` | Disable only supplemental name matching. |
+| Empty expression | Match every name, potentially hiding all displayed 
properties or omitting them from lineage. |
+| Invalid expression | Reject the configuration during startup, custom-config 
loading or runtime update; do not fall back to printing raw values. |
+
+An administrator can first check whether the deployed build exposes the 
configuration:
+
+```sql
+SHOW FRONTEND CONFIG LIKE 'datasource_sensitive_property_pattern';
+```
+
+For example, after disabling the supplemental expression, `custom.password` is 
no longer hidden solely because of that name. Built-in `password`, native 
`token`, and explicit JDBC/Hadoop rules still apply.
+
+If it returns no matching configuration, this build does not expose the 
supplemental regex. Do not infer the full policy from the version family alone.
+
+To add `custom.pin` while retaining the default matches on all current FEs:
+
+```sql
+ADMIN SET ALL FRONTENDS CONFIG (
+    "datasource_sensitive_property_pattern" = 
"password|passwd|secret|token|credential|access[._-]?key|api[._-]?key|custom[.]pin"
+);
+```
+
+`custom.pin` then displays as `*XXX`. Runtime SQL updates do not persist 
through a restart. Configure the same expression in `fe.conf` on every FE, or 
use the documented persistent configuration mechanism. Newly added FEs also 
need the same setting. A different expression on another serving FE can produce 
different output.
+
+See [FE 
Configuration](../admin-manual/config/fe-config.md#datasource_sensitive_property_pattern)
 for the parameter reference. Using `[.]` in examples avoids SQL 
backslash-escaping ambiguity when matching a literal dot.
+
+## Limits and Best Practices
+
+- Masking affects supported output copies. It does not encrypt stored Catalog 
metadata or change the credentials used by a client.
+- A secret hidden in SHOW cannot be read back from the masked value. Set the 
original replacement value through ALTER CATALOG when rotating credentials.
+- Ordinary URL path segments and unrecognized query parameters are not scanned 
for secret content. A secret placed there may remain visible. Avoid embedding 
secrets in paths, or add the entire property name to the supplemental rule to 
hide its whole value.
+- Catalog comments and other free text are not generally secret-scanned. 
Unknown SDK containers or arbitrary values under unrelated names are not 
guaranteed to be recognized. Use explicit credential properties and configure 
additional names when necessary.
+- Scope the policy to the documented output path; independently inspect custom 
plugins, external SDK logs and other APIs before treating their output as safe 
to share.
+- Apply the same configuration to all serving FEs. Review SHOW output and 
representative audit/lineage output after an upgrade or connector change, using 
synthetic credentials for verification.
diff --git a/docs/sql-manual/sql-statements/catalog/SHOW-CATALOG.md 
b/docs/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
index 09a0f390b88..19b2166af57 100644
--- a/docs/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
+++ b/docs/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
@@ -10,6 +10,10 @@
 
 Shows properties of specified catalog
 
+## Property Masking
+
+The shared masking policy is planned for Doris 4.2.0 and for 5.0 and later 
releases. Sensitive properties display as `*XXX`; some internal properties are 
omitted. Explicit JDBC connection strings are entirely hidden, while ordinary 
URIs are sanitized according to their values. See [Catalog property masking 
rules](../../../lakehouse/catalog-property-masking.md). The example below uses 
this policy; it does not describe 4.0, 4.1 or 3.x.
+
 ## Syntax
 
 ```sql
@@ -43,7 +47,7 @@ The name of the catalog to be displayed.
    ```sql
    show catalog test_mysql;
    ```
-   ```sql
+   ```text
       
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
    | Key            | Value                                                    
                                                                                
           |
    
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -51,7 +55,7 @@ The name of the catalog to be displayed.
    | create_time    | 2025-02-17 17:21:13.099                                  
                                                                                
           |
    | driver_class   | com.mysql.cj.jdbc.Driver                                 
                                                                                
           |
    | driver_url     | mysql-connector-j-8.3.0.jar                              
                                                                                
           |
-   | jdbc_url       | jdbc:mysql://127.0.0.1:3306/db                           
                                                                                
           |
+   | jdbc_url       | *XXX                                                     
                                                                                
           |
    | password       | *XXX                                                     
                                                                                
           |
    | type           | jdbc                                                     
                                                                                
           |
    | use_meta_cache | true                                                     
                                                                                
           |
diff --git a/docs/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md 
b/docs/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
index 7627d8dc103..2bf72bd580f 100644
--- a/docs/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
+++ b/docs/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
@@ -10,6 +10,10 @@
 
 This statement shows the creating statement of a doris catalog.
 
+## Property Masking
+
+The shared masking policy is planned for Doris 4.2.0 and for 5.0 and later 
releases. Sensitive properties display as `*XXX`; some internal properties are 
omitted. Explicit JDBC connection strings are entirely hidden, while ordinary 
URIs are sanitized according to their values. See [Catalog property masking 
rules](../../../lakehouse/catalog-property-masking.md). The example below uses 
this policy; it does not describe 4.0, 4.1 or 3.x. In the example, `*XXX` is a 
masking marker; other `XXX [...]
+
 ## Syntax
 
 ```sql
@@ -35,7 +39,7 @@ The name of the catalog whose creation statement needs to be 
viewed.
 ```sql
    SHOW CREATE CATALOG oracle;
    ```
-   ```sql
+   ```text
    
+---------+----------------------------------------------------------------------------------------------------------------------+
     | Catalog | CreateCatalog                                                  
                                                      |
     
+---------+----------------------------------------------------------------------------------------------------------------------+
@@ -44,7 +48,7 @@ The name of the catalog whose creation statement needs to be 
viewed.
     "user" = "XXX",
     "type" = "jdbc",
     "password" = "*XXX",
-    "jdbc_url" = "XXX",
+    "jdbc_url" = "*XXX",
     "driver_url" = "XXX",
     "driver_class" = "oracle.jdbc.driver.OracleDriver",
     "checksum" = "XXX"
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/config/fe-config.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/config/fe-config.md
index 32b06628705..429511bb61e 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/config/fe-config.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/config/fe-config.md
@@ -127,6 +127,23 @@ Doris 元数据将保存在这里。强烈建议将此目录的存储为:
 
 元数据锁的 tryLock 超时配置。通常它不需要改变,除非你需要测试一些东西。
 
+#### `datasource_sensitive_property_pattern`
+
+计划在 Doris 4.2.0、5.0 及后续版本支持;不能将完整脱敏规则视为 4.0、4.1 或 3.x 的已有能力。
+
+- 类型:string
+- 是否可以动态配置:true
+- 是否仅 Master 生效:false(FE 本地配置)
+- 默认值:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+在支持的输出入口脱敏时,对数据源属性名及 URL 查询参数名进行不区分大小写查找的正则表达式。其匹配与内置及已注册秘密规则取并集。`(?!)` 
只关闭补充表达式;空表达式匹配所有名称。启动、custom 配置加载及运行时更新会拒绝非法表达式。
+
+所有提供查询服务的 FE 应使用相同配置。运行时 SQL 修改不会持久化;重启和加入新 FE 时,应通过 `fe.conf` 
或文档中的持久化配置机制保留设置。用法、范围及 URI 规则见 [Catalog 
属性脱敏](../../lakehouse/catalog-property-masking.md#配置补充名称规则)。
+
 #### `enable_bdbje_debug_mode`
 
 默认值:true(4.1.5 之前为 false)
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalog-overview.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalog-overview.md
index dc63c5d5fb1..816f6c21425 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalog-overview.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalog-overview.md
@@ -27,6 +27,10 @@ Doris 中的数据目录分为两种:
 
 本文以 [Iceberg Catalog](./catalogs/iceberg-catalog) 
为例,重点介绍数据目录的基础操作。不同数据目录的详细介绍,请参阅对应的数据目录文档。
 
+## 敏感属性脱敏
+
+Catalog 属性的统一脱敏规则计划在 Doris 4.2.0、5.0 
及后续版本支持。在支持的展示、审计及血缘入口中对密码、访问密钥、Token、JDBC 连接串和 URL 
凭据脱敏,运行时连接原值不变。具体规则、版本差异、配置及限制见 [Catalog 属性脱敏](./catalog-property-masking.md)。
+
 ## 创建数据目录
 
 通过 `CREATE CATALOG` 语句创建一个 Iceberg Catalog。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalog-property-masking.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalog-property-masking.md
new file mode 100644
index 00000000000..9f9ac1dd243
--- /dev/null
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/lakehouse/catalog-property-masking.md
@@ -0,0 +1,197 @@
+---
+{
+    "title": "Catalog 属性脱敏",
+    "language": "zh-CN",
+    "description": "了解 Doris 在 SHOW、审计 SQL 和血缘中对 Catalog 凭据、JDBC 连接串、URL、SDK 及 
Hadoop 属性的脱敏规则,并区分 4.2.0、5.0 及后续版本的支持范围、动态配置和展示脱敏的边界。",
+    "keywords": ["Catalog 属性脱敏", "Catalog 凭据", "SHOW CATALOG", "JDBC URL", 
"datasource_sensitive_property_pattern"],
+    "doc_type": "reference"
+}
+---
+
+Doris 会在支持的展示和审计入口中对外部 Catalog 的敏感属性进行脱敏,将整个值或 URL 中的敏感参数值替换为 
`*XXX`,部分内部属性则直接省略。连接器仍然使用原始值。
+
+:::info 适用版本
+本文规则及 `datasource_sensitive_property_pattern` 计划在 Doris 4.2.0、5.0 及后续版本支持。在 
4.x 文档中,本功能自 4.2.0 起适用。不能据此推断 4.0、4.1 或 3.x 具备完整规则;旧版本可能仅对部分字段脱敏。
+:::
+
+## 快速开始
+
+对于一个已存在且你具有查看权限的 Catalog:
+
+```sql
+SHOW CATALOG example_catalog;
+SHOW CREATE CATALOG example_catalog;
+SELECT `Property`, `Value`
+FROM catalogs()
+WHERE CatalogName = 'example_catalog'
+ORDER BY `Property`;
+```
+
+以下映射展示输出规则,无需连接示例端点:
+
+| 属性 | 原始值 | 展示值 |
+|---|---|---|
+| `mc.session_token` | `example-token` | `*XXX` |
+| `ozone.access_key` | `example-key` | `*XXX` |
+| `jdbc_url` | `jdbc:mysql://db.example.com:3306/example` | `*XXX` |
+| `uri` | `https://api.example.com/catalog` | 
`https://api.example.com/catalog` |
+| `iceberg.rest.uri` | 
`https://user:[email protected]/catalog?token=example&region=east` | 
`https://api.example.com/catalog?token=*XXX&region=east` |
+| `hosts` | `host1.example.com:9000,host2.example.com:9000` | 保持原值 |
+| `endpoint` | `https://api.example.com/?X-Amz-Signature=example` | `*XXX` |
+
+脱敏结果无法还原原始秘密。重建或修改 Catalog 时,应从配置管理或密钥管理系统获取原值。
+
+## 生效入口
+
+| 输出入口 | 行为 |
+|---|---|
+| `SHOW CATALOG`、`SHOW CREATE CATALOG`、`catalogs()` | 使用统一的属性名和值规则,原有隐藏属性继续省略。 
|
+| 审计日志中的 CREATE / ALTER CATALOG SQL | 按相同规则替换语句文本中的敏感属性。 |
+| 血缘元数据中的 Catalog 属性 | 省略属性名敏感的字段,对保留字段中的连接串和 URL 凭据进行清理。 |
+| 连接器类型化属性的诊断输出(5.0 及后续版本) | 连接器声明为敏感的字段显示为 `***`,未设置时显示为 `<empty>`。结构化 URI 
可以在诊断中属于敏感字段,同时在 Catalog 展示中使用按值脱敏的规则。 |
+
+部分 resource、storage vault 和 job SQL 入口也使用开启脱敏的同一属性格式化逻辑。这不表示所有 resource proc 
结果、SDK 诊断、HTTP 响应或应用日志都使用这一逻辑。
+
+## 属性名规则
+
+Doris 对以下规则取并集:
+
+1. 内置敏感字段及连接器/文件系统的秘密字段别名。4.2.0 从内置注册表及字段敏感声明中收集;5.0 及后续版本还由已加载的 provider 
注册秘密别名及命名空间。
+2. 永久的连接串、原生凭据和 Hadoop 凭据名称规则。
+3. 下文介绍的可配置补充名称表达式。
+
+精确秘密字段名的比较不区分大小写。敏感名称优先于值解析:即使 `custom.password` 
中存放的是普通端点,只要名称匹配规则,其值仍会被遮蔽。属性名本身继续显示。
+
+### Catalog 与 Metastore 凭据
+
+下表列出代表性名称和特殊规则。连接器是否可用取决于 Doris 
版本;增加脱敏规则不会增加连接器支持。某个已声明秘密字段接受的别名适用相同保护;这不是“只有这些名称才敏感”的穷举名单。
+
+| Catalog 或服务 | 整值遮蔽规则 |
+|---|---|
+| JDBC | `password`、`jdbc.password`,以及 `jdbc_url` 等明确的 JDBC 连接属性。即使没有嵌入密码,JDBC 
连接串也会被隐藏。 |
+| MongoDB | `mongodb.uri`、`mongodb.password`。MongoDB URI 始终整值遮蔽,即使其中看不到密码。 |
+| MaxCompute | `mc.access_key`、`mc.secret_key`、`mc.session_token`。 |
+| Iceberg REST | 
`iceberg.rest.oauth2.token`、`iceberg.rest.oauth2.credential`、`iceberg.rest.access-key-id`、`iceberg.rest.secret-access-key`、`iceberg.rest.session-token`。REST
 服务 URI 使用下文地址规则。 |
+| Iceberg JDBC / Paimon JDBC | 
`iceberg.jdbc.password`、`paimon.jdbc.password`、`jdbc.password`,以及明确的 JDBC URI 
属性。共享别名 `uri` 的值以 `jdbc:` 开头时也整值遮蔽。 |
+| Paimon REST | 
`paimon.rest.dlf.access-key-id`、`paimon.rest.dlf.access-key-secret`,以及共享规则识别出的其他凭据名称。
 |
+| Glue / 保留的 DLF 属性 | Glue 别名,例如 
`glue.access_key`、`glue.secret_key`、`aws.glue.access-key`、`aws.glue.secret-key`、`aws.glue.session-token`;保留的
 DLF 别名,例如 
`dlf.access_key`、`dlf.secret_key`、`dlf.session_token`、`dlf.catalog.accessKeyId`、`dlf.catalog.accessKeySecret`、`dlf.catalog.sessionToken`、`dlf.catalog.securityToken`。保留脱敏规则不表示仍支持创建该
 metastore 类型。 |
+| Fluss(5.0 及后续版本) | 
`fluss.client.security.sasl.username`、`fluss.client.security.sasl.password`、`fluss.client.security.sasl.jaas.config`;`fluss.lake.paimon.`
 后的名称包含 `key`、`secret`、`password`、`token`、`credential` 任一子串即敏感。 |
+| Trino | `trino.` 后的名称包含 `key`、`secret`、`password`、`token`、`credential` 
任一子串即敏感,例如 `trino.keytab`、`trino.connection-password`。 |
+| ADBC(5.0 及后续版本) | `password`;`adbc.` 后的名称包含 
`key`、`secret`、`password`、`token`、`credential`、`authorization` 任一子串即敏感。连接 URI 
也使用地址规则。 |
+| Elasticsearch | `elasticsearch.password` 等已声明密码别名;端点值使用地址规则。 |
+| 其他 Catalog | 根据 metastore、文件系统和凭据属性,使用相同的全局规则。仅凭 Catalog 类型不会把所有属性都视为敏感。 |
+
+5.0 及后续版本中,Fluss、Trino、ADBC 的命名空间规则对前缀之后的名称进行不区分大小写的子串匹配。例如,`trino.monkey` 也包含 
`key`,因此会被遮蔽。关闭补充表达式后,这些已注册的规则仍然生效。
+
+### 存储与原生 SDK 凭据
+
+| 属性族 | 敏感字段与代表性别名 |
+|---|---|
+| S3 | Access Key、Secret Key、Session 
Token:`s3.access_key`、`s3.secret_key`、`s3.session_token`、`s3.access-key-id`、`s3.secret-access-key`、`s3.session-token`,以及声明的裸名称和
 AWS 别名。 |
+| GCS | `gs.access_key`、`gs.secret_key`、`gs.session_token`,以及声明的 S3/AWS 别名。 |
+| Azure | 账户名/Access Key 别名、Account Key 和 OAuth Client Secret,包括 
`azure.account_name`、`azure.access_key`、`azure.account_key`、`azure.secret_key`、`azure.oauth2_client_secret`、`AZURE_ACCOUNT_KEY`、`AZURE_CLIENT_SECRET`。被明确保护的账户标识即使不是密码,也会被隐藏。
 |
+| OSS / OSS-HDFS | Access Key、Secret Key、Session/Security Token,包括 
`oss.access_key`、`oss.secret_key`、`oss.session_token`、`oss.hdfs.access_key`、`oss.hdfs.secret_key`、`oss.hdfs.security_token`、`oss.security_token`,以及
 `OSS_ACCESS_KEY`、`OSS_SECRET_KEY`、`OSS_SESSION_TOKEN`、`OSS_TOKEN`。 |
+| COS | 
`cos.access_key`、`cos.secret_key`、`cos.session_token`、`COS_ACCESS_KEY`、`COS_SECRET_KEY`、`COS_SESSION_TOKEN`、`COS_TOKEN`,以及声明的
 S3 别名。 |
+| OBS | 
`obs.access_key`、`obs.secret_key`、`obs.session_token`、`OBS_ACCESS_KEY`、`OBS_SECRET_KEY`、`OBS_SESSION_TOKEN`、`OBS_TOKEN`,以及声明的
 S3 别名。 |
+| MinIO | `minio.access_key`、`minio.secret_key`、`minio.session_token`,以及声明的 
S3/AWS 别名。 |
+| Ozone | `ozone.access_key`、`ozone.secret_key`、`ozone.session_token`,以及声明的 S3 
别名。 |
+| 原生 SDK 凭据 | 裸名称 `token`、`credential`、`credentials`,以及以 `.`, `_` 或 `-` 
分隔、最终部分为这些名称的属性,始终整值隐藏。这也覆盖保存在 Catalog 中的不带前缀的 SDK 属性。 |
+| 其他内置秘密 | `kerberos_keytab_content`、`bos_secret_accesskey`、AI API Key 
等名称继续受到保护。 |
+
+部分生成的存储别名,例如精确大写的 
`AWS_ACCESS_KEY`、`AWS_SECRET_KEY`、`AWS_TOKEN`,会从属性展示中省略,而不是返回掩码。不要依赖 SHOW 
输出枚举或备份全部存储属性。
+
+### Hadoop 凭据
+
+以下永久规则不区分大小写,也识别 `fs.` 前的命名空间,例如 `hadoop.fs.s3a.secret.key`:
+
+| 属性族 | 整值遮蔽规则 |
+|---|---|
+| `fs.s3.*`、`fs.s3a.*` | 
`access.key`、`secret.key`、`session.token`、`encryption.key`、`server-side-encryption.key`、`proxy.password`;也支持
 `bucket.<bucket>.` 作用域,包括带点的 bucket 名。 |
+| `fs.azure.*` | 
`account.key`、`sas`、`sas.fixed.token`、`account.oauth2.client.secret`、`account.oauth2.refresh.token`、`encryption.encoded.client-provided.key`,包括账户/容器后缀。
 |
+| `fs.adl.oauth2.*` | `credential`、`refresh.token`。 |
+| `fs.oss.*` | `accessKeyId`、`accessKeySecret`、`securityToken`。 |
+| `fs.cosn.*` | `secretId`、`secretKey`,包括 `userInfo.` 作用域。 |
+| `fs.obs.*` | `access.key`、`secret.key`、`session.token`、`security.token`。 |
+
+用于指定凭据文件的路径并不是文件内容。这些名称规则不会读取或扫描所引用的文件。
+
+## JDBC 连接串与地址值
+
+### 完整连接串
+
+名称以分隔的 JDBC URL/URI 部分结尾时整值遮蔽,例如 
`jdbc_url`、`jdbc.jdbc_url`、`iceberg.jdbc.uri`、`paimon.jdbc.uri`。`connectionString`、`connection_string`、`connection-string`、`connection.string`
 后缀也整值遮蔽。
+
+去掉首尾空白后,任何以 `jdbc:` 开头的值均整值遮蔽,与属性名和大小写无关。这包括放在 `uri` 中的 Oracle 等不透明驱动连接语法。
+
+### Host 与 URL
+
+Doris 会检查以分隔的 `uri`、`url`、`host`、`endpoint`、`address` 结尾的名称,包括复数形式。其他属性中符合层级 
URI 形态的值也会被检查,例如 `warehouse`。
+
+| 值 | 处理结果 |
+|---|---|
+| 普通 host 或 host:port、方括号 IPv6、逗号分隔的纯 host 列表 | 格式和数字端口合法时可见。端口范围为 0–65535。 |
+| 支持的 URL 中含普通认证 userinfo | 移除 userinfo,保留安全的主机、端口和路径。 |
+| 秘密查询参数 | 先解码参数名,再分类;遮蔽每个匹配值,包括重复参数。 |
+| URL fragment | 移除。 |
+| 授权签名 | 参数名包含 `signature`,或分隔的 `sig` / `sas` 时,整个 URL 隐藏。 |
+| 未知协议、不透明格式、非法 authority/端口/转义/参数名、URL 列表或含逗号的 URL、歧义 matrix 路径或嵌套连接串 | 
整值隐藏,解析失败时不会回退到原值输出。 |
+
+支持的协议为 
`http`、`https`、`thrift`、`hdfs`、`viewfs`、`file`、`s3`、`s3a`、`s3n`、`oss`、`cos`、`cosn`、`obs`、`gs`、`abfs`、`abfss`、`wasb`、`wasbs`。
+
+查询参数名既使用上述名称规则,也识别 
password/passwd/pwd、secret/token/credential、access/API/account/private/auth/application
 key 的常见拼写,以及 `authorization`、裸 `auth` 和裸 `key`。普通 URL 的查询参数分隔符统一为 `&`。非秘密名称下嵌套 
URL/JDBC 值,或不可靠的重复编码,都会导致整个地址隐藏。
+
+### 原生存储与本地路径
+
+- ABFS/WASB URI 中合法的 `container@host` 表示存储身份,而非登录信息。保留 
container;拒绝缺失、编码、非法或夹带密码的 container 形式。
+- 保留合法的含下划线 GCS bucket authority、使用默认 authority 的 HDFS/ViewFS 绝对位置,以及 ViewFS 
逻辑 mount 名。
+- 保留无歧义的绝对 POSIX 本地 `driver_url` 路径及绝对 `file:/...` / `file:///...` 
位置;有歧义的语法仍隐藏。这是展示规则,不改变驱动加载限制。
+- 仅对内部流式 S3 审计,Doris 按审计事件发出时生效的规则,先对每个已选文件脱敏,再组装转义后的批次 glob。保留用于区分对象 key 的字面 
`#`、百分号拼写、`+`、空格及非秘密查询形态后缀分隔符。含签名或不安全的已选位置使整个批次隐藏。普通 Catalog URI 或用户传入的 URI 
列表不能启用此内部模式。
+
+## 配置补充名称规则
+
+`datasource_sensitive_property_pattern` 是 FE 本地、可动态修改的字符串配置,默认值为:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+共享属性格式化逻辑用此正则对整个属性名进行不区分大小写的查找,也用于 URL 查询参数名;类型化诊断仍按字段敏感声明处理。此表达式可覆盖 
`custom.password`、`clientSecret`、`custom.api-key` 等名称;名称含有这些词的非秘密操作设置也可能被隐藏。
+
+| 值 | 效果 |
+|---|---|
+| 默认表达式 | 在所有永久规则之外,增加常见凭据名称匹配。 |
+| 自定义表达式 | 仅替换补充表达式,内置及已注册秘密规则继续生效。 |
+| `(?!)` | 只关闭补充名称匹配。 |
+| 空表达式 | 匹配所有名称,可能使全部展示属性隐藏,或从血缘中省略。 |
+| 非法表达式 | 在启动、custom 配置加载或运行时更新时拒绝该配置,不回退到原值输出。 |
+
+管理员可以先检查部署构建是否暴露此配置:
+
+```sql
+SHOW FRONTEND CONFIG LIKE 'datasource_sensitive_property_pattern';
+```
+
+例如,关闭补充表达式后,`custom.password` 不再仅因这个名称而隐藏;内置的 `password`、原生 `token` 及明确 
JDBC/Hadoop 规则仍然生效。
+
+如果没有匹配的配置行,该构建不提供此补充正则。不要仅根据版本大类推断是否具备完整规则。
+
+在保留默认匹配的基础上,为所有当前 FE 增加 `custom.pin`:
+
+```sql
+ADMIN SET ALL FRONTENDS CONFIG (
+    "datasource_sensitive_property_pattern" = 
"password|passwd|secret|token|credential|access[._-]?key|api[._-]?key|custom[.]pin"
+);
+```
+
+之后 `custom.pin` 显示为 `*XXX`。运行时 SQL 修改不会在重启后保留,应在每个 FE 的 `fe.conf` 
中配置同一表达式,或使用文档中的持久化配置机制;新加入的 FE 也需要相同配置。其他提供查询服务的 FE 使用不同表达式时,输出可能不同。
+
+参数说明见 [FE 
配置](../admin-manual/config/fe-config.md#datasource_sensitive_property_pattern)。示例用
 `[.]` 匹配字面点,避免 SQL 反斜线转义歧义。
+
+## 限制与最佳实践
+
+- 脱敏作用于支持的输出副本,不会加密 Catalog 元数据存储,也不会改变客户端使用的凭据。
+- SHOW 中隐藏的秘密无法从掩码中读回。轮换凭据时,应通过 ALTER CATALOG 设置真实的新值。
+- URL 的普通路径段和未识别的查询参数不会按秘密内容进行扫描;秘密放在其中时,可能保持原样。应避免把秘密放入路径,或将整个属性名加入补充规则以整值隐藏。
+- Catalog 注释和其他自由文本不会被通用秘密扫描。未知 SDK 
容器或不相关属性名下的任意值,不保证能够识别。应使用明确的凭据属性,并按需配置补充名称。
+- 以文档列出的输出入口为范围;自定义插件、外部 SDK 日志及其他 API 的输出应独立检查,再判断能否分享。
+- 所有提供查询服务的 FE 使用同一配置。升级或更换连接器后,用合成凭据核对 SHOW 及有代表性的审计/血缘输出。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
index 02fedfbfb7a..e7686417104 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
@@ -10,6 +10,10 @@
 
 该语句用于显示已存在是数据目录(catalog)属性
 
+## 属性脱敏
+
+统一脱敏规则计划在 Doris 4.2.0、5.0 及后续版本支持。敏感属性展示为 `*XXX`,部分内部属性直接省略;明确的 JDBC 
连接串整值遮蔽,普通 URI 按值清理 userinfo、秘密参数和签名。完整规则见 [Catalog 
属性脱敏](../../../lakehouse/catalog-property-masking.md)。下例使用此规则,不表示 4.0、4.1 或 3.x 
的行为。
+
 ## 语法
 
 ```sql
@@ -41,7 +45,7 @@ SHOW CATALOG <catalog_name>
    ```sql
    SHOW CATALOG test_mysql;
    ```
-   ```sql
+   ```text
    
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
    | Key            | Value                                                    
                                                                                
           |
    
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -49,7 +53,7 @@ SHOW CATALOG <catalog_name>
    | create_time    | 2025-02-17 17:21:13.099                                  
                                                                                
           |
    | driver_class   | com.mysql.cj.jdbc.Driver                                 
                                                                                
           |
    | driver_url     | mysql-connector-j-8.3.0.jar                              
                                                                                
           |
-   | jdbc_url       | jdbc:mysql://127.0.0.1:3306/db                           
                                                                                
           |
+   | jdbc_url       | *XXX                                                     
                                                                                
           |
    | password       | *XXX                                                     
                                                                                
           |
    | type           | jdbc                                                     
                                                                                
           |
    | use_meta_cache | true                                                     
                                                                                
           |
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
index 9e36bed4166..96cd774449b 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
@@ -10,6 +10,10 @@
 
 该语句查看 Doris 数据目录的创建语句。
 
+## 属性脱敏
+
+统一脱敏规则计划在 Doris 4.2.0、5.0 及后续版本支持。敏感属性展示为 `*XXX`,部分内部属性直接省略;明确的 JDBC 
连接串整值遮蔽,普通 URI 按值清理 userinfo、秘密参数和签名。完整规则见 [Catalog 
属性脱敏](../../../lakehouse/catalog-property-masking.md)。下例使用此规则,不表示 4.0、4.1 或 3.x 
的行为。 示例中的 `*XXX` 是实际脱敏标记,其他 `XXX` 是示例占位符。
+
 ## 语法
 
 ```sql
@@ -34,7 +38,7 @@ SHOW CREATE CATALOG <catalog_name>;
    ```sql
    SHOW CREATE CATALOG oracle;
    ```
-   ```sql
+   ```text
    
+---------+----------------------------------------------------------------------------------------------------------------------+
     | Catalog | CreateCatalog                                                  
                                                      |
     
+---------+----------------------------------------------------------------------------------------------------------------------+
@@ -43,7 +47,7 @@ SHOW CREATE CATALOG <catalog_name>;
     "user" = "XXX",
     "type" = "jdbc",
     "password" = "*XXX",
-    "jdbc_url" = "XXX",
+    "jdbc_url" = "*XXX",
     "driver_url" = "XXX",
     "driver_class" = "oracle.jdbc.driver.OracleDriver",
     "checksum" = "XXX"
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/admin-manual/config/fe-config.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/admin-manual/config/fe-config.md
index 7fee2aa6e3e..e3fe326c4e0 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/admin-manual/config/fe-config.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/admin-manual/config/fe-config.md
@@ -127,6 +127,23 @@ Doris 元数据将保存在这里。强烈建议将此目录的存储为:
 
 元数据锁的 tryLock 超时配置。通常它不需要改变,除非你需要测试一些东西。
 
+#### `datasource_sensitive_property_pattern`
+
+计划在 Doris 4.2.0、5.0 及后续版本支持;不能将完整脱敏规则视为 4.0、4.1 或 3.x 的已有能力。
+
+- 类型:string
+- 是否可以动态配置:true
+- 是否仅 Master 生效:false(FE 本地配置)
+- 默认值:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+在支持的输出入口脱敏时,对数据源属性名及 URL 查询参数名进行不区分大小写查找的正则表达式。其匹配与内置及已注册秘密规则取并集。`(?!)` 
只关闭补充表达式;空表达式匹配所有名称。启动、custom 配置加载及运行时更新会拒绝非法表达式。
+
+所有提供查询服务的 FE 应使用相同配置。运行时 SQL 修改不会持久化;重启和加入新 FE 时,应通过 `fe.conf` 
或文档中的持久化配置机制保留设置。用法、范围及 URI 规则见 [Catalog 
属性脱敏](../../lakehouse/catalog-property-masking.md#配置补充名称规则)。
+
 #### `enable_bdbje_debug_mode`
 
 默认值:false
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalog-overview.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalog-overview.md
index dc63c5d5fb1..816f6c21425 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalog-overview.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalog-overview.md
@@ -27,6 +27,10 @@ Doris 中的数据目录分为两种:
 
 本文以 [Iceberg Catalog](./catalogs/iceberg-catalog) 
为例,重点介绍数据目录的基础操作。不同数据目录的详细介绍,请参阅对应的数据目录文档。
 
+## 敏感属性脱敏
+
+Catalog 属性的统一脱敏规则计划在 Doris 4.2.0、5.0 
及后续版本支持。在支持的展示、审计及血缘入口中对密码、访问密钥、Token、JDBC 连接串和 URL 
凭据脱敏,运行时连接原值不变。具体规则、版本差异、配置及限制见 [Catalog 属性脱敏](./catalog-property-masking.md)。
+
 ## 创建数据目录
 
 通过 `CREATE CATALOG` 语句创建一个 Iceberg Catalog。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalog-property-masking.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalog-property-masking.md
new file mode 100644
index 00000000000..e0c53e10b29
--- /dev/null
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/lakehouse/catalog-property-masking.md
@@ -0,0 +1,194 @@
+---
+{
+    "title": "Catalog 属性脱敏",
+    "language": "zh-CN",
+    "description": "了解 Doris 在 SHOW、审计 SQL 和血缘中对 Catalog 凭据、JDBC 连接串、URL、SDK 及 
Hadoop 属性的脱敏规则,并区分 4.2.0、5.0 及后续版本的支持范围、动态配置和展示脱敏的边界。",
+    "keywords": ["Catalog 属性脱敏", "Catalog 凭据", "SHOW CATALOG", "JDBC URL", 
"datasource_sensitive_property_pattern"],
+    "doc_type": "reference"
+}
+---
+
+Doris 会在支持的展示和审计入口中对外部 Catalog 的敏感属性进行脱敏,将整个值或 URL 中的敏感参数值替换为 
`*XXX`,部分内部属性则直接省略。连接器仍然使用原始值。
+
+:::info 适用版本
+本文规则及 `datasource_sensitive_property_pattern` 计划在 Doris 4.2.0、5.0 及后续版本支持。在 
4.x 文档中,本功能自 4.2.0 起适用。不能据此推断 4.0、4.1 或 3.x 具备完整规则;旧版本可能仅对部分字段脱敏。
+:::
+
+## 快速开始
+
+对于一个已存在且你具有查看权限的 Catalog:
+
+```sql
+SHOW CATALOG example_catalog;
+SHOW CREATE CATALOG example_catalog;
+SELECT `Property`, `Value`
+FROM catalogs()
+WHERE CatalogName = 'example_catalog'
+ORDER BY `Property`;
+```
+
+以下映射展示输出规则,无需连接示例端点:
+
+| 属性 | 原始值 | 展示值 |
+|---|---|---|
+| `mc.session_token` | `example-token` | `*XXX` |
+| `ozone.access_key` | `example-key` | `*XXX` |
+| `jdbc_url` | `jdbc:mysql://db.example.com:3306/example` | `*XXX` |
+| `uri` | `https://api.example.com/catalog` | 
`https://api.example.com/catalog` |
+| `iceberg.rest.uri` | 
`https://user:[email protected]/catalog?token=example&region=east` | 
`https://api.example.com/catalog?token=*XXX&region=east` |
+| `hosts` | `host1.example.com:9000,host2.example.com:9000` | 保持原值 |
+| `endpoint` | `https://api.example.com/?X-Amz-Signature=example` | `*XXX` |
+
+脱敏结果无法还原原始秘密。重建或修改 Catalog 时,应从配置管理或密钥管理系统获取原值。
+
+## 生效入口
+
+| 输出入口 | 行为 |
+|---|---|
+| `SHOW CATALOG`、`SHOW CREATE CATALOG`、`catalogs()` | 使用统一的属性名和值规则,原有隐藏属性继续省略。 
|
+| 审计日志中的 CREATE / ALTER CATALOG SQL | 按相同规则替换语句文本中的敏感属性。 |
+| 血缘元数据中的 Catalog 属性 | 省略属性名敏感的字段,对保留字段中的连接串和 URL 凭据进行清理。 |
+
+部分 resource、storage vault 和 job SQL 入口也使用开启脱敏的同一属性格式化逻辑。这不表示所有 resource proc 
结果、SDK 诊断、HTTP 响应或应用日志都使用这一逻辑。
+
+## 属性名规则
+
+Doris 对以下规则取并集:
+
+1. 内置敏感字段及连接器/文件系统的秘密字段别名。4.2.0 从内置注册表及字段敏感声明中收集;5.0 及后续版本还由已加载的 provider 
注册秘密别名及命名空间。
+2. 永久的连接串、原生凭据和 Hadoop 凭据名称规则。
+3. 下文介绍的可配置补充名称表达式。
+
+精确秘密字段名的比较不区分大小写。敏感名称优先于值解析:即使 `custom.password` 
中存放的是普通端点,只要名称匹配规则,其值仍会被遮蔽。属性名本身继续显示。
+
+### Catalog 与 Metastore 凭据
+
+下表列出代表性名称和特殊规则。连接器是否可用取决于 Doris 
版本;增加脱敏规则不会增加连接器支持。某个已声明秘密字段接受的别名适用相同保护;这不是“只有这些名称才敏感”的穷举名单。
+
+| Catalog 或服务 | 整值遮蔽规则 |
+|---|---|
+| JDBC | `password`、`jdbc.password`,以及 `jdbc_url` 等明确的 JDBC 连接属性。即使没有嵌入密码,JDBC 
连接串也会被隐藏。 |
+| MongoDB | `mongodb.uri`、`mongodb.password`。MongoDB URI 始终整值遮蔽,即使其中看不到密码。 |
+| MaxCompute | `mc.access_key`、`mc.secret_key`、`mc.session_token`。 |
+| Iceberg REST | 
`iceberg.rest.oauth2.token`、`iceberg.rest.oauth2.credential`、`iceberg.rest.access-key-id`、`iceberg.rest.secret-access-key`、`iceberg.rest.session-token`。REST
 服务 URI 使用下文地址规则。 |
+| Iceberg JDBC / Paimon JDBC | 
`iceberg.jdbc.password`、`paimon.jdbc.password`、`jdbc.password`,以及明确的 JDBC URI 
属性。共享别名 `uri` 的值以 `jdbc:` 开头时也整值遮蔽。 |
+| Paimon REST | 
`paimon.rest.dlf.access-key-id`、`paimon.rest.dlf.access-key-secret`,以及共享规则识别出的其他凭据名称。
 |
+| Glue / 保留的 DLF 属性 | Glue 别名,例如 
`glue.access_key`、`glue.secret_key`、`aws.glue.access-key`、`aws.glue.secret-key`、`aws.glue.session-token`;保留的
 DLF 别名,例如 
`dlf.access_key`、`dlf.secret_key`、`dlf.session_token`、`dlf.catalog.accessKeyId`、`dlf.catalog.accessKeySecret`、`dlf.catalog.sessionToken`、`dlf.catalog.securityToken`。保留脱敏规则不表示仍支持创建该
 metastore 类型。 |
+| Trino | `trino.` 后的名称包含 `key`、`secret`、`password`、`token`、`credential` 
任一子串即敏感,例如 `trino.keytab`、`trino.connection-password`。 |
+| Elasticsearch | `elasticsearch.password` 等已声明密码别名;端点值使用地址规则。 |
+| 其他 Catalog | 根据 metastore、文件系统和凭据属性,使用相同的全局规则。仅凭 Catalog 类型不会把所有属性都视为敏感。 |
+
+4.2.0 中,Trino 的命名空间规则对前缀之后的名称进行不区分大小写的子串匹配。例如,`trino.monkey` 也包含 
`key`,因此会被遮蔽。关闭补充表达式后,这一永久规则仍然生效。
+
+### 存储与原生 SDK 凭据
+
+| 属性族 | 敏感字段与代表性别名 |
+|---|---|
+| S3 | Access Key、Secret Key、Session 
Token:`s3.access_key`、`s3.secret_key`、`s3.session_token`、`s3.access-key-id`、`s3.secret-access-key`、`s3.session-token`,以及声明的裸名称和
 AWS 别名。 |
+| GCS | `gs.access_key`、`gs.secret_key`、`gs.session_token`,以及声明的 S3/AWS 别名。 |
+| Azure | 账户名/Access Key 别名、Account Key 和 OAuth Client Secret,包括 
`azure.account_name`、`azure.access_key`、`azure.account_key`、`azure.secret_key`、`azure.oauth2_client_secret`、`AZURE_ACCOUNT_KEY`、`AZURE_CLIENT_SECRET`。被明确保护的账户标识即使不是密码,也会被隐藏。
 |
+| OSS / OSS-HDFS | Access Key、Secret Key、Session/Security Token,包括 
`oss.access_key`、`oss.secret_key`、`oss.session_token`、`oss.hdfs.access_key`、`oss.hdfs.secret_key`、`oss.hdfs.security_token`、`oss.security_token`,以及
 `OSS_ACCESS_KEY`、`OSS_SECRET_KEY`、`OSS_SESSION_TOKEN`、`OSS_TOKEN`。 |
+| COS | 
`cos.access_key`、`cos.secret_key`、`cos.session_token`、`COS_ACCESS_KEY`、`COS_SECRET_KEY`、`COS_SESSION_TOKEN`、`COS_TOKEN`,以及声明的
 S3 别名。 |
+| OBS | 
`obs.access_key`、`obs.secret_key`、`obs.session_token`、`OBS_ACCESS_KEY`、`OBS_SECRET_KEY`、`OBS_SESSION_TOKEN`、`OBS_TOKEN`,以及声明的
 S3 别名。 |
+| MinIO | `minio.access_key`、`minio.secret_key`、`minio.session_token`,以及声明的 
S3/AWS 别名。 |
+| Ozone | `ozone.access_key`、`ozone.secret_key`、`ozone.session_token`,以及声明的 S3 
别名。 |
+| 原生 SDK 凭据 | 裸名称 `token`、`credential`、`credentials`,以及以 `.`, `_` 或 `-` 
分隔、最终部分为这些名称的属性,始终整值隐藏。这也覆盖保存在 Catalog 中的不带前缀的 SDK 属性。 |
+| 其他内置秘密 | `kerberos_keytab_content`、`bos_secret_accesskey`、AI API Key 
等名称继续受到保护。 |
+
+部分生成的存储别名,例如精确大写的 
`AWS_ACCESS_KEY`、`AWS_SECRET_KEY`、`AWS_TOKEN`,会从属性展示中省略,而不是返回掩码。不要依赖 SHOW 
输出枚举或备份全部存储属性。
+
+### Hadoop 凭据
+
+以下永久规则不区分大小写,也识别 `fs.` 前的命名空间,例如 `hadoop.fs.s3a.secret.key`:
+
+| 属性族 | 整值遮蔽规则 |
+|---|---|
+| `fs.s3.*`、`fs.s3a.*` | 
`access.key`、`secret.key`、`session.token`、`encryption.key`、`server-side-encryption.key`、`proxy.password`;也支持
 `bucket.<bucket>.` 作用域,包括带点的 bucket 名。 |
+| `fs.azure.*` | 
`account.key`、`sas`、`sas.fixed.token`、`account.oauth2.client.secret`、`account.oauth2.refresh.token`、`encryption.encoded.client-provided.key`,包括账户/容器后缀。
 |
+| `fs.adl.oauth2.*` | `credential`、`refresh.token`。 |
+| `fs.oss.*` | `accessKeyId`、`accessKeySecret`、`securityToken`。 |
+| `fs.cosn.*` | `secretId`、`secretKey`,包括 `userInfo.` 作用域。 |
+| `fs.obs.*` | `access.key`、`secret.key`、`session.token`、`security.token`。 |
+
+用于指定凭据文件的路径并不是文件内容。这些名称规则不会读取或扫描所引用的文件。
+
+## JDBC 连接串与地址值
+
+### 完整连接串
+
+名称以分隔的 JDBC URL/URI 部分结尾时整值遮蔽,例如 
`jdbc_url`、`jdbc.jdbc_url`、`iceberg.jdbc.uri`、`paimon.jdbc.uri`。`connectionString`、`connection_string`、`connection-string`、`connection.string`
 后缀也整值遮蔽。
+
+去掉首尾空白后,任何以 `jdbc:` 开头的值均整值遮蔽,与属性名和大小写无关。这包括放在 `uri` 中的 Oracle 等不透明驱动连接语法。
+
+### Host 与 URL
+
+Doris 会检查以分隔的 `uri`、`url`、`host`、`endpoint`、`address` 结尾的名称,包括复数形式。其他属性中符合层级 
URI 形态的值也会被检查,例如 `warehouse`。
+
+| 值 | 处理结果 |
+|---|---|
+| 普通 host 或 host:port、方括号 IPv6、逗号分隔的纯 host 列表 | 格式和数字端口合法时可见。端口范围为 0–65535。 |
+| 支持的 URL 中含普通认证 userinfo | 移除 userinfo,保留安全的主机、端口和路径。 |
+| 秘密查询参数 | 先解码参数名,再分类;遮蔽每个匹配值,包括重复参数。 |
+| URL fragment | 移除。 |
+| 授权签名 | 参数名包含 `signature`,或分隔的 `sig` / `sas` 时,整个 URL 隐藏。 |
+| 未知协议、不透明格式、非法 authority/端口/转义/参数名、URL 列表或含逗号的 URL、歧义 matrix 路径或嵌套连接串 | 
整值隐藏,解析失败时不会回退到原值输出。 |
+
+支持的协议为 
`http`、`https`、`thrift`、`hdfs`、`viewfs`、`file`、`s3`、`s3a`、`s3n`、`oss`、`cos`、`cosn`、`obs`、`gs`、`abfs`、`abfss`、`wasb`、`wasbs`。
+
+查询参数名既使用上述名称规则,也识别 
password/passwd/pwd、secret/token/credential、access/API/account/private/auth/application
 key 的常见拼写,以及 `authorization`、裸 `auth` 和裸 `key`。普通 URL 的查询参数分隔符统一为 `&`。非秘密名称下嵌套 
URL/JDBC 值,或不可靠的重复编码,都会导致整个地址隐藏。
+
+### 原生存储与本地路径
+
+- ABFS/WASB URI 中合法的 `container@host` 表示存储身份,而非登录信息。保留 
container;拒绝缺失、编码、非法或夹带密码的 container 形式。
+- 保留合法的含下划线 GCS bucket authority、使用默认 authority 的 HDFS/ViewFS 绝对位置,以及 ViewFS 
逻辑 mount 名。
+- 保留无歧义的绝对 POSIX 本地 `driver_url` 路径及绝对 `file:/...` / `file:///...` 
位置;有歧义的语法仍隐藏。这是展示规则,不改变驱动加载限制。
+- 仅对内部流式 S3 审计,Doris 按审计事件发出时生效的规则,先对每个已选文件脱敏,再组装转义后的批次 glob。保留用于区分对象 key 的字面 
`#`、百分号拼写、`+`、空格及非秘密查询形态后缀分隔符。含签名或不安全的已选位置使整个批次隐藏。普通 Catalog URI 或用户传入的 URI 
列表不能启用此内部模式。
+
+## 配置补充名称规则
+
+`datasource_sensitive_property_pattern` 是 FE 本地、可动态修改的字符串配置,默认值为:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+共享属性格式化逻辑用此正则对整个属性名进行不区分大小写的查找,也用于 URL 查询参数名。此表达式可覆盖 
`custom.password`、`clientSecret`、`custom.api-key` 等名称;名称含有这些词的非秘密操作设置也可能被隐藏。
+
+| 值 | 效果 |
+|---|---|
+| 默认表达式 | 在所有永久规则之外,增加常见凭据名称匹配。 |
+| 自定义表达式 | 仅替换补充表达式,内置及已注册秘密规则继续生效。 |
+| `(?!)` | 只关闭补充名称匹配。 |
+| 空表达式 | 匹配所有名称,可能使全部展示属性隐藏,或从血缘中省略。 |
+| 非法表达式 | 在启动、custom 配置加载或运行时更新时拒绝该配置,不回退到原值输出。 |
+
+管理员可以先检查部署构建是否暴露此配置:
+
+```sql
+SHOW FRONTEND CONFIG LIKE 'datasource_sensitive_property_pattern';
+```
+
+例如,关闭补充表达式后,`custom.password` 不再仅因这个名称而隐藏;内置的 `password`、原生 `token` 及明确 
JDBC/Hadoop 规则仍然生效。
+
+如果没有匹配的配置行,该构建不提供此补充正则。不要仅根据版本大类推断是否具备完整规则。
+
+在保留默认匹配的基础上,为所有当前 FE 增加 `custom.pin`:
+
+```sql
+ADMIN SET ALL FRONTENDS CONFIG (
+    "datasource_sensitive_property_pattern" = 
"password|passwd|secret|token|credential|access[._-]?key|api[._-]?key|custom[.]pin"
+);
+```
+
+之后 `custom.pin` 显示为 `*XXX`。运行时 SQL 修改不会在重启后保留,应在每个 FE 的 `fe.conf` 
中配置同一表达式,或使用文档中的持久化配置机制;新加入的 FE 也需要相同配置。其他提供查询服务的 FE 使用不同表达式时,输出可能不同。
+
+参数说明见 [FE 
配置](../admin-manual/config/fe-config.md#datasource_sensitive_property_pattern)。示例用
 `[.]` 匹配字面点,避免 SQL 反斜线转义歧义。
+
+## 限制与最佳实践
+
+- 脱敏作用于支持的输出副本,不会加密 Catalog 元数据存储,也不会改变客户端使用的凭据。
+- SHOW 中隐藏的秘密无法从掩码中读回。轮换凭据时,应通过 ALTER CATALOG 设置真实的新值。
+- URL 的普通路径段和未识别的查询参数不会按秘密内容进行扫描;秘密放在其中时,可能保持原样。应避免把秘密放入路径,或将整个属性名加入补充规则以整值隐藏。
+- Catalog 注释和其他自由文本不会被通用秘密扫描。未知 SDK 
容器或不相关属性名下的任意值,不保证能够识别。应使用明确的凭据属性,并按需配置补充名称。
+- 以文档列出的输出入口为范围;自定义插件、外部 SDK 日志及其他 API 的输出应独立检查,再判断能否分享。
+- 所有提供查询服务的 FE 使用同一配置。升级或更换连接器后,用合成凭据核对 SHOW 及有代表性的审计/血缘输出。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
index 02fedfbfb7a..e7686417104 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
@@ -10,6 +10,10 @@
 
 该语句用于显示已存在是数据目录(catalog)属性
 
+## 属性脱敏
+
+统一脱敏规则计划在 Doris 4.2.0、5.0 及后续版本支持。敏感属性展示为 `*XXX`,部分内部属性直接省略;明确的 JDBC 
连接串整值遮蔽,普通 URI 按值清理 userinfo、秘密参数和签名。完整规则见 [Catalog 
属性脱敏](../../../lakehouse/catalog-property-masking.md)。下例使用此规则,不表示 4.0、4.1 或 3.x 
的行为。
+
 ## 语法
 
 ```sql
@@ -41,7 +45,7 @@ SHOW CATALOG <catalog_name>
    ```sql
    SHOW CATALOG test_mysql;
    ```
-   ```sql
+   ```text
    
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
    | Key            | Value                                                    
                                                                                
           |
    
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -49,7 +53,7 @@ SHOW CATALOG <catalog_name>
    | create_time    | 2025-02-17 17:21:13.099                                  
                                                                                
           |
    | driver_class   | com.mysql.cj.jdbc.Driver                                 
                                                                                
           |
    | driver_url     | mysql-connector-j-8.3.0.jar                              
                                                                                
           |
-   | jdbc_url       | jdbc:mysql://127.0.0.1:3306/db                           
                                                                                
           |
+   | jdbc_url       | *XXX                                                     
                                                                                
           |
    | password       | *XXX                                                     
                                                                                
           |
    | type           | jdbc                                                     
                                                                                
           |
    | use_meta_cache | true                                                     
                                                                                
           |
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
index 9e36bed4166..96cd774449b 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
@@ -10,6 +10,10 @@
 
 该语句查看 Doris 数据目录的创建语句。
 
+## 属性脱敏
+
+统一脱敏规则计划在 Doris 4.2.0、5.0 及后续版本支持。敏感属性展示为 `*XXX`,部分内部属性直接省略;明确的 JDBC 
连接串整值遮蔽,普通 URI 按值清理 userinfo、秘密参数和签名。完整规则见 [Catalog 
属性脱敏](../../../lakehouse/catalog-property-masking.md)。下例使用此规则,不表示 4.0、4.1 或 3.x 
的行为。 示例中的 `*XXX` 是实际脱敏标记,其他 `XXX` 是示例占位符。
+
 ## 语法
 
 ```sql
@@ -34,7 +38,7 @@ SHOW CREATE CATALOG <catalog_name>;
    ```sql
    SHOW CREATE CATALOG oracle;
    ```
-   ```sql
+   ```text
    
+---------+----------------------------------------------------------------------------------------------------------------------+
     | Catalog | CreateCatalog                                                  
                                                      |
     
+---------+----------------------------------------------------------------------------------------------------------------------+
@@ -43,7 +47,7 @@ SHOW CREATE CATALOG <catalog_name>;
     "user" = "XXX",
     "type" = "jdbc",
     "password" = "*XXX",
-    "jdbc_url" = "XXX",
+    "jdbc_url" = "*XXX",
     "driver_url" = "XXX",
     "driver_class" = "oracle.jdbc.driver.OracleDriver",
     "checksum" = "XXX"
diff --git a/sidebars.ts b/sidebars.ts
index c862ff21b3f..0902680dc5a 100644
--- a/sidebars.ts
+++ b/sidebars.ts
@@ -708,6 +708,7 @@ const sidebars: SidebarsConfig = {
                     label: 'Data Catalogs',
                     link: {type: 'doc', id: 'lakehouse/catalog-overview'},
                     items: [
+                        'lakehouse/catalog-property-masking',
                         {
                             type: 'category',
                             label: 'Hive Catalog',
diff --git a/versioned_docs/version-4.x/admin-manual/config/fe-config.md 
b/versioned_docs/version-4.x/admin-manual/config/fe-config.md
index 066a3e6f7c0..1e4ee269624 100644
--- a/versioned_docs/version-4.x/admin-manual/config/fe-config.md
+++ b/versioned_docs/version-4.x/admin-manual/config/fe-config.md
@@ -126,6 +126,23 @@ IsMutable:true
 
 The tryLock timeout configuration of catalog lock.  Normally it does not need 
to change, unless you need to test something.
 
+#### `datasource_sensitive_property_pattern`
+
+Planned for Doris 4.2.0 and for 5.0 and later releases. Not supported in 4.0, 
4.1 or 3.x.
+
+- Type: string
+- IsMutable: true
+- MasterOnly: false (FE-local)
+- Default:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+A case-insensitive regex searched in data-source property names and URL query 
names when masking supported output. Its matches are combined with built-in and 
registered secret rules. `(?!)` disables only this supplemental expression; an 
empty expression matches every name. Invalid expressions are rejected during 
startup, custom configuration loading and runtime updates.
+
+Apply the same setting to every serving FE. Runtime SQL changes are not 
persistent; use `fe.conf` or a documented persistent configuration mechanism 
for restarts and new FEs. See [Catalog Property 
Masking](../../lakehouse/catalog-property-masking.md#configure-additional-names)
 for examples, scope and URI rules.
+
 #### `enable_bdbje_debug_mode`
 
 Default:false
diff --git a/versioned_docs/version-4.x/lakehouse/catalog-overview.md 
b/versioned_docs/version-4.x/lakehouse/catalog-overview.md
index 088f81ab17d..0eda7c86302 100644
--- a/versioned_docs/version-4.x/lakehouse/catalog-overview.md
+++ b/versioned_docs/version-4.x/lakehouse/catalog-overview.md
@@ -27,6 +27,10 @@ Data catalogs are primarily applicable to the following 
three types of scenarios
 
 This article uses [Iceberg Catalog](./catalogs/iceberg-catalog) as an example 
to introduce the basic operations of data catalogs. For detailed introductions 
to different data catalogs, please refer to the corresponding data catalog 
documentation.
 
+## Sensitive Property Masking
+
+The shared Catalog property masking policy is planned for Doris 4.2.0 and for 
5.0 and later releases. Passwords, access keys, tokens, JDBC strings and URL 
credentials are masked in supported display, audit and lineage paths; runtime 
connection values are unchanged. See [Catalog Property 
Masking](./catalog-property-masking.md) for the rules, version differences, 
configuration and limitations.
+
 ## Creating a Data Catalog
 
 Create an Iceberg Catalog using the `CREATE CATALOG` statement.
diff --git a/versioned_docs/version-4.x/lakehouse/catalog-property-masking.md 
b/versioned_docs/version-4.x/lakehouse/catalog-property-masking.md
new file mode 100644
index 00000000000..e3e2900c8b8
--- /dev/null
+++ b/versioned_docs/version-4.x/lakehouse/catalog-property-masking.md
@@ -0,0 +1,194 @@
+---
+{
+    "title": "Catalog Property Masking",
+    "language": "en",
+    "description": "Understand how Doris masks Catalog credentials, JDBC 
strings, URLs, SDK and Hadoop properties in SHOW output, audit SQL and 
lineage.",
+    "keywords": ["catalog property masking", "catalog credentials", "SHOW 
CATALOG", "JDBC URL", "datasource_sensitive_property_pattern"],
+    "doc_type": "reference"
+}
+---
+
+Doris masks sensitive external Catalog properties in supported display and 
audit paths. Masking replaces a whole value or a sensitive URL parameter with 
`*XXX`; some internal properties are omitted entirely. Connectors continue 
using the original values.
+
+:::info Version scope
+This policy and `datasource_sensitive_property_pattern` are planned for Doris 
4.2.0 and for 5.0 and later releases. In the 4.x documentation, this feature 
applies starting with 4.2.0. Do not assume the complete policy is available in 
4.0, 4.1 or 3.x; older releases may mask individual fields without implementing 
all of these rules.
+:::
+
+## Quick Start
+
+For an existing Catalog that you have permission to view:
+
+```sql
+SHOW CATALOG example_catalog;
+SHOW CREATE CATALOG example_catalog;
+SELECT `Property`, `Value`
+FROM catalogs()
+WHERE CatalogName = 'example_catalog'
+ORDER BY `Property`;
+```
+
+The following mappings illustrate the output policy; they do not require a 
connection to the example endpoints:
+
+| Property | Original value | Displayed value |
+|---|---|---|
+| `mc.session_token` | `example-token` | `*XXX` |
+| `ozone.access_key` | `example-key` | `*XXX` |
+| `jdbc_url` | `jdbc:mysql://db.example.com:3306/example` | `*XXX` |
+| `uri` | `https://api.example.com/catalog` | 
`https://api.example.com/catalog` |
+| `iceberg.rest.uri` | 
`https://user:[email protected]/catalog?token=example&region=east` | 
`https://api.example.com/catalog?token=*XXX&region=east` |
+| `hosts` | `host1.example.com:9000,host2.example.com:9000` | Unchanged |
+| `endpoint` | `https://api.example.com/?X-Amz-Signature=example` | `*XXX` |
+
+Masked output cannot recover the original secret. Use your configuration 
management or secret store when recreating or changing a Catalog.
+
+## Where Masking Applies
+
+| Output | Behavior |
+|---|---|
+| `SHOW CATALOG`, `SHOW CREATE CATALOG`, `catalogs()` | Apply the shared 
property-name and value rules. Hidden properties remain omitted. |
+| CREATE / ALTER CATALOG SQL in the audit log | Replace sensitive properties 
in the statement text using the same rules. |
+| Catalog properties in lineage metadata | Omit properties whose names are 
sensitive; sanitize retained properties that contain connection strings or URL 
credentials. |
+
+The same masking-enabled property renderer is used by some resource, 
storage-vault and job SQL paths. This does not mean that every resource proc 
result, SDK diagnostic, HTTP response or application log uses this renderer.
+
+## Property Name Rules
+
+Doris takes the union of:
+
+1. Built-in sensitive names and connector/filesystem secret aliases. In 4.2.0, 
these come from the built-in registry and sensitive field declarations; in 5.0 
and later, loaded providers also register secret aliases and namespaces.
+2. Permanent connection-string, native credential and Hadoop credential name 
rules.
+3. The configurable supplemental name expression described below.
+
+Exact secret names are compared case-insensitively. A sensitive name takes 
precedence over value parsing: a harmless-looking endpoint stored under 
`custom.password` is still hidden when that name matches the policy. Property 
names themselves remain visible.
+
+### Catalog and Metastore Credentials
+
+The table lists representative names and special rules. Connector availability 
depends on the Doris version; a masking rule does not add connector support. 
Accepted aliases of a declared secret field follow the same protection; this is 
not a list of the only names that can be sensitive.
+
+| Catalog or service | Whole-value masking |
+|---|---|
+| JDBC | `password`, `jdbc.password`, and explicit JDBC connection properties 
such as `jdbc_url`. An embedded password is not required for a JDBC connection 
string to be hidden. |
+| MongoDB | `mongodb.uri` and `mongodb.password`. The MongoDB URI is always 
hidden, including when it has no visible password. |
+| MaxCompute | `mc.access_key`, `mc.secret_key`, `mc.session_token`. |
+| Iceberg REST | `iceberg.rest.oauth2.token`, 
`iceberg.rest.oauth2.credential`, `iceberg.rest.access-key-id`, 
`iceberg.rest.secret-access-key`, `iceberg.rest.session-token`. REST service 
URIs use the address rules below. |
+| Iceberg JDBC / Paimon JDBC | `iceberg.jdbc.password`, 
`paimon.jdbc.password`, `jdbc.password`, and explicit JDBC URI properties. The 
shared `uri` alias is hidden when its value starts with `jdbc:`. |
+| Paimon REST | `paimon.rest.dlf.access-key-id`, 
`paimon.rest.dlf.access-key-secret`, plus credential names recognized by the 
shared rules. |
+| Glue / retained DLF properties | Glue aliases such as `glue.access_key`, 
`glue.secret_key`, `aws.glue.access-key`, `aws.glue.secret-key`, 
`aws.glue.session-token`; retained DLF aliases such as `dlf.access_key`, 
`dlf.secret_key`, `dlf.session_token`, `dlf.catalog.accessKeyId`, 
`dlf.catalog.accessKeySecret`, `dlf.catalog.sessionToken`, 
`dlf.catalog.securityToken`. Retaining a masking rule does not imply support 
for creating that metastore type. |
+| Trino | Under `trino.`, a name containing `key`, `secret`, `password`, 
`token` or `credential` is sensitive, for example `trino.keytab` or 
`trino.connection-password`. |
+| Elasticsearch | Declared password aliases such as `elasticsearch.password`; 
endpoint values use the address rules. |
+| Other Catalogs | The same global policy applies according to their 
metastore, filesystem and credential properties. A Catalog type alone does not 
make every property sensitive. |
+
+In 4.2.0, the Trino namespace rule performs case-insensitive substring 
matching in the name after the prefix. For example, `trino.monkey` also 
contains `key` and is masked. This permanent rule still applies when the 
supplemental expression is disabled.
+
+### Storage and Native SDK Credentials
+
+| Property family | Sensitive fields and representative aliases |
+|---|---|
+| S3 | Access keys, secret keys and session tokens: `s3.access_key`, 
`s3.secret_key`, `s3.session_token`, `s3.access-key-id`, 
`s3.secret-access-key`, `s3.session-token`, and declared bare/AWS aliases. |
+| GCS | `gs.access_key`, `gs.secret_key`, `gs.session_token`, and their 
declared S3/AWS aliases. |
+| Azure | Account-name/access-key aliases, account keys and OAuth client 
secrets, including `azure.account_name`, `azure.access_key`, 
`azure.account_key`, `azure.secret_key`, `azure.oauth2_client_secret`, 
`AZURE_ACCOUNT_KEY`, `AZURE_CLIENT_SECRET`. An explicitly protected account 
identifier remains hidden even when it is not a password. |
+| OSS / OSS-HDFS | Access keys, secret keys, session/security tokens, 
including `oss.access_key`, `oss.secret_key`, `oss.session_token`, 
`oss.hdfs.access_key`, `oss.hdfs.secret_key`, `oss.hdfs.security_token`, 
`oss.security_token`, plus `OSS_ACCESS_KEY`, `OSS_SECRET_KEY`, 
`OSS_SESSION_TOKEN`, `OSS_TOKEN`. |
+| COS | `cos.access_key`, `cos.secret_key`, `cos.session_token`, 
`COS_ACCESS_KEY`, `COS_SECRET_KEY`, `COS_SESSION_TOKEN`, `COS_TOKEN`, and 
declared S3 aliases. |
+| OBS | `obs.access_key`, `obs.secret_key`, `obs.session_token`, 
`OBS_ACCESS_KEY`, `OBS_SECRET_KEY`, `OBS_SESSION_TOKEN`, `OBS_TOKEN`, and 
declared S3 aliases. |
+| MinIO | `minio.access_key`, `minio.secret_key`, `minio.session_token`, and 
declared S3/AWS aliases. |
+| Ozone | `ozone.access_key`, `ozone.secret_key`, `ozone.session_token`, and 
declared S3 aliases. |
+| Native SDK credentials | Bare `token`, `credential`, `credentials`, or names 
ending in one of these components after `.`, `_` or `-`, are always hidden. 
This also covers unprefixed SDK properties retained in a Catalog. |
+| Other built-in secrets | Names such as `kerberos_keytab_content`, 
`bos_secret_accesskey` and AI API-key properties remain protected. |
+
+Some generated storage aliases, such as exact uppercase `AWS_ACCESS_KEY`, 
`AWS_SECRET_KEY` and `AWS_TOKEN`, are omitted from printable maps rather than 
returned with a mask. Do not depend on SHOW output to enumerate or back up 
every stored property.
+
+### Hadoop Credentials
+
+These permanent rules are case-insensitive and also recognize a namespace 
before `fs.`, such as `hadoop.fs.s3a.secret.key`:
+
+| Family | Whole-value masking |
+|---|---|
+| `fs.s3.*`, `fs.s3a.*` | `access.key`, `secret.key`, `session.token`, 
`encryption.key`, `server-side-encryption.key`, `proxy.password`; also 
`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 the `userInfo.` scope. |
+| `fs.obs.*` | `access.key`, `secret.key`, `session.token`, `security.token`. |
+
+A file path naming a credential file is not the file's contents. These name 
rules do not read or scan the referenced file.
+
+## JDBC Strings and Address Values
+
+### Whole Connection Strings
+
+Names ending in a delimited JDBC URL/URI component, such as `jdbc_url`, 
`jdbc.jdbc_url`, `iceberg.jdbc.uri` or `paimon.jdbc.uri`, are entirely hidden. 
The suffixes `connectionString`, `connection_string`, `connection-string` and 
`connection.string` are also hidden.
+
+Any trimmed value starting with `jdbc:` is entirely hidden, regardless of its 
property name or case. This covers opaque driver syntaxes such as Oracle 
connection strings under `uri`.
+
+### Hosts and URLs
+
+Doris examines names ending in a delimited `uri`, `url`, `host`, `endpoint` or 
`address`, including their plural forms. Hierarchical URI-shaped values are 
also examined under other property names, such as `warehouse`.
+
+| Value | Result |
+|---|---|
+| Plain host or host:port, bracketed IPv6, comma-separated plain hosts | 
Visible when the form and numeric port are valid. Ports must be in 0–65535. |
+| Supported URL with ordinary authentication userinfo | Remove userinfo; 
preserve the safe host, port and path. |
+| Secret query parameters | Decode names before classification; mask every 
matching value, including duplicate parameters. |
+| URL fragment | Remove it. |
+| Authorization signature | Hide the entire URL when a parameter name contains 
`signature` or a delimited `sig` / `sas`. |
+| Unknown scheme, opaque format, malformed authority/port/escape/query name, 
URL list or a URL containing commas, ambiguous matrix path or nested connection 
string | Hide the entire value. There is no raw-value fallback when parsing 
fails. |
+
+Supported schemes are `http`, `https`, `thrift`, `hdfs`, `viewfs`, `file`, 
`s3`, `s3a`, `s3n`, `oss`, `cos`, `cosn`, `obs`, `gs`, `abfs`, `abfss`, `wasb` 
and `wasbs`.
+
+Query-name checks include the name rules above, plus password/passwd/pwd, 
secret/token/credential, access/API/account/private/auth/application-key 
spellings, `authorization`, bare `auth` and bare `key`. Ordinary URL query 
separators are normalized to `&`. Nested URL/JDBC values or unreliable repeated 
encoding cause the whole address to be hidden.
+
+### Native Storage and Local Paths
+
+- In ABFS/WASB URIs, a valid `container@host` identifies storage, rather than 
a login. Preserve the container; reject missing, encoded, malformed or 
password-bearing container forms.
+- Preserve valid GCS bucket authorities containing underscores, HDFS/ViewFS 
absolute locations with a default authority, and ViewFS logical mount names.
+- Preserve unambiguous absolute POSIX local `driver_url` paths and absolute 
`file:/...` / `file:///...` locations. Ambiguous syntax remains hidden. This is 
a display rule and does not change driver-loading restrictions.
+- For internal streaming S3 audit only, Doris sanitizes each selected file 
before assembling the escaped batch glob, using the policy effective when the 
audit event is emitted. It preserves literal `#`, percent spellings, `+`, 
spaces and non-secret query-shaped suffix separators that distinguish object 
keys. Signed or unsafe selected locations hide the whole batch. An ordinary 
Catalog URI or user-supplied URI list cannot enable this internal mode.
+
+## Configure Additional Names
+
+`datasource_sensitive_property_pattern` is an FE-local, mutable string 
configuration. Its default is:
+
+```text
+password|passwd|secret|token|credential|access[._-]?key|api[._-]?key
+```
+
+The shared property renderer searches the case-insensitive regex anywhere in a 
property name, including URL query parameter names. It covers names such as 
`custom.password`, `clientSecret` and `custom.api-key`. It can also hide 
non-secret operational settings whose names contain these words.
+
+| Value | Effect |
+|---|---|
+| Default expression | Add the common credential-name matches to all permanent 
rules. |
+| A custom expression | Replace only the supplemental expression; built-in and 
registered secret rules still apply. |
+| `(?!)` | Disable only supplemental name matching. |
+| Empty expression | Match every name, potentially hiding all displayed 
properties or omitting them from lineage. |
+| Invalid expression | Reject the configuration during startup, custom-config 
loading or runtime update; do not fall back to printing raw values. |
+
+An administrator can first check whether the deployed build exposes the 
configuration:
+
+```sql
+SHOW FRONTEND CONFIG LIKE 'datasource_sensitive_property_pattern';
+```
+
+For example, after disabling the supplemental expression, `custom.password` is 
no longer hidden solely because of that name. Built-in `password`, native 
`token`, and explicit JDBC/Hadoop rules still apply.
+
+If it returns no matching configuration, this build does not expose the 
supplemental regex. Do not infer the full policy from the version family alone.
+
+To add `custom.pin` while retaining the default matches on all current FEs:
+
+```sql
+ADMIN SET ALL FRONTENDS CONFIG (
+    "datasource_sensitive_property_pattern" = 
"password|passwd|secret|token|credential|access[._-]?key|api[._-]?key|custom[.]pin"
+);
+```
+
+`custom.pin` then displays as `*XXX`. Runtime SQL updates do not persist 
through a restart. Configure the same expression in `fe.conf` on every FE, or 
use the documented persistent configuration mechanism. Newly added FEs also 
need the same setting. A different expression on another serving FE can produce 
different output.
+
+See [FE 
Configuration](../admin-manual/config/fe-config.md#datasource_sensitive_property_pattern)
 for the parameter reference. Using `[.]` in examples avoids SQL 
backslash-escaping ambiguity when matching a literal dot.
+
+## Limits and Best Practices
+
+- Masking affects supported output copies. It does not encrypt stored Catalog 
metadata or change the credentials used by a client.
+- A secret hidden in SHOW cannot be read back from the masked value. Set the 
original replacement value through ALTER CATALOG when rotating credentials.
+- Ordinary URL path segments and unrecognized query parameters are not scanned 
for secret content. A secret placed there may remain visible. Avoid embedding 
secrets in paths, or add the entire property name to the supplemental rule to 
hide its whole value.
+- Catalog comments and other free text are not generally secret-scanned. 
Unknown SDK containers or arbitrary values under unrelated names are not 
guaranteed to be recognized. Use explicit credential properties and configure 
additional names when necessary.
+- Scope the policy to the documented output path; independently inspect custom 
plugins, external SDK logs and other APIs before treating their output as safe 
to share.
+- Apply the same configuration to all serving FEs. Review SHOW output and 
representative audit/lineage output after an upgrade or connector change, using 
synthetic credentials for verification.
diff --git 
a/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md 
b/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
index 09a0f390b88..19b2166af57 100644
--- 
a/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
+++ 
b/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CATALOG.md
@@ -10,6 +10,10 @@
 
 Shows properties of specified catalog
 
+## Property Masking
+
+The shared masking policy is planned for Doris 4.2.0 and for 5.0 and later 
releases. Sensitive properties display as `*XXX`; some internal properties are 
omitted. Explicit JDBC connection strings are entirely hidden, while ordinary 
URIs are sanitized according to their values. See [Catalog property masking 
rules](../../../lakehouse/catalog-property-masking.md). The example below uses 
this policy; it does not describe 4.0, 4.1 or 3.x.
+
 ## Syntax
 
 ```sql
@@ -43,7 +47,7 @@ The name of the catalog to be displayed.
    ```sql
    show catalog test_mysql;
    ```
-   ```sql
+   ```text
       
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
    | Key            | Value                                                    
                                                                                
           |
    
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -51,7 +55,7 @@ The name of the catalog to be displayed.
    | create_time    | 2025-02-17 17:21:13.099                                  
                                                                                
           |
    | driver_class   | com.mysql.cj.jdbc.Driver                                 
                                                                                
           |
    | driver_url     | mysql-connector-j-8.3.0.jar                              
                                                                                
           |
-   | jdbc_url       | jdbc:mysql://127.0.0.1:3306/db                           
                                                                                
           |
+   | jdbc_url       | *XXX                                                     
                                                                                
           |
    | password       | *XXX                                                     
                                                                                
           |
    | type           | jdbc                                                     
                                                                                
           |
    | use_meta_cache | true                                                     
                                                                                
           |
diff --git 
a/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
 
b/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
index 7627d8dc103..2bf72bd580f 100644
--- 
a/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
+++ 
b/versioned_docs/version-4.x/sql-manual/sql-statements/catalog/SHOW-CREATE-CATALOG.md
@@ -10,6 +10,10 @@
 
 This statement shows the creating statement of a doris catalog.
 
+## Property Masking
+
+The shared masking policy is planned for Doris 4.2.0 and for 5.0 and later 
releases. Sensitive properties display as `*XXX`; some internal properties are 
omitted. Explicit JDBC connection strings are entirely hidden, while ordinary 
URIs are sanitized according to their values. See [Catalog property masking 
rules](../../../lakehouse/catalog-property-masking.md). The example below uses 
this policy; it does not describe 4.0, 4.1 or 3.x. In the example, `*XXX` is a 
masking marker; other `XXX [...]
+
 ## Syntax
 
 ```sql
@@ -35,7 +39,7 @@ The name of the catalog whose creation statement needs to be 
viewed.
 ```sql
    SHOW CREATE CATALOG oracle;
    ```
-   ```sql
+   ```text
    
+---------+----------------------------------------------------------------------------------------------------------------------+
     | Catalog | CreateCatalog                                                  
                                                      |
     
+---------+----------------------------------------------------------------------------------------------------------------------+
@@ -44,7 +48,7 @@ The name of the catalog whose creation statement needs to be 
viewed.
     "user" = "XXX",
     "type" = "jdbc",
     "password" = "*XXX",
-    "jdbc_url" = "XXX",
+    "jdbc_url" = "*XXX",
     "driver_url" = "XXX",
     "driver_class" = "oracle.jdbc.driver.OracleDriver",
     "checksum" = "XXX"
diff --git a/versioned_sidebars/version-4.x-sidebars.json 
b/versioned_sidebars/version-4.x-sidebars.json
index e08dd978c7e..86bfaa35e2f 100644
--- a/versioned_sidebars/version-4.x-sidebars.json
+++ b/versioned_sidebars/version-4.x-sidebars.json
@@ -793,6 +793,7 @@
                 "id": "lakehouse/catalog-overview"
               },
               "items": [
+                "lakehouse/catalog-property-masking",
                 {
                   "type": "category",
                   "label": "Hive Catalog",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to