-
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): grantConnect for DatabaseProxy yields incorrect policy #12415
Labels
@aws-cdk/aws-rds
Related to Amazon Relational Database
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
Comments
jdvornek
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Jan 8, 2021
github-actions
bot
added
the
@aws-cdk/aws-rds
Related to Amazon Relational Database
label
Jan 8, 2021
jdvornek
added a commit
to jdvornek/aws-cdk
that referenced
this issue
Jan 8, 2021
fixes aws#12415 To generate the correct policy, the DatabaseProxy ARN is parsed and the resulting components are used along with a new parameter to grantConnect. The unit test was updated and passes. Caveat lector, I was not able to get a full docker build or a full local build to work on my box. I'm not sure if this should be considered a breaking change. While it technically alters the functionality of a published function, the current behavior provides no utility.
jdvornek
added a commit
to jdvornek/aws-cdk
that referenced
this issue
Jan 8, 2021
fixes aws#12415 To generate the correct policy, the DatabaseProxy ARN is parsed and the resulting components are used along with a new parameter to grantConnect. The unit test was updated and passes. Caveat lector, I was not able to get a full docker build or a full local build to work on my box. I'm not sure if this should be considered a breaking change. While it technically alters the functionality of a published function, the current behavior provides no utility.
skinny85
added
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Jan 12, 2021
mergify bot
pushed a commit
that referenced
this issue
Feb 16, 2021
fixes #12415 To generate the correct policy, the DatabaseProxy ARN is parsed and the resulting components are used along with a new parameter to grantConnect. The unit test was updated and passes. Caveat lector, I was not able to get a full docker build or a full local build to work on my box. I'm not sure if this should be considered a breaking change. While it technically alters the functionality of a published function, the current behavior provides no utility. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
NovakGu
pushed a commit
to NovakGu/aws-cdk
that referenced
this issue
Feb 18, 2021
…12416) fixes aws#12415 To generate the correct policy, the DatabaseProxy ARN is parsed and the resulting components are used along with a new parameter to grantConnect. The unit test was updated and passes. Caveat lector, I was not able to get a full docker build or a full local build to work on my box. I'm not sure if this should be considered a breaking change. While it technically alters the functionality of a published function, the current behavior provides no utility. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
eladb
pushed a commit
that referenced
this issue
Feb 22, 2021
fixes #12415 To generate the correct policy, the DatabaseProxy ARN is parsed and the resulting components are used along with a new parameter to grantConnect. The unit test was updated and passes. Caveat lector, I was not able to get a full docker build or a full local build to work on my box. I'm not sure if this should be considered a breaking change. While it technically alters the functionality of a published function, the current behavior provides no utility. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
It's fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-rds
Related to Amazon Relational Database
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
Originally from a comment in #11851.
DatabaseProxy::grantConnect()
generates a Policy that includes a resource referring to the DatabaseProxy itself. Per the documentation, the resource should be constructed to allow access to therds-db
service and also include the database user from the proxy secret.Reproduction Steps
What did you expect to happen?
I expected a Policy as follows:
What actually happened?
A Policy was generated as follows:
Environment
Other
DatabaseProxy::grantConnect()
was requested in #10133 and merged in #12243.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: