Click here to Skip to main content
15,881,413 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Hiding the key Pin
MSBassSinger30-Mar-23 14:06
professionalMSBassSinger30-Mar-23 14:06 
GeneralRe: Hiding the key Pin
PIEBALDconsult30-Mar-23 14:24
mvePIEBALDconsult30-Mar-23 14:24 
GeneralRe: Hiding the key Pin
MSBassSinger30-Mar-23 14:43
professionalMSBassSinger30-Mar-23 14:43 
GeneralRe: Hiding the key Pin
bryanren31-Mar-23 5:56
bryanren31-Mar-23 5:56 
GeneralRe: Hiding the key Pin
Andreas Mertens30-Mar-23 4:26
professionalAndreas Mertens30-Mar-23 4:26 
GeneralRe: Hiding the key Pin
MSBassSinger30-Mar-23 5:38
professionalMSBassSinger30-Mar-23 5:38 
GeneralRe: Hiding the key Pin
Andreas Mertens31-Mar-23 5:05
professionalAndreas Mertens31-Mar-23 5:05 
GeneralRe: Hiding the key Pin
BernardIE531730-Mar-23 6:48
BernardIE531730-Mar-23 6:48 
this is what chatGBT has to say :
Quote:
To securely access the Key Vault from your applications without exposing the secrets in config files, you can leverage Azure Managed Service Identity (MSI) feature.

Managed Service Identity (MSI) is a feature of Azure Active Directory that provides Azure services with an automatically managed identity in Azure AD. With MSI, Azure services can authenticate with other Azure services that support Azure AD authentication, without requiring you to manage any secrets or credentials.

The process for accessing the Key Vault using MSI can be summarized in the following steps:

Enable the MSI feature for your Azure App Service/Web App: Enable the system assigned identity for your Web App by turning it on in the Identity blade of your Web App.

Add access policy to Key Vault: Once MSI is enabled, navigate to your Key Vault, select the Access policies blade, and add the necessary permissions to allow your Web App to access the Key Vault.

Modify your code to use MSI to authenticate with the Key Vault: In your code, you can use the Azure.Identity NuGet package to authenticate with the Key Vault using the MSI endpoint. Here's some sample code that demonstrates how to access a secret in a Key Vault using MSI:

var credential = new DefaultAzureCredential();
var client = new SecretClient(new Uri("https://{keyvault-name}.vault.azure.net/"), credential);
KeyVaultSecret secret = await client.GetSecretAsync("secret-name");
string secretValue = secret.Value;

GeneralRe: Hiding the key Pin
MSBassSinger30-Mar-23 14:05
professionalMSBassSinger30-Mar-23 14:05 
GeneralRe: Hiding the key Pin
TNCaver31-Mar-23 4:58
TNCaver31-Mar-23 4:58 
GeneralRe: Hiding the key Pin
kmoorevs30-Mar-23 7:18
kmoorevs30-Mar-23 7:18 
GeneralRe: Hiding the key Pin
MSBassSinger30-Mar-23 13:09
professionalMSBassSinger30-Mar-23 13:09 
GeneralRe: Hiding the key Pin
MikeCO1031-Mar-23 3:01
MikeCO1031-Mar-23 3:01 
GeneralRe: Hiding the key Pin
Bruce Patin31-Mar-23 3:25
Bruce Patin31-Mar-23 3:25 
GeneralRe: Hiding the key Pin
Br.Bill31-Mar-23 12:41
Br.Bill31-Mar-23 12:41 
GeneralRe: Hiding the key Pin
Slow Eddie31-Mar-23 4:05
professionalSlow Eddie31-Mar-23 4:05 
Generalthis is awkward Pin
BernardIE531730-Mar-23 3:34
BernardIE531730-Mar-23 3:34 
GeneralRe: this is awkward Pin
DrWalter PE30-Mar-23 3:48
professionalDrWalter PE30-Mar-23 3:48 
GeneralGive me the formula for Nitrous Oxide Pin
Mike Hankey30-Mar-23 3:50
mveMike Hankey30-Mar-23 3:50 
GeneralRe: Give me the forla for Nitrous Oxide Pin
PIEBALDconsult30-Mar-23 3:56
mvePIEBALDconsult30-Mar-23 3:56 
GeneralRe: Give me the forla for Nitrous Oxide Pin
Mike Hankey30-Mar-23 4:10
mveMike Hankey30-Mar-23 4:10 
GeneralRe: this is awkward PinPopular
jschell30-Mar-23 5:53
jschell30-Mar-23 5:53 
GeneralRe: this is awkward Pin
BernardIE531730-Mar-23 6:42
BernardIE531730-Mar-23 6:42 
AnswerRe: this is awkward Pin
megaadam30-Mar-23 7:47
professionalmegaadam30-Mar-23 7:47 
GeneralRe: this is awkward Pin
BernardIE531730-Mar-23 8:31
BernardIE531730-Mar-23 8:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.