Skip to content

Commit

Permalink
[ReleasePR servicelinker] Service connector keyvault secret (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
msftbot[bot] authored Mar 15, 2022
2 parents ec1e7a8 + 5641f24 commit fa30b0f
Showing 1 changed file with 86 additions and 2 deletions.
88 changes: 86 additions & 2 deletions schemas/2022-01-01-preview/Microsoft.ServiceLinker.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,48 @@
],
"description": "The service properties when target service type is ConfluentSchemaRegistry"
},
"KeyVaultSecretReferenceSecretInfo": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the Key Vault secret."
},
"secretType": {
"type": "string",
"enum": [
"keyVaultSecretReference"
]
},
"version": {
"type": "string",
"description": "Version of the Key Vault secret."
}
},
"required": [
"secretType"
],
"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."
},
"KeyVaultSecretUriSecretInfo": {
"type": "object",
"properties": {
"secretType": {
"type": "string",
"enum": [
"keyVaultSecretUri"
]
},
"value": {
"type": "string",
"description": "URI to the keyvault secret"
}
},
"required": [
"secretType"
],
"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."
},
"LinkerProperties": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -263,15 +305,38 @@
"description": "Username or account name for secret auth."
},
"secret": {
"type": "string",
"description": "Password or account key for secret auth."
"oneOf": [
{
"$ref": "#/definitions/SecretInfoBase"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The secret info"
}
},
"required": [
"authType"
],
"description": "The authentication info when authType is secret"
},
"SecretInfoBase": {
"type": "object",
"oneOf": [
{
"$ref": "#/definitions/ValueSecretInfo"
},
{
"$ref": "#/definitions/KeyVaultSecretReferenceSecretInfo"
},
{
"$ref": "#/definitions/KeyVaultSecretUriSecretInfo"
}
],
"properties": {},
"description": "The secret info"
},
"SecretStore": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -396,6 +461,25 @@
],
"description": "The authentication info when authType is userAssignedIdentity"
},
"ValueSecretInfo": {
"type": "object",
"properties": {
"secretType": {
"type": "string",
"enum": [
"rawValue"
]
},
"value": {
"type": "string",
"description": "The actual value of the secret."
}
},
"required": [
"secretType"
],
"description": "The secret info when type is rawValue. It's for scenarios that user input the secret."
},
"VNetSolution": {
"type": "object",
"properties": {
Expand Down

0 comments on commit fa30b0f

Please sign in to comment.