Current Terraform Version
Use-cases
Enable users to access a particular storage container with only Storage Blob Data Reader for performing no-lock plans to validate changes locally.
Attempted Solutions
Attempted to assign the role and leverage the use_azuread_auth option on the backend to access a particular storage container.
Proposal
Currently, authorization fails even with use_azuread_auth and appropriate data roles, because the backend tries to listKeys on the storage account. Updating the backend flow to skip this step and instead use AzureAD tokens to access the blobs would enable this directly. This should be a non-breaking change I believe since storage account owner (listKeys) has the blob data access roles.
References
#20831 - The title of this was misleading, you no longer directly need to provide a key, but the backend will still use the keys to access blobs.
Current Terraform Version
Use-cases
Enable users to access a particular storage container with only
Storage Blob Data Readerfor performing no-lock plans to validate changes locally.Attempted Solutions
Attempted to assign the role and leverage the
use_azuread_authoption on the backend to access a particular storage container.Proposal
Currently, authorization fails even with
use_azuread_authand appropriate data roles, because the backend tries to listKeys on the storage account. Updating the backend flow to skip this step and instead use AzureAD tokens to access the blobs would enable this directly. This should be a non-breaking change I believe since storage account owner (listKeys) has the blob data access roles.References
#20831 - The title of this was misleading, you no longer directly need to provide a key, but the backend will still use the keys to access blobs.