-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[aws-rds] When moving from DatabaseCluster to DatabaseClusterFromSnapshot, lose ability to rotate master passwords #12877
Comments
Thanks for opening the issue @jonahbeckford! Should be relatively straightforward change to add the We really encourage contributions, so if you'd be willing to open us a PR adding this feature, that would be amazing 🙂. Here's our 'Contributing' guide: https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md. Thanks, |
Okay, will try to create my first PR for aws-cdk. |
Bring RDS `DatabaseClusterFromSnapshot` API to parity with `DatabaseCluster` in being able to add Secrets Manager credential rotation with `addRotationSingleUser` or `addRotationMultiUser`. My first PR here! There may be some potential to DRY up this approach by moving up the method to the parent `DatabaseClusterNew` class as for now the code is duplicative between the classes, but I am frankly not comfortable doing it myself. Any input and suggestions very welcome -- thanks in advance! closes #12877 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: N/A ### New Features N/A *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
This change adds a credentials property to DatabaseClusterFromSnapshotProps. Documented as
But will these credentials work if you restore from snapshot? My understanding is that you get the admin user of the snapshot. |
The username has to be from the snapshot, yes, but the password can be updated. See here for the details. |
…20020) Bring RDS `DatabaseClusterFromSnapshot` API to parity with `DatabaseCluster` in being able to add Secrets Manager credential rotation with `addRotationSingleUser` or `addRotationMultiUser`. My first PR here! There may be some potential to DRY up this approach by moving up the method to the parent `DatabaseClusterNew` class as for now the code is duplicative between the classes, but I am frankly not comfortable doing it myself. Any input and suggestions very welcome -- thanks in advance! closes aws#12877 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: N/A ### New Features N/A *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
If I start with a
DatabaseCluster
and then need to switch it toDatabaseClusterFromSnapshot
, I am forced to weaken security becauseDatabaseClusterFromSnapshot
does not haveaddRotationSingleUser()
.Reproduction Steps
Starting point was:
Then, after removing the
cluster
(which creates a snapshot) and recreating it with:the last line cannot be used.
What did you expect to happen?
I expected
DatabaseClusterFromSnapshot
to have the same API asDatabaseCluster
.What actually happened?
Environment
Other
I would suggest pulling
DatabaseCluster.addRotationSingleUser
andDatabaseCluster.addRotationMultiUser
up intoDatabaseClusterNew
(which is the shared superclass ofDatabaseClusterFromSnapshot
)This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: