You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-key-vault.md
+58-37Lines changed: 58 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,16 @@ author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 08/11/2022
8
+
ms.date: 11/02/2023
9
9
ms.custom: event-tier1-build-2022
10
10
---
11
11
12
12
# Integrate Azure Key Vault with Service Connector
13
13
14
14
> [!NOTE]
15
-
> When you use Service Connector to connect your key vault or manage key vault connections, Service Connector use your token to perform the corresponding operations.
15
+
> When you use Service Connector to connect your key vault or manage key vault connections, Service Connector uses your token to perform the corresponding operations.
16
16
17
-
This page shows the supported authentication types and client types of Azure Key Vault using Service Connector. You might still be able to connect to Azure Key Vault in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection. You can learn more about [Service Connector environment variable naming convention](concept-service-connector-internals.md).
17
+
This page shows supported authentication methods and clients, and shows sample code you can use to connect Azure Key Vault to other cloud services using Service Connector. You might still be able to connect to Azure Key Vault in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection, as well as sample code.
18
18
19
19
## Supported compute service
20
20
@@ -26,62 +26,88 @@ This page shows the supported authentication types and client types of Azure Key
26
26
27
27
Supported authentication and clients for App Service, Container Apps and Azure Spring Apps:
28
28
29
-
### [Azure App Service](#tab/app-service)
30
-
31
29
| Client type | System-assigned managed identity | User-assigned managed identity | Secret / connection string | Service principal |
Use the connection details below to connect compute services to Azure Key Vault. For each example below, replace the placeholder texts `<vault-name>`, `<client-ID>`, `<client-secret>`, and `<tenant-id>` with your key vault name, client-ID, client secret and tenant ID. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
61
43
62
-
---
44
+
### System-assigned managed identity
63
45
64
-
##Default environment variable names or application properties
46
+
#### SpringBoot client type
65
47
66
-
Use the connection details below to connect compute services to Azure Key Vault. For each example below, replace the placeholder texts `<vault-name>`, `<client-ID>`, `<client-secret>`, and `<tenant-id>` with your key vault name, client-ID, client secret and tenant ID.
48
+
| Default environment variable name | Description | Example value |
| azure.keyvault.uri | Your Key Vault endpoint URL |`"https://<vault-name>.vault.azure.net/"`|
51
+
| azure.keyvault.scope | Your Azure RBAC scope |`https://management.azure.com/.default`|
52
+
| spring.cloud.azure.keyvault.secret.credential.managed-identity-enabled | Whether to enable managed identity for Spring Cloud Azure version 4.0 and above |`true`|
53
+
| spring.cloud.azure.keyvault.secret.endpoint | Your Key Vault endpoint URL for Spring Cloud Azure version 4.0 and above |`"https://<vault-name>.vault.azure.net/"`|
67
54
68
-
###System-assigned managed identity
55
+
#### Other client types
69
56
70
57
| Default environment variable name | Description | Example value |
| azure.keyvault.uri | Your Key Vault endpoint URL |`"https://<vault-name>.vault.azure.net/"`|
74
+
| azure.keyvault.client-id | Your Client ID |`<client-ID>`|
75
+
| azure.keyvault.scope | Your Azure RBAC scope |`https://management.azure.com/.default`|
76
+
| spring.cloud.azure.keyvault.secret.credential.managed-identity-enabled | Whether to enable managed identity for Spring Cloud Azure version 4.0 and above |`true`|
77
+
| spring.cloud.azure.keyvault.secret.endpoint | Your Key Vault endpoint URL for Spring Cloud Azure version 4.0 and above |`"https://<vault-name>.vault.azure.net/"`|
78
+
| spring.cloud.azure.keyvault.secret.credential.client-id | Your Client ID for Spring Cloud Azure version 4.0 and above |`<client-ID>`|
79
+
80
+
#### Other client types
81
+
77
82
| Default environment variable name | Description | Example value |
| azure.keyvault.uri | Your Key Vault endpoint URL |`"https://<vault-name>.vault.azure.net/"`|
100
+
| azure.keyvault.client-id | Your Client ID |`<client-ID>`|
101
+
| azure.keyvault.client-key | Your Client secret |`<client-secret>`|
102
+
| azure.keyvault.tenant-id | Your Tenant ID |`<tenant-id>`|
103
+
| azure.keyvault.scope | Your Azure RBAC scope |`https://management.azure.com/.default`|
104
+
| spring.cloud.azure.keyvault.secret.endpoint | Your Key Vault endpoint URL for Spring Cloud Azure version 4.0 and above |`"https://<vault-name>.vault.azure.net/"`|
105
+
| spring.cloud.azure.keyvault.secret.credential.client-id | Your Client ID for Spring Cloud Azure version 4.0 and above |`<client-ID>`|
106
+
| spring.cloud.azure.keyvault.secret.credential.client-secret | Your Client secret for Spring Cloud Azure version 4.0 and above |`<client-secret>`|
107
+
| spring.cloud.azure.keyvault.secret.profile.tenant-id | Your Tenant ID for Spring Cloud Azure version 4.0 and above |`<tenant-id>`|
108
+
109
+
#### Other client types
110
+
85
111
| Default environment variable name | Description | Example value |
0 commit comments