Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide slim symbol values prefixed with SECRET_ on the slim runner side #1333

Merged
merged 5 commits into from
Oct 6, 2021

Conversation

tcnh
Copy link
Contributor

@tcnh tcnh commented Aug 25, 2021

This PR replaces slim symbol for display in test results if they are prefixed with $SECRET_ with $_SECRET_symbolName->[*****]

This is useful to prevent unintentional display of secrets (such as passwords, api keys, etc) when using Slim. Ofcourse it's still easily possible to display these values by echo-ing them through a fixture method, but it helps keeping unwanted info out of test results and dashboards.

@fhoeben
Copy link
Collaborator

fhoeben commented Aug 30, 2021

Can you add some tests?
We should check that: both secret and normal symbol values are still passed to fixtures, normal symbols are still shown, secret symbols are not shown

@fhoeben fhoeben merged commit 2945135 into unclebob:master Oct 6, 2021
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