Repository navigation
config: fix secret parameters written with their alias not being masked - #5694
Closed
Watson1978 wants to merge 1 commit into
Closed
Watson1978 wants to merge 1 commit into
Watson1978 wants to merge 1 commit into
Conversation
Element#secret_param? looked up only the parameter name. So a secret parameter written with its alias was shown in plain text, for example in the "using configuration file" log at startup and in the "config error in:" log. Look up the alias too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Contributor
Author
|
I moved this fix into #5693, because the fixes depend on each other. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue(s) this PR fixes:
Fixes #
What this PR does / why we need it:
A secret parameter written with its alias is not masked, because
Element#secret_param?looks up only the parameter name. For example, withconfig_param :token, :string, secret: true, alias: :legacy_token, the value oflegacy_tokenappears in plain text in theusing configuration filelog at startup and in theconfig error in:log. This PR looks up the alias too. It was found in the review of #5693.Docs Changes:
N/A
Release Note:
config: fix secret parameters written with their alias not being masked
🤖 Generated with Claude Code