provider/vault: vault_policy resource #10980
Conversation
Hi @Mongey! Thanks for implementing this. I unfortunately don't have time to properly review an test this today, but I will take a look at it properly soon. I added myself as a reviewer to remind me to take a look next time I'm spending time on Terraform. |
Is there a chance that someone can edit this policy manually via the CLI? If so, we are not refreshing the state of the policy and Terraform will not think there are any changes to be made In the Read func, we need to set the policy back to state IMO |
@stack72 |
Yeah, for the secret resource I was being conservative to enable write-only access tokens to be used when populating secrets, but for this one I think we can assume that an admin-ish token will be used and so there isn't a strong reason to support write-only creds here I think. |
I was just finding myself in need of something like this. Any chance it being merged, or similar features? |
Hi @Mongey Thanks for this - this is now looking good! Tests are passing as well
Paul |
* provider/vault: vault_policy resource * website: vault_policy resource * Refresh state when reading vault policy
I'm going to lock this issue because it has been closed for 30 days 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. |
No description provided.