Is it possible to access secrets saved in Azure Key Vault from an on-prem app?

Falanga, Rod, DOH 245 Reputation points
2023-11-16T21:22:12.01+00:00

I'm working to remove secrets, like connection strings, passwords, etc. from our source code saved in Git repositories. One solution that looks very promising it storing secrets in Azure Key Vault. So, that's what I've been investigating.

We need to do this for on-prem, behind our security system, Intranet apps, which aren't exposed on the Internet. To test this, I've created an Azure Key Vault and put some secrets into it. Then I've written a simple .NET 8 console app, to try and find the secrets. I had been following this Microsoft Learn tutorial. I can get everything, but the ClientSecret. So, I've been trying to find that, which led me to this post on Stack Overflow.

Now I'm confused, because it looks to me like the app must be accessible from the Internet in some way, so that I can register it in Azure. However, if it is an Intranet app or a Windows app running behind our firewall, I don't see how that can happen.

Am I misunderstanding this? If it is possible to read secrets from an Azure Key Vault by an Intranet web app or a Windows app that only runs within our network, how is that done?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Givary-MSFT 35,626 Reputation points Microsoft Employee Moderator
    2023-11-20T06:16:03.7766667+00:00

    @Falanga, Rod, DOH Thank you for reaching out to us, As I understand you are looking to access secrets saved in Azure Key Vault from an on-prem app ?

    Came across this post where similar requirement has been discussed.

    https://stackoverflow.com/questions/49904715/use-azure-vault-secret-from-onpremise-web-application

    Also could you help what kind of application do you have in on-premise ?

    Let me know if you have any further questions, feel free to post back.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.