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

Issue #6059 - subscription rights for key_vault #6239

Closed
wants to merge 1 commit into from

Conversation

Jawvig
Copy link
Contributor

@Jawvig Jawvig commented Mar 24, 2020

This commit fixes issue #6509, in which some subscription level
rights are required in order to create a key_vault. This occurred
due to the provider always looking for a soft deleted key vault
prior to checking whether the feature
KeyVault.RecoverSoftDeletedKeyVaults was set to true. Thus event
setting the value to false did not stop it searching for the soft
deletions.

The rights it was requiring were to perform action
'Microsoft.KeyVault/locations/deletedVaults/read' over scope
'/subscriptions/xxxxxx'

This commit fixes issue hashicorp#6509, in which some subscription level
rights are required in order to create a key_vault. This occurred
due to the provider always looking for a soft deleted key vault
prior to checking whether the feature
KeyVault.RecoverSoftDeletedKeyVaults was set to true. Thus event
setting the value to false did not stop it searching for the soft
deletions.

The rights it was requiring were to perform action
'Microsoft.KeyVault/locations/deletedVaults/read' over scope
'/subscriptions/xxxxxx'
@ghost ghost added the size/XS label Mar 24, 2020
@Jawvig
Copy link
Contributor Author

Jawvig commented Mar 24, 2020

Hold off on this. One of the acceptance tests is failing:

    TestAccAzureRMKeyVault_softDeleteRecoveryDisabled: testing.go:621: Step 3, no error received, but expected a match to:

        An existing soft-deleted Key Vault exists with the Name

I'll look into it further.

@Jawvig
Copy link
Contributor Author

Jawvig commented Mar 24, 2020

I see why the test is failing. I'm going to close this pull request and put some comments into #6059

@Jawvig Jawvig closed this Mar 24, 2020
@ghost
Copy link

ghost commented Apr 24, 2020

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 and limited conversation to collaborators Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants