Skip to content

Mask AWS and Azure credentials in debug mode#632

Merged
adrianriobo merged 1 commit into
redhat-developer:mainfrom
ppitonak:mask_aws_creds
Oct 8, 2025
Merged

Mask AWS and Azure credentials in debug mode#632
adrianriobo merged 1 commit into
redhat-developer:mainfrom
ppitonak:mask_aws_creds

Conversation

@ppitonak
Copy link
Copy Markdown
Collaborator

@ppitonak ppitonak commented Oct 8, 2025

Previously when debug mode was active, AWS credentials were displayed which is very insecure because Tekton logs could be archived for long time.

Now only the first and last character of sensitive credentials are displayed.

@ppitonak
Copy link
Copy Markdown
Collaborator Author

ppitonak commented Oct 8, 2025

Tested with RHEL.

@adrianriobo
Copy link
Copy Markdown
Collaborator

Would you mind to add this to azure tasks as well....if not this is something we will face in the future too ...

@ppitonak
Copy link
Copy Markdown
Collaborator Author

ppitonak commented Oct 8, 2025

I pushed the updates also for Azure

@ppitonak ppitonak changed the title Mask AWS credentials in debug mode Mask AWS and Azure credentials in debug mode Oct 8, 2025
Previously when debug mode was active, AWS and Azure credentials were
displayed which is very insecure because Tekton logs could be archived
for long time.

Now only the first and last character of sensitive credentials are
displayed.

Signed-off-by: Pavol Pitonak <ppitonak@redhat.com>
Copy link
Copy Markdown
Collaborator

@adrianriobo adrianriobo left a comment

Choose a reason for hiding this comment

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

LGTM

@adrianriobo adrianriobo merged commit bd048fb into redhat-developer:main Oct 8, 2025
7 checks passed
@ppitonak ppitonak deleted the mask_aws_creds branch October 8, 2025 14:48
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.

2 participants