Azure Key Vault v2
Manage Azure Key Vault secrets, keys and certificates
Reads, writes, rotates and deletes secrets, keys and certificates in an Azure Key Vault, and calls any Key Vault or Resource Manager endpoint.
azure-key-vault-v2_3.0.0.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Connector for Azure Key Vault (version 3.0.0, named azure-key-vault-v2, installs next to the stock connector). It gets, lists, sets and deletes secrets, keys and certificates through the Key Vault data plane, enables or disables a secret version (for example after a leak), reads the issuance policy of a certificate, and manages vault resources through Azure Resource Manager. It is also the FortiSOAR password vault. The execute API request operation calls any Key Vault or Resource Manager endpoint with the connector's own credentials.
Authentication is a Microsoft Entra ID app registration (client credentials). The app needs Key Vault Secrets Officer, Crypto Officer and Certificates Officer on the vault, and Key Vault Contributor on the resource group for the vault-management operations. Use a vault in RBAC mode.
Live-tested
Live-tested on FortiSOAR 8.0.1 against an Azure Key Vault in RBAC mode: all 21 operations ran, and the success and error mocks are captured from that run. The 400, 401, 403 and 404 status classes are live.
Not live-tested
- Update Vault Access Policies: Azure refuses access-policy writes on RBAC vaults, so the success path is synthetic. The error path is live.
- Get Credentials Details has no remote call and no error path; its error mock is synthetic.
- The 429 status is synthetic: Key Vault throttling cannot be provoked on demand.
Configuration · 6 fields
- Directory (tenant) ID
tenant_idtext requiredTenant ID of the Microsoft Entra ID directory that holds the app registration.
- Subscription ID
subscription_idtext requiredSubscription that holds the key vaults. Required for the Azure Resource Manager operations.
- Application (Client) ID
client_idtext requiredClient ID of the app registration. The app needs the Key Vault data-plane roles on the vault and Reader on the subscription for the Resource Manager operations.
- Application (Client) Secret
client_secretpassword requiredClient secret value (not the secret ID) of the app registration.
- Vault Name
vault_nametextDefault key vault for the operations that take no vault name, and for the FortiSOAR password vault picker.
- Verify SSL
verify_sslcheckboxVerify the TLS certificates of the Azure endpoints.
Default
true
Operations · 21
List Key Vaults 1 param
list_key_vaultlist_key_vaultLists the key vaults in the subscription (Azure Resource Manager).
- Page Size
sizeintegerMaximum number of items to return in one page (maxresults).
Get Key Vault 2 params
get_key_vaultget_key_vaultReturns the Azure Resource Manager record of one key vault.
- Vault Name
vault_nametext requiredName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Resource Group Name
resource_group_nametext requiredResource group that holds the key vault.
Delete Key Vault 2 params
delete_key_vaultdelete_key_vaultDeletes a key vault. The vault is soft-deleted and can be recovered for the retention period.
- Vault Name
vault_nametext requiredName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Resource Group Name
resource_group_nametext requiredResource group that holds the key vault.
Update Vault Access Policies 4 params
update_vault_access_policyupdate_vault_access_policyAdds, replaces or removes access policy entries of a key vault. Fails on a vault that uses Azure RBAC for data access.
- Vault Name
vault_nametext requiredName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Resource Group Name
resource_group_nametext requiredResource group that holds the key vault.
- Operation
operation_kindselect requiredAdd, replace or remove the entries in the vault access policy.
Options addreplaceremove - Access Policies
access_policiestextarea requiredAccess policy entries as a JSON array (see the Azure Key Vault access policy schema).
Get All Keys 2 params
list_keyslist_keysLists the keys of a key vault.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Page Size
sizeintegerMaximum number of items to return in one page (maxresults).
Get Key Details 3 params
get_keyget_keyReturns one key of a key vault, the current version unless a version is given.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Key Name
key_nametext requiredName of the key (letters, digits and dashes).
- Key Version
key_versiontextSpecific key version (32 hex characters). Empty returns the current version.
Delete Key 2 params
delete_keydelete_keyDeletes a key. The key is soft-deleted and can be recovered for the retention period.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Key Name
key_nametext requiredName of the key (letters, digits and dashes).
Get All Secrets 2 params
list_secretlist_secretLists the secrets of a key vault (values are not returned).
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Page Size
sizeintegerMaximum number of items to return in one page (maxresults).
Get Secret Details 3 params
get_secretget_secretReturns one secret of a key vault with its value, the current version unless a version is given.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Secret Name
secret_nametext requiredName of the secret (letters, digits and dashes).
- Secret Version
secret_versiontextSpecific secret version (32 hex characters). Empty returns the current version.
Set Secret (New Version) 5 params
set_secretset_secretStores a new version of a secret. Used to rotate a secret: the new version becomes the current one.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Secret Name
secret_nametext requiredName of the secret (letters, digits and dashes).
- Secret Value
secret_valuepassword requiredValue to store. Stored as a new version of the secret.
- Content Type
content_typetextOptional content type of the secret value, for example text/plain.
- Tags
tagstextareaOptional tags as a JSON object, for example {"owner": "soc"}.
Enable or Disable Secret Version 4 params
update_secret_versionupdate_secret_versionEnables or disables one version of a secret. A disabled version cannot be read.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Secret Name
secret_nametext requiredName of the secret (letters, digits and dashes).
- Secret Version
secret_versiontext requiredThe secret version to enable or disable (32 hex characters).
- Enabled
enabledcheckboxTrue enables the secret version, False disables it.
Delete Secret 2 params
delete_secretdelete_secretDeletes a secret. The secret is soft-deleted and can be recovered for the retention period.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Secret Name
secret_nametext requiredName of the secret (letters, digits and dashes).
Get All Certificates 3 params
list_certificatelist_certificateLists the certificates of a key vault.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Include Pending
include_pendingcheckboxInclude certificates whose creation is still pending.
- Page Size
sizeintegerMaximum number of items to return in one page (maxresults).
Get Certificate Details 3 params
get_certificateget_certificateReturns one certificate of a key vault, the current version unless a version is given.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Certificate Name
certificate_nametext requiredName of the certificate.
- Certificate Version
certificate_versiontextSpecific certificate version. Empty returns the current version.
Delete Certificate 2 params
delete_certificatedelete_certificateDeletes a certificate. The certificate is soft-deleted and can be recovered for the retention period.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Certificate Name
certificate_nametext requiredName of the certificate.
Get Certificate Policy 2 params
get_certificate_policyget_certificate_policyReturns the issuance policy of a certificate.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Certificate Name
certificate_nametext requiredName of the certificate.
Get Versions 4 params
get_versionsget_versionsLists the versions of a secret, key or certificate.
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Object Type
object_typeselect requiredKind of object whose versions to list.
Options secretskeyscertificates - Object Name
nametext requiredName of the secret, key or certificate.
- Page Size
sizeintegerMaximum number of items to return in one page (maxresults).
Get Credentials
get_credentialsget_credentialsPicker source: lists the secrets of the configured vault for the FortiSOAR password vault.
No parameters.
Get Credentials Details 1 param
get_credentials_detailsget_credentials_detailsPicker details for a credential. The value is always masked.
- Secret ID
secret_idtextName of the secret to read.
Get Credential 2 params
get_credentialget_credentialReturns the value of a secret as a password (FortiSOAR password vault).
- Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Secret ID
secret_idtext requiredName of the secret to read (the picker value).
Execute API Request 8 params
execute_api_requestexecute_api_requestCalls any Key Vault data-plane or Azure Resource Manager endpoint with the connector's own credentials. Use it for operations this connector has no dedicated action for.
- API Plane
planeselect requiredvault: the key vault data plane (secrets, keys, certificates). management: Azure Resource Manager.
Options vaultmanagement - Vault Name
vault_nametextName of the key vault. Leave empty to use the Vault Name configured on the connector.
- Endpoint
endpointtext requiredPath only, for example /secrets or /subscriptions/... Full URLs are refused.
- HTTP Method
methodselect requiredHTTP method.
Options GETPOSTPUTPATCHDELETE - Query Parameters
query_paramstextareaExtra query string parameters as a JSON object.
- Request Body
request_bodytextareaJSON request body as a JSON object.
- API Version
api_versiontextOverride the api-version. Empty uses 7.4 on the vault plane and 2023-07-01 on management.
- Extra Headers
extra_headerstextareaExtra request headers as a JSON object.