Skip to content

Fix auth token leakage in CodeArtifact login error messages - #10586

Open
6065meet wants to merge 1 commit into
aws:developfrom
6065meet:meet/codeart_fix
Open

Fix auth token leakage in CodeArtifact login error messages#10586
6065meet wants to merge 1 commit into
aws:developfrom
6065meet:meet/codeart_fix

Conversation

@6065meet

Copy link
Copy Markdown

The CommandFailedError class redacted the auth token from the main error message but not from stderr output of failed commands. This could expose the auth token in error messages when subprocess commands fail. Add token redaction to stderr and add a test to verify the token is masked in all error output.

*Issue #10575

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The CommandFailedError class redacted the auth token from the main
error message but not from stderr output of failed commands. This
could expose the auth token in error messages when subprocess
commands fail. Add token redaction to stderr and add a test to
verify the token is masked in all error output.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@6065meet
6065meet requested a review from a team as a code owner August 19, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant