Vault with AKS
Pod Identity
Now only a little broken!
The Challenge
Static Identities are bad
Vault should be deployed on K8s
Azure resources should use MSIs
The Solution
AKS Pod Identity
What is AKS Pod Identity?
 Open source project from Microsoft
 Assigns a Service Principal or MSI to
Nodes
 Matches pods to an Azure Identity
 Provides credentials through the
Metadata Service
How are we going to use it?
Access Vault through
Azure Auth
Vault Configuration
for Azure Auth
AKS Pod Identity Components
MIC
NMI
Node
IMDSAKS SP
Az ID
Azure Identity Association
MIC
vault-msiAzure Identity CR
Azure Identity Binding CR
Pod labels
Pod Identity Assignment
MICVault
Node
AKS SPvault-msi
Pod label
Pod Token Acquisition
NMIVault
Node IMDS
vault-msi
A slight problem…
 Azure Auth only supports System Assigned MSIs
 Pod Identity uses User Assigned MSIs
 Can't use Azure Auth for the pods… yet
Thank You!
 Ned Bellavance
 @ned1313
 https://nedinthecloud.com
 https://github.com/ned1313/hashitalks-aks-pod-id
 http://bit.ly/getting-started-vault

Vault with aks pod identity

Editor's Notes

  • #7 Managed Identity Controller Node Managed Identity