You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we updated our version of aws-cdk-lib today from 2.115 to 2.120 latest
started getting this nag:
AwsSolutions-SMG4: The secret does not have automatic rotation scheduled. AWS Secrets Manager can be configured to automatically rotate the secret for a secured service or database.
but in our cdk code there is clearly a rotation set up
I think it may be the latter, because here it changes the rotationRules in the generated schedule to use a scheduleExpression rather than automaticallyAfterDays
What is the problem?
we updated our version of aws-cdk-lib today from 2.115 to 2.120 latest
started getting this nag:
but in our cdk code there is clearly a rotation set up
Reproduction Steps
then use aws-cdk-lib >= 2.116.0
What did you expect to happen?
no nag, because we have a rotation
What actually happened?
when upgrading aws-cdk-lib to 2.116.0 or later we start getting the nag
cdk-nag version
2.28.7
Language
Python
Other information
Looking at the changes released in aws-cdk-lib 2.116.0 there were two possibly relevant PRs:
I think it may be the latter, because here it changes the
rotationRules
in the generated schedule to use ascheduleExpression
rather thanautomaticallyAfterDays
and the relevant check in cdk-nag:
cdk-nag/src/rules/secretsmanager/SecretsManagerRotationEnabled.ts
Line 120 in 7e9aa43
automaticallyAfterDays
rather than any valid scheduling ruleThe text was updated successfully, but these errors were encountered: