prowler icon indicating copy to clipboard operation
prowler copied to clipboard

feat(secretsmanager): add new check `secretsmanager_secret_rotated_periodically`

Open puchy22 opened this issue 4 months ago • 6 comments

Context

Add new configurable check to ensure if secrets have rotated in certain amount of time.

Description

  • [x] Add last_rotated to Secret model
  • [x] Test new Secret attribute
  • [x] Add configurable attribute max_days_secret_unrotated
  • [x] Add check logic
  • [x] Add unit testing for the check

Checklist

  • Are there new checks included in this PR? Yes
    • If so, do we need to update permissions for the provider? No
  • [x] Review if the code is being covered by tests.
  • [x] Review if code is being documented following this specification https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
  • [x] Review if backport is needed.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

puchy22 avatar Oct 17 '24 13:10 puchy22