-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3afe28
commit 475b88d
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
pkg/policies/opa/rego/gcp/google_kms_crypto_key/checkRotation365Days.rego
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package accurics | ||
|
||
checkRotation365Days[crypto_key.id] | ||
{ | ||
checkRotation365Days[crypto_key.id]{ | ||
crypto_key := input.google_kms_crypto_key[_] | ||
to_number(trim(crypto_key.config.rotation_period, "s")) > 31536000 | ||
} |
3 changes: 1 addition & 2 deletions
3
pkg/policies/opa/rego/gcp/google_kms_crypto_key/checkRotation90Days.rego
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package accurics | ||
|
||
checkRotation90Days[crypto_key.id] | ||
{ | ||
checkRotation90Days[crypto_key.id]{ | ||
crypto_key := input.google_kms_crypto_key[_] | ||
to_number(trim(crypto_key.config.rotation_period, "s")) > 7776000 | ||
} |