A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content

Guide

Uses the Azure Key Vault Provider for Secrets Store CSI Driver to provide secrets/keys/certs from an Azure Keyvault to the component using a CSI inline volume mounted at /mnt/secrets-store.

The Azure Key Vault Provider and Secrets Store CSI Driver must already be installed in the cluster - see installation instructions

Use case example​

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: myapp
spec:
components:
- name: myapp
type: webservice
properties:
image: me/myapp:latest
traits:
- type: azure-keyvault-csi
properties:
keyvaultName: #{KEY_VAULT_NAME}#
subscriptionId: #{SUBSCRIPTION_ID}#
tenantId: #{TENANT_ID}#
userAssignedIdentityID: #{USER_ASSIGNED_IDENTITY_ID}#
keys:
- name: my-secret # get a secret value
- name: my-cert # get a certificate
type: cert
- name: my-other-cert # get a public key of a certificate
type: key

Further reading​

Secrets as mounted files​

For details about the access of secrets as mounted files see Consuming Secret values from volumes.

Retrieving certificates​

For details on types when retrieving certificates, see Getting Certificates and Keys using Azure Key Vault Provider

Dotnet core​

For the dotnet core builtin config provider that supports this, see key-per-file-configuration provider.

For how to ensure that secrets mounted as file override appsettings.json values, see Application configuration providers