Skip to content

Commit 8389490

Browse files
Merge pull request #279227 from craigshoemaker/patch-9
[Static Web Apps] Update: Key vault secrets (freshness)
2 parents 6f0a0f5 + 60acc90 commit 8389490

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

articles/static-web-apps/key-vault-secrets.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
title: Securing authentication secrets in Azure Key Vault
3-
description: Use managed identity to secure authentication secrets in Azure Key Vault.
2+
title: Secure authentication secrets in Azure Key Vault for Azure Static Web Apps
3+
description: Use managed identity to secure authentication secrets in Azure Key Vault for Azure Static Web Apps.
44
services: static-web-apps
55
author: craigshoemaker
66
ms.service: static-web-apps
77
ms.topic: how-to
8-
ms.date: 05/17/2021
8+
ms.date: 06/25/2024
99
ms.author: cshoe
1010
---
1111

12-
# Securing authentication secrets in Azure Key Vault
12+
# Secure authentication secrets in Azure Key Vault for Azure Static Web Apps
1313

1414
When configuring custom authentication providers, you may want to store connection secrets in Azure Key Vault. This article demonstrates how to use a managed identity to grant Azure Static Web Apps access to Key Vault for custom authentication secrets.
1515

@@ -18,7 +18,7 @@ When configuring custom authentication providers, you may want to store connecti
1818
1919
Security secrets require the following items to be in place.
2020

21-
- Create a system-assigned identity in the Static Web Apps instance.
21+
- Create a system-assigned identity in your static web app.
2222
- Grant the identity access to a Key Vault secret.
2323
- Reference the Key Vault secret from the Static Web Apps application settings.
2424

@@ -39,9 +39,9 @@ Key Vault integration is not available for:
3939

4040
## Create identity
4141

42-
1. Open your Static Web Apps site in the Azure portal.
42+
1. Open your static web apps in the Azure portal.
4343

44-
1. Under _Settings_ menu, select **Identity**.
44+
1. Under _Settings_, select **Identity**.
4545

4646
1. Select the **System assigned** tab.
4747

@@ -69,9 +69,9 @@ You can now add an access policy to allow your static web app to read Key Vault
6969

7070
1. Next to the _Select principal_ label, select the **None selected** link.
7171

72-
1. In search box, search for your Static Web Apps application name.
72+
1. In search box, search for your static web app name.
7373

74-
1. Select list item that matches your application name.
74+
1. Select the list item that matches your application name.
7575

7676
2. Select **Select**.
7777

@@ -99,16 +99,16 @@ The access policy is now saved to Key Vault. Next, access the secret's URI to us
9999

100100
1. Under the _Settings_ menu, select **Configuration**.
101101

102-
2. Under the _Application settings_ section, select **Add**.
102+
1. Under the _Application settings_ section, select **Add**.
103103

104-
3. Enter a name in the text box for the _Name_ field.
104+
1. Enter a name in the text box for the _Name_ field.
105105

106-
4. Determine the secret value in text box for the _Value_ field.
106+
1. Determine the secret value in text box for the _Value_ field.
107107

108108
The secret value is a composite of a few different values. The following template shows how the final string is built.
109109

110110
```text
111-
@Microsoft.KeyVault(SecretUri=<YOUR-KEY-VAULT-SECRET-URI>)
111+
@Microsoft.KeyVault(SecretUri=<YOUR_KEY_VAULT_SECRET_URI>)
112112
```
113113
For example, a final string would look like the following sample:
114114
@@ -124,17 +124,17 @@ The access policy is now saved to Key Vault. Next, access the secret's URI to us
124124
125125
Use the following steps to build the full secret value.
126126
127-
5. Copy the template from above and paste it into a text editor.
127+
1. Copy the template from above and paste it into a text editor.
128128
129-
6. Replace `<YOUR-KEY-VAULT-SECRET-URI>` with the Key Vault URI value you set aside earlier.
129+
1. Replace `<YOUR_KEY_VAULT_SECRET_URI>` with the Key Vault URI value you set aside earlier.
130130
131-
7. Copy the new full string value.
131+
1. Copy the new full string value.
132132
133-
8. Paste the value into the text box for the _Value_ field.
133+
1. Paste the value into the text box for the _Value_ field.
134134
135-
9. Select **OK**.
135+
1. Select **OK**.
136136
137-
10. Select **Save** at the top of the _Application settings_ toolbar.
137+
1. Select **Save** at the top of the _Application settings_ toolbar.
138138
139139
:::image type="content" source="media/key-vault-secrets/azure-static-web-apps-application-settings-save.png" alt-text="Save application settings":::
140140

0 commit comments

Comments
 (0)