hello-stephen commented on PR #70924:
URL: https://github.com/apache/doris/pull/70924#issuecomment-7421246258
<!-- qe-pr-pick:v1:b5e14e6c45332f1c43c7b995862eaf1ac2d39f98 -->
**Doris pick review**
- PR: #70924
- Patch: `455770c709cd372a42477d14285de0c1c35506a6`
- Classification: `bugfix` (high)
- Why: Fixes credential leakage where formatted FE SQL logs kept URL
credentials in non-secret property values because preserve-format masking only
checked property names.
- Evidence:
- title prefix [fix](fe) and body PR Type: Bugfix
- diff modifies LogicalPlanBuilderForEncryption.visitPropertyItemList and
NeedAuditEncryption.maskSql; no new config option or interface
- body states formatted SQL logs retain credentials such as driver_url
tokens although the display policy masks them
- adds unit tests and regression suite test_sql_log_url_masking covering
INFO/DEBUG log paths
- Mode: `not_applicable` - the problem does not exist on dev/4.1.x, dev/4.2.x
- Labels expected: `none`
- Labels applied: `none`
- Unaffected branches: `dev/4.1.x,dev/4.2.x`
**Fields**
| Field | Meaning |
|---|---|
| `candidate` | cherry-picks onto the branch without conflicts (same check
as the upstream auto-pick). |
| `conflict` | the cherry-pick reports conflicts (`null` means the check
failed). |
| `affected` | `false` means the problem this fix addresses does not exist
on that branch, so no pick label is applied there. |
| `feature` | the deterministic probe behind `affected` (`present` / `weak`
/ `absent` / `unknown`). |
| `gate` | for 4.1, `true` means `usercase` or `p0_*` material requires
human review. |
| `pick` | `official` = apply branch labels; `comment-only` = status only,
no label. |
**dev/3.1.x / branch-3.1**
| candidate | conflict | affected | feature | gate | pick |
|---|---|---|---|---|---|
| false | true | true | present | false | comment-only |
**dev/4.0.x / branch-4.0**
| candidate | conflict | affected | feature | gate | pick |
|---|---|---|---|---|---|
| false | true | true | present | false | comment-only |
**dev/4.1.x / branch-4.1**
| candidate | conflict | affected | feature | gate | pick |
|---|---|---|---|---|---|
| false | true | false | present | false | official |
> The problem does not exist on `dev/4.1.x`: branch-4.1 has no
preserve-format masking path: LogicalPlanBuilderForEncryption and
NeedAuditEncryption only expose geneEncryptionSQL, and DatasourcePrintableMap
does not exist, so the formatted-log leak cannot occur. No pick label is
applied there.
**dev/4.2.x / branch-4.2**
| candidate | conflict | affected | feature | gate | pick |
|---|---|---|---|---|---|
| false | true | false | present | false | official |
> The problem does not exist on `dev/4.2.x`: branch-4.2 only has
geneEncryptionSQL and its PrintableMap already redacts URL values through
redactProperty, while the preserve-format maskSql path introduced by #69467 is
absent. No pick label is applied there.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]