Reference
Azure Key Vault
Move secrets to and from a Key Vault name prefix.
Move secrets to and from a Key Vault name prefix.
The connection
| What | This provider |
|---|---|
| Vendor | Microsoft Azure |
| Key | azure-key-vault |
| Availability | available. You can connect it today. |
| Credential penv holds | azure-service-principal |
| Values read back | yes |
| Activation | immediate |
What it moves
| Direction | What it does |
|---|---|
import | Reads names and values out of the store into penv. |
export | Writes names and values from penv into the store. |
When a written value goes live
immediate. The running app sees a new value at once.
What happens to a name that exists
| Direction | Policies you can pick |
|---|---|
import | skip_existing, new_version, fail |
export | create_only, overwrite, overwrite_and_prune |
How syncs work says what each one does.
How you connect
You paste a credential you already hold. penv seals it and never shows it again.
| Field | Label | Kind | Required | What it is |
|---|---|---|---|---|
tenantId | Directory (tenant) ID | secret, masked here and sealed | yes | |
clientId | Application (client) ID | secret, masked here and sealed | yes | |
clientSecret | Client secret | secret, masked here and sealed | yes |
What the connection asks for
Fixed when you connect, and shared by every mapping on it.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
vaultName | Vault | text | yes | no | The vault's name alone, without the URL around it. One connection covers one vault. |
basePrefix | Base prefix | text | yes | no | The widest secret name prefix this connection may touch. Every sync scope will sit under it. |
What a mapping asks for
Answered once per environment you map.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
namePrefix | Secret name prefix | text | yes | no | Maps onto this environment. Underscores become -U, so DATABASE_URL is DATABASE-UURL. |
Permissions it needs
penv probes for these when it verifies the connection.
| Permission | Directions | Blocking | Without it |
|---|---|---|---|
Microsoft.KeyVault/vaults/secrets/readMetadata/action | every direction | yes | Preview cannot list what is under this prefix. |
Microsoft.KeyVault/vaults/secrets/getSecret/action | import | yes | Import cannot read any value. |
Microsoft.KeyVault/vaults/secrets/setSecret/action | export | yes | Export cannot write anything. |
Microsoft.KeyVault/vaults/secrets/deleteSecret/action | export | no | The overwrite_and_prune policy cannot remove remote keys. |
Microsoft.KeyVault/vaults/secrets/recover/action | export | no | A key pruned inside the vault's retention window cannot be written again. |