Skip to content
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

Add PostgreSQL error code 28000 to authentication errors #223

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

canelzio
Copy link
Contributor

@canelzio canelzio commented Jan 18, 2024

*Issue #222 *

Description of changes:
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.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

canelzio and others added 2 commits January 18, 2024 20:14
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.
@simonmarty simonmarty changed the title Adding 2800 PostgreSQL ErrorCode as authentication error Add 28000 PostgreSQL error code to authentication errors Jan 29, 2024
@simonmarty simonmarty changed the title Add 28000 PostgreSQL error code to authentication errors Add PostgreSQL error code 28000 to authentication errors Jan 29, 2024
@simonmarty simonmarty merged commit 59d1f4e into aws:v2 Jan 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PostgreSQL driver enhancement for addressing Alternating User Rotation with RDS Proxy
3 participants