quarkiverse / quarkus-azure-services

Quarkus extensions for Azure services
Apache License 2.0
13 stars 18 forks source link

Support for Azure Keyvault #63

Closed JoaoBrandao closed 1 month ago

JoaoBrandao commented 1 year ago

Hi, It will be very useful and secure to have a dependency that allows us to connect our Quarkus Applications properties with Azure KeyVault to retrieve secrets.

The concept is very simple, just add a few properties to enable the extension to list all properties and select those that make a match with a specific placeholder.

Example:

password: ${APPLICATION_USER_PASSWORD:localpassword}

In Spring Cloud there is already an extension for that https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-key-vault but this only works for spring I guess.

agoncal commented 1 year ago

@radcortez I think you've worked on this, don't you?

radcortez commented 1 year ago

Not the KeyVault. I did the Azure App Configuration.

I also had plans to implement the Key Vault support. I'll do it in the next few weeks.

agoncal commented 1 year ago

@radcortez there is already a Key Vault extension in Camel, I thought you were involved in it. I'll try to migrate this extension as a high priority

ppalaga commented 1 year ago

there is already a Key Vault extension in Camel

That one is JVM-only - i.e. it has no proper tests.

radcortez commented 1 year ago

I looked, and it is the specific Camel component, so it is not integrated with Quarkus Config system. We should provide proper integration with it.

majguo commented 1 year ago

@all-contributors please add @JoaoBrandao for bug

allcontributors[bot] commented 1 year ago

@majguo

I've put up a pull request to add @JoaoBrandao! :tada:

galiacheng commented 1 month ago

Hello @JoaoBrandao loading Secrets as properties is available now, please see https://docs.quarkiverse.io/quarkus-azure-services/dev/quarkus-azure-key-vault.html#_read_secrets_as_properties.

galiacheng commented 1 month ago

Close the issue, please let me know if you have any question.