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

Database credentials are not retrieved #233

Open
shaimaa-elsebaie opened this issue Oct 28, 2024 · 1 comment
Open

Database credentials are not retrieved #233

shaimaa-elsebaie opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shaimaa-elsebaie
Copy link

I am using your library with spring boot.

implementation("com.amazonaws.secretsmanager:aws-secretsmanager-jdbc:2.0.2")

I have the following settings in my application.yaml:

spring:
  datasource:
    driver-class-name: com.amazonaws.secretsmanager.sql.AWSSecretsManagerPostgreSQLDriver
    url: jdbc-secretsmanager:postgresql://host:5432/database_name
    user: secret_name

It seems that the library does not retrieve the credentials from the secret manager. When I run the spring boot application and I try to connect to the database I get the following error:

 Could not open JPA EntityManager for transaction] with root cause

org.postgresql.util.PSQLException: The server requested SCRAM-based authentication, but no password was provided.
@shaimaa-elsebaie shaimaa-elsebaie added the bug Something isn't working label Oct 28, 2024
@simonmarty
Copy link
Contributor

What version of org.postgresql:postgresql are you using in your project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants