Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the bug for google_kms_crypto_key policies #848

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package accurics

checkRotation365Days[kms.id] {
kms := input.google_kms_crypto_key[_]
kms.config.rotation_period <= "31536000s"
}
checkRotation365Days[crypto_key.id]{
crypto_key := input.google_kms_crypto_key[_]
to_number(trim(crypto_key.config.rotation_period, "s")) > 31536000
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package accurics

checkRotation90Days[api.id]
{
api := input.google_kms_crypto_key[_]
api.config.rotation_period <= "7776000s"
checkRotation90Days[crypto_key.id]{
crypto_key := input.google_kms_crypto_key[_]
to_number(trim(crypto_key.config.rotation_period, "s")) > 7776000
}