Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyvault: normalizing the casing of the permissions #10593

Merged
merged 3 commits into from Feb 16, 2021

Conversation

tombuildsstuff
Copy link
Member

This PR normalizes the casing on the Permissions keys within the azurerm_key_vault and azurerm_key_vault_access_policy resources - due to the casing being returned from the API, and the casing on the Constants in the SDK differing. This also adds a DiffSuppressFunc to the Storage Permissions field - to allow for this to happen without diff's, which can ultimately be removed in 3.0 (across all of these) and made case-sensitive, since we're normalizing these casings on Terraform's side.

Fixes #10591

@tombuildsstuff tombuildsstuff added bug service/key-vault Key Vault upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR labels Feb 15, 2021
@tombuildsstuff tombuildsstuff added this to the v2.48.0 milestone Feb 15, 2021
@tombuildsstuff tombuildsstuff requested a review from a team February 15, 2021 17:41
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@tombuildsstuff
Copy link
Member Author

Tests look good 👍

@tombuildsstuff tombuildsstuff merged commit c5e681b into master Feb 16, 2021
@tombuildsstuff tombuildsstuff deleted the b/normalizing-key-vault-casing branch February 16, 2021 08:04
tombuildsstuff added a commit that referenced this pull request Feb 16, 2021
@ghost
Copy link

ghost commented Feb 18, 2021

This has been released in version 2.48.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.48.0"
}
# ... other configuration ...

Shr3ps added a commit to claranet/terraform-azurerm-keyvault that referenced this pull request Mar 9, 2021
Changed
  * AZ-458: normalizing the casing of the permissions to comply with
provider changes
hashicorp/terraform-provider-azurerm#10593
@ghost
Copy link

ghost commented Mar 18, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked as resolved and limited conversation to collaborators Mar 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug documentation service/key-vault Key Vault size/L upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azurerm_key_vault_access_policy casing is
2 participants