cloud-gov / caulking

Prevent leaks with gitleaks, and use tests to validate
Other
32 stars 11 forks source link

add exceptions for generic credential rulefor Elasticsearch/Opensea… #86

Closed markdboyd closed 10 months ago

markdboyd commented 10 months ago

Changes proposed in this pull request:

The generic-credential rule was flagging lines as containing secrets like these due to the words keyword, key, or hostname:

https://github.com/cloud-gov/logsearch-for-cloudfoundry/blob/develop/jobs/upload-kibana-objects/templates/kibana-objects/index-pattern/logs.json.erb#L221 https://github.com/cloud-gov/logsearch-for-cloudfoundry/blob/develop/jobs/upload-kibana-objects/templates/kibana-objects/search/app-all-errors.json.erb#L29 https://github.com/cloud-gov/logsearch-for-cloudfoundry/blob/develop/jobs/upload-kibana-objects/templates/kibana-objects/index-pattern/logs.json.erb#L134

Obviously these lines don't actually contain secrets, so I updated the rule to ignore matched secrets that match these regexes:

security considerations

We are making legitimate exceptions to one of our rules for detecting secrets