Repository navigation
Mask st2-api-key and blacklisted keys in logs and execution API responses - #6427
Open
farhanmallik05 wants to merge 1 commit into
Open
farhanmallik05 wants to merge 1 commit into
farhanmallik05 wants to merge 1 commit into
Conversation
|
|
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
…nses Add st2-api-key and x-auth-token to MASKED_ATTRIBUTES_BLACKLIST, make log and query-parameter blacklist matching case-insensitive, mark core.http auth as secret, and apply blacklisted key masking to ActionExecutionDB and LiveActionDB parameters. Fixes StackStorm#5804
farhanmallik05
force-pushed
the
fix-mask-st2-api-key
branch
from
December 2, 2026 19:41
c68c0be to
54b75f3
Compare
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.
Fixes #5804.
When passing
st2-api-keyorx-auth-tokenincore.httpheaders (or usingauth), values leaked in API execution responses and mixed-case headers could bypass log masking.Changes:
st2-api-keyandx-auth-tokentoMASKED_ATTRIBUTES_BLACKLIST(st2common/constants/secrets.py).mask_blacklisted_value/mask_blacklisted_parametersinst2common/util/secrets.pyso bothst2common/logging/formatters.pyandActionExecutionDB/LiveActionDB.mask_secretsmask blacklisted keys case-insensitively across nested dicts/lists (honoring[log].mask_secrets_blacklist).st2common/middleware/logging.py.authassecret: trueincontrib/core/actions/http.yaml.CHANGELOG.rst.