Best Approach to use akv in container

Baharul Islam 216 Reputation points
2021-03-09T10:09:42.963+00:00

Hi Experts,

Requirement is to use Azure Key-vault in container inside aks cluster. Wanted to know what is the best approach for the same. Can find tutorial as below where secret is being injected inside container using CSI driver and volume mount.

https://learn.microsoft.com/en-us/azure/key-vault/general/key-vault-integrate-kubernetes

Is there any other way for handling the same? or anywhere listed for all supported ways?

Thanks!

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,138 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,878 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 10,981 Reputation points MVP
    2021-03-09T10:40:05.537+00:00

    Hello @Baharul Islam

    Best practice guidance - Don't define credentials in your application code. Use managed identities for Azure resources to let your pod request access to other resources.
    Use Use pod managed identities together with Azure Key Vault with Secrets Store CSI Driver.

    However there are few ways how you can integrate Azure AKS with KeyVault.