[Feedback] Azure Container Storage is asking the permission over the whole subscription
Describe your scenario A clear and concise description of what your scenario is.
When trying to create the StoragePool when following tutorial, received the error message like below:
Azure Elastic SAN creation failed: The client '00000000-0000-0000-0000-000000000000 with object id '00000000-0000-0000-0000-000000000000' does not have authorization to perform action 'Microsoft.ElasticSan/register/action' over scope '/subscriptions/00000000-0000-0000-0000-000000000000' or the scope is invalid. If access was recently granted, please refresh your credentials.
This is surely asking me to assign role to the identity on subscription-level, instead of resource group.
Feedback Isn't this scope of role assignment too large? This brought the security concern.
"This issue has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 7 days of this comment."
Hi @JoeyC-Dev Could you please share the command you are running to install Azure Container Storage?
@mukhoakash
az aks nodepool add --cluster-name ${aks} -g ${rG} -n userpool \
--mode User --labels "acstor.azure.com/io-engine=acstor" \
--node-count 3 -o none \
--node-vm-size Standard_A4_v2
az aks update -n ${aks} -g ${rG} -o none \
--enable-azure-container-storage elasticSan
cat <<EOF | kubectl apply -f -
apiVersion: containerstorage.azure.com/v1
kind: StoragePool
metadata:
name: managed
namespace: acstor
spec:
poolType:
elasticSan: {}
resources:
requests: {"storage": 1Ti}
EOF
kubectl describe sp managed -n acstor
Output:
Note: This is a brand new AKS.
Hello, I have the same issue, even after assigned the "Azure Container Storage Owner" role to the AKS cluster's identity. From what I can see, permission "Microsoft.ElasticSan/register/action" is not in the list of allowed permissions in that role.
@masterphenix and @JoeyC-Dev Looping back to ensure that you have assigned yourself "Azure Container Storage Owner" or "Azure Container Storage Operator" roles over the subscription?
Hi @mukhoakash Please check my title and description.
The question I am asking is: why it is requesting permission over whole subscription? For what design purpose? Giving permission over entire subscription is large. There is a security concern here. A very legit reason is needed for convincing myself. I don't want to grant this large scope of permission only for convenience purpose.
I am not asking how-to grant permission itself.
@masterphenix and @JoeyC-Dev Looping back to ensure that you have assigned yourself "Azure Container Storage Owner" or "Azure Container Storage Operator" roles over the subscription?
Hello, on my side, yes I did
Hello, I have the same issue, even after assigned the "Azure Container Storage Owner" role to the AKS cluster's identity. From what I can see, permission "Microsoft.ElasticSan/register/action" is not in the list of allowed permissions in that role.
Hi @masterphenix , could you please try the following and let me know if it works. Try assigning "Azure Container Storage Owner" or "Azure Container Storage Contributor" to yourself (the user installing Azure Container Storage, not the managed identity of the cluster) over the subscription and try running the command mentioned in the tutorial. Please let me know if that resolves your issue. Thanks!
Hello, it's done already. The owner role is assigned to a Microsoft Entra group, in which I am.
Hi @masterphenix , thanks for reaching out. Sorry to hear you're experiencing issues in deploying Elastic SAN with Azure Container Storage. Could you share the following information, so we can take a look at the logs on our end to see what could be going on?
Subscription ID AKS cluster name Estimated time frame when the issues occurred.
Please do not share here, instead email to [email protected].
Thanks! Saurabh
Hello @JoeyC-Dev and @masterphenix , with respect to the scope of the permissions, Azure Container Storage may need to work with multiple resource groups within the subscription. Due to this reason, the admin running the Azure Container Storage operation needs the permissions "Azure Container Storage Contributor" or "Azure Container Storage Owner" assigned to them over the subscription.
For further discussion, please reach out to [email protected].
Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days.