Skip to content

Refreshing mongodb credentials #38519

Open

Description

Description

I'm trying to use AWS Secrets Manager to store my Mongo DB credentials for the Quarkus application that uses Panache. In order to do this, I implemented a custom CredentialsProvider (https://quarkus.io/guides/credentials-provider#custom-credentials-provider). However, I found that CredentialsProvider is called only during the first access to db because MongoClient is instantiated as a bean and is cached in arc ApplicationContext. So could you provide a way to refresh Mongodb credentials in runtime without restarting the application?

Implementation ideas

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions