aws-secrets-manager-rotation-lambdas icon indicating copy to clipboard operation
aws-secrets-manager-rotation-lambdas copied to clipboard

Generic rotation template bug in finish_secret step

Open ryancausey opened this issue 3 years ago • 0 comments

The finish_secret function has a bug in it if there is not a version found that is labeled as "AWSCURRENT".

If there is not a version found that is labeled as "AWSCURRENT", the code will set current_version as None. This will lead to update_secret_version_stage being called with RemoveFromVersionId as None. This results in a ParamValidationError being raised from the boto3 client.

ryancausey avatar Aug 30 '22 22:08 ryancausey