Skip to content

Commit

Permalink
Merge pull request #926 from chef/security
Browse files Browse the repository at this point in the history
Minor updates for the security cops
  • Loading branch information
tas50 authored Jan 14, 2022
2 parents 92ff94f + 4f86550 commit 5898671
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/NEW_COP_REQUEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Please try to select as few as possible.
- [ ] Chef/Modernize - A cop that alerts when a cookbook can be simplified or modernized with new functionality
- [ ] Chef/Effortless - A cop that alerts on code that must be resolved to move to the Effortless pattern
- [ ] Chef/RedundantCode - A cop that detects redundant code regardless of Chef Infra release
- [ ] Chef/Security - A cop that detects potential security issues like secrets in your code
- [ ] InSpec/Deprecations - A cop that alerts on a deprecation in the Chef InSpec

### Describe the new cop:
Expand Down
2 changes: 0 additions & 2 deletions lib/rubocop/cop/chef/security/ssh_private_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ module Security
# @example
#
# #### incorrect
# ```ruby
# file '/Users/bob_bobberson/.ssh/id_rsa' do
# content '-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----'
# mode '600'
# end
# ```
#
class SshPrivateKey < Base
MSG = 'Do not include plain text SSH private keys in your cookbook code. This sensitive data should be fetched from secrets management systems so that secrets are not uploaded in plain text to the Chef Infra Server or committed to source control systems.'
Expand Down

0 comments on commit 5898671

Please sign in to comment.