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
Originally posted by canelzio December 27, 2023
Hi,
I'm facing an issue using AWS SecretsManager JDBC driver with RDS Proxy and Alternating User secret rotation.
It seems that RDS Proxy is not able to handle properly such rotation since it is limited to fetch only the AWSCURRENT secret version stage, and this leads to the following error:
org.postgresql.util.PSQLException: FATAL: This RDS proxy has no credentials for the role <db_user>. Check the credentials for this role and try again.
I've already opened a Feature Request to AWS on this, but in the meantime I'd like to discuss such topic with you.
In my opinion everything should work as expected if the driver could intercept also the above error as an authentication error and refresh the secret cache accordingly.
What do you think?
Could this be feasible?
Any other idea?
Thank you.
The text was updated successfully, but these errors were encountered:
canelzio
added a commit
to canelzio/aws-secretsmanager-jdbc
that referenced
this issue
Jan 18, 2024
PostgreSQL Error Code 2800 is also considered as an authentication error in order to trigger secret refresh (together with 28P01 - invalid_password)
PostgreSQL Error Code 2800 (invalid_authorization_specification) is the error code returned by RDS Proxy when the secret is rotated in alternating user mode: refreshing the secret cache would address the issue aws#222.
* PostgreSQL Error Code 28000 is also considered as an authentication error
PostgreSQL Error Code 28000 is also considered as an authentication error in order to trigger secret refresh (together with 28P01 - invalid_password)
PostgreSQL Error Code 28000 (invalid_authorization_specification) is the error code returned by RDS Proxy when the secret is rotated in alternating user mode: refreshing the secret cache would address the issue #222.
* Fix formatting
---------
Co-authored-by: Simon Marty <simon.marty0@gmail.com>
Discussed in #221
Originally posted by canelzio December 27, 2023
Hi,
I'm facing an issue using AWS SecretsManager JDBC driver with RDS Proxy and Alternating User secret rotation.
It seems that RDS Proxy is not able to handle properly such rotation since it is limited to fetch only the AWSCURRENT secret version stage, and this leads to the following error:
I've already opened a Feature Request to AWS on this, but in the meantime I'd like to discuss such topic with you.
In my opinion everything should work as expected if the driver could intercept also the above error as an authentication error and refresh the secret cache accordingly.
What do you think?
Could this be feasible?
Any other idea?
Thank you.
The text was updated successfully, but these errors were encountered: