You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
There was a time that the Azure API did not allow for seeing the state of a secret. This appears to no longer be the case. I have a secret that I disabled in KV for example here
It clearly shows that this secret is disabled. When I try and list KV secrets with the existing terraform data source azurerm_key_vault_secrets, I get the (known) error:
Error: making Read request on Azure KeyVault Secret my-secret: keyvault.BaseClient#GetSecret: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Forbidden" Message="Operation get is not allowed on a disabled secret." InnerError={"code":"SecretDisabled"}
this is the raw output from azurerm_key_vault_secrets:
The text was updated successfully, but these errors were encountered:
mpalermo73
changed the title
azurerm_key_vault_secret support for Enabled/Disabled state
azurerm_key_vault_secrets support for Enabled/Disabled state
Feb 14, 2023
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Description
There was a time that the Azure API did not allow for seeing the state of a secret. This appears to no longer be the case. I have a secret that I disabled in KV for example here
Note:
"enabled: false"
It clearly shows that this secret is disabled. When I try and list KV secrets with the existing terraform data source azurerm_key_vault_secrets, I get the (known) error:
this is the raw
output
fromazurerm_key_vault_secrets
:which provides pretty much everything the azure-cli except the state.
Why am I unable to simply read the
enabled
key when it is clearly being returned from the API without error?New or Affected Resource(s)/Data Source(s)
3.43.0
Potential Terraform Configuration
No response
References
The text was updated successfully, but these errors were encountered: