Skip to content

AzureRM backend support for users to plan without permission to apply #28423

Description

@aidapsibr

Current Terraform Version

0.15.0

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions