Skip to content

[VL] Fix password leak in debug-mode config logging - #12606

Merged
zhouyuan merged 2 commits into
apache:mainfrom
zhouyuan:wip_improve_redaction_print
Jul 24, 2026
Merged

[VL] Fix password leak in debug-mode config logging#12606
zhouyuan merged 2 commits into
apache:mainfrom
zhouyuan:wip_improve_redaction_print

Conversation

@zhouyuan

Copy link
Copy Markdown
Member

What changes are proposed in this pull request?

This patch improved the redaction behavior in printConfig() by adding a default pattern

How was this patch tested?

new test added

Was this patch authored or co-authored using generative AI tooling?

IBM Bob

printConfig() already had redaction logic keyed on spark.redaction.regex,
but when that config key was absent (the common case) getRedactionRegex()
returned std::nullopt and every config value — including passwords,
tokens, and secrets — was logged in plain text.

This patch adds a hard-coded default redaction pattern to guard on this case

Signed-off-by: Yuan <yuanzhou@apache.org>
Copilot AI review requested due to automatic review settings July 23, 2026 08:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the VELOX label Jul 23, 2026
Signed-off-by: Yuan <yuanzhou@apache.org>
Copilot AI review requested due to automatic review settings July 23, 2026 09:38
@zhouyuan
zhouyuan force-pushed the wip_improve_redaction_print branch from 7ba17f2 to 3c6c1c5 Compare July 23, 2026 09:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zhouyuan
zhouyuan requested a review from jackylee-ch July 23, 2026 09:41

@rui-mo rui-mo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@zhouyuan
zhouyuan merged commit 63bd7c2 into apache:main Jul 24, 2026
92 of 93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants