buerokratt / POC-DMR.Cross-functional-requirements

Cross-functional requirements to take into account when developing or planning to develop Bürokratt's custom base components
MIT License
1 stars 1 forks source link

Cross: Implement Secret Detection as a Git Commit Hook #17

Closed guypritchard closed 2 years ago

guypritchard commented 2 years ago

AS A Developer I WANT TO ensure that secrets are not committed to a public repo under any circumstances SO THAT we can avoid resources being exposed through their access keys if they were to be committed in PRs or commit history for those PRs.

guypritchard commented 2 years ago

We're proposing the use of a means of setting up a git commit hook Which in turn relies on a tool called detect-secrets: https://github.com/yelp/detect-secrets

We may wish to fork the pre-commit-hooks) so that the script remains unchanged and not modified in an unexpected way for any reason.

shelabd commented 2 years ago

Adele and Guy to discuss

guypritchard commented 2 years ago

I've got a PR out for an approach we can replicate in other repos. If we're all happy with that approach, we can scale that out.

martinkearn commented 2 years ago

@guypritchard ... I appreciate you are away, but can you point to the PR mentioned above when you get the chance? I'll do what I can to help it close in the sprint.

guypritchard commented 2 years ago

https://github.com/buerokratt/CentOps/pull/17 is the PR - if people are happy with this, we can replicate this in other repos. We could do that replication in another task, perhaps?