Aspnetcore.docs: Is there support for a key vault configuration provider for java?

Created on 6 Oct 2018  ·  7Comments  ·  Source: dotnet/AspNetCore.Docs

Is there support to do this in Java? To preload use a configuration provider to set values from azure keyvault for azure functions?

Thanks,
Derek


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

P4 Source - Docs.ms

Most helpful comment

Let's ask @brunoborges & @bbenz.

All 7 comments

Hello @darewreck54 ... you're kind'a slightly asking in the wrong spot, as this is the ASP.NET Core coverage for Azure Key Vault technology, but I might be able to get you to the right spot ...... head over to https://github.com/Azure/azure-keyvault-java ... that might be what ur look'in for. ☀️

@guardrex . Thanks I also posted the question there but this article demonstrated the feature I was looking for and was wondering if this was supported in java ?

You did the right thing asking the Azure cats about it. We're mostly .NET Core 🐈 over here, so we probably don't know if the scenarios we have for .NET Core are mirrored for Java. Usually, MS/3rd party libs, RESTful endpoints, and PowerShell modules for Azure services make scenarios possible with any framework. They should be able to help you on that repo. If you don't get an answer by the end of next week, let me know, and I'll see if I can ping someone who can ping someone who can help. :smile:

@guardrex Do you know anyone one the java side that I can ping about this? Haven't gotten any real response.

I also posted this question since it's somewhat related. Maybe you might know the answer since I'm doing a simple authentication, but the principal id and service principal isn't allowing me to sign in to the key vault.

https://github.com/Azure/azure-functions-java-worker/issues/200

Thanks,
Derek

@Rick-Anderson @tdykstra @scottaddie On the MS side, has @darewreck54 done the best he can? My only other suggestion is to put these questions on a support forum, such as Stack Overflow.

Let's ask @brunoborges & @bbenz.

As far as I know there is no Azure Key Vault support for value injection in the Azure Functions Java SDK. I have got code you can use inside your function to create a single, static key vault client that can read properties. Check out the following links:

https://docs.microsoft.com/en-us/java/azure/microprofile/configure-microprofile-with-keyvault?view=azure-java-stable

https://github.com/Azure/azure-microprofile/tree/master/microprofile-config-keyvault

In particular: https://github.com/Azure/azure-microprofile/blob/master/microprofile-config-keyvault/src/main/java/com/microsoft/azure/microprofile/config/keyvault/AzureKeyVaultConfigSource.java

Hope that helps.

Was this page helpful?
0 / 5 - 0 ratings