I used Azure files to share storage between many pods in AKS.
In this Cluster we have multiple applications, I want access to this storage to be secure, each storage account is accessible only via one user managed identity assigned to these pods :
- use pod identities
- Assign "Storage File Data SMB Share Contributor" role to our Managed Identity.
option1: using pod-identity, when we create a storage class and persistent volume claim it automatically creates the PV and storage account, so how to dynamically retrieve the name of this storage account? (IaC with Terraform)
option2: without using pod-identities, how can we secure access to this storage account from pods?