Add the docs for secrets masking + set default masks for AWS#381
Merged
Conversation
arm4b
commented
Dec 21, 2022
Comment on lines
+59
to
+62
| - # see: https://regex101.com/r/44Ldz7/1 | ||
| # looks for `AWS_ACCESS_KEY_ID={string}` | ||
| search: (AWS_ACCESS_KEY_ID=)(\S+) | ||
| replace: \1******* |
Contributor
Author
There was a problem hiding this comment.
Tested the regex rules for AWS locally.
But it's also interesting that you can have unit tests and examples for the regex rule at https://regex101.com/r/snz1j6/1
Contributor
There was a problem hiding this comment.
I would move that URL to the top of the regex comments, or to the bottom, so that every regex keeps the same style of #comment / replace
Contributor
Author
LeoDiazL
approved these changes
Dec 21, 2022
Contributor
LeoDiazL
left a comment
There was a problem hiding this comment.
Just to be consistent, I would use
# comment
replace
# comment
replace
We could add a bigger headder on top of the replacements with the URL and some info if needed. Or at the bottom.
Comment on lines
+59
to
+62
| - # see: https://regex101.com/r/44Ldz7/1 | ||
| # looks for `AWS_ACCESS_KEY_ID={string}` | ||
| search: (AWS_ACCESS_KEY_ID=)(\S+) | ||
| replace: \1******* |
Contributor
There was a problem hiding this comment.
I would move that URL to the top of the regex comments, or to the bottom, so that every regex keeps the same style of #comment / replace
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.

Closes #374
Also adds AWS secret ENVs to the default config, so it's secure by default.