Skip to content

Commit fa30b0f

Browse files
author
msftbot[bot]
authored
2 parents ec1e7a8 + 5641f24 commit fa30b0f

File tree

1 file changed

+86
-2
lines changed

1 file changed

+86
-2
lines changed

schemas/2022-01-01-preview/Microsoft.ServiceLinker.json

Lines changed: 86 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,48 @@
172172
],
173173
"description": "The service properties when target service type is ConfluentSchemaRegistry"
174174
},
175+
"KeyVaultSecretReferenceSecretInfo": {
176+
"type": "object",
177+
"properties": {
178+
"name": {
179+
"type": "string",
180+
"description": "Name of the Key Vault secret."
181+
},
182+
"secretType": {
183+
"type": "string",
184+
"enum": [
185+
"keyVaultSecretReference"
186+
]
187+
},
188+
"version": {
189+
"type": "string",
190+
"description": "Version of the Key Vault secret."
191+
}
192+
},
193+
"required": [
194+
"secretType"
195+
],
196+
"description": "The secret info when type is keyVaultSecretReference. It's for scenario that user provides a secret stored in user's keyvault and source is Azure Kubernetes. The key Vault's resource id is linked to secretStore.keyVaultId."
197+
},
198+
"KeyVaultSecretUriSecretInfo": {
199+
"type": "object",
200+
"properties": {
201+
"secretType": {
202+
"type": "string",
203+
"enum": [
204+
"keyVaultSecretUri"
205+
]
206+
},
207+
"value": {
208+
"type": "string",
209+
"description": "URI to the keyvault secret"
210+
}
211+
},
212+
"required": [
213+
"secretType"
214+
],
215+
"description": "The secret info when type is keyVaultSecretUri. It's for scenario that user provides a secret stored in user's keyvault and source is Web App, Spring Cloud or Container App."
216+
},
175217
"LinkerProperties": {
176218
"type": "object",
177219
"properties": {
@@ -263,15 +305,38 @@
263305
"description": "Username or account name for secret auth."
264306
},
265307
"secret": {
266-
"type": "string",
267-
"description": "Password or account key for secret auth."
308+
"oneOf": [
309+
{
310+
"$ref": "#/definitions/SecretInfoBase"
311+
},
312+
{
313+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
314+
}
315+
],
316+
"description": "The secret info"
268317
}
269318
},
270319
"required": [
271320
"authType"
272321
],
273322
"description": "The authentication info when authType is secret"
274323
},
324+
"SecretInfoBase": {
325+
"type": "object",
326+
"oneOf": [
327+
{
328+
"$ref": "#/definitions/ValueSecretInfo"
329+
},
330+
{
331+
"$ref": "#/definitions/KeyVaultSecretReferenceSecretInfo"
332+
},
333+
{
334+
"$ref": "#/definitions/KeyVaultSecretUriSecretInfo"
335+
}
336+
],
337+
"properties": {},
338+
"description": "The secret info"
339+
},
275340
"SecretStore": {
276341
"type": "object",
277342
"properties": {
@@ -396,6 +461,25 @@
396461
],
397462
"description": "The authentication info when authType is userAssignedIdentity"
398463
},
464+
"ValueSecretInfo": {
465+
"type": "object",
466+
"properties": {
467+
"secretType": {
468+
"type": "string",
469+
"enum": [
470+
"rawValue"
471+
]
472+
},
473+
"value": {
474+
"type": "string",
475+
"description": "The actual value of the secret."
476+
}
477+
},
478+
"required": [
479+
"secretType"
480+
],
481+
"description": "The secret info when type is rawValue. It's for scenarios that user input the secret."
482+
},
399483
"VNetSolution": {
400484
"type": "object",
401485
"properties": {

0 commit comments

Comments
 (0)