-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
r/storage_account_customer_managed_key - support for key rotation #7836
Conversation
@jackofallops , any chance I could get a review on this? 🙏 |
Hi @IanMoroney ! I read your issue about not getting reviewed, I'm sorry to hear that. Thanks for the PR anyway, based on my limited experience the maintainers usually react within a few days. I don't think it is based on size that they prioritised other PRs, it is also depending on their priority and 👍 on the issue. My last PR was closed in just a few days, because it was fixing a bug a lot of people commented about. I'm not a maintainer, but I'm more than happy to give a few comments. There is a Slack channel as well, it usually makes it a bit easier to contact the maintainers personally. I've noticed a little less activity the last few days, maybe because of the holiday season or something else we don't know about. Upgrade of an API version is usually done in a separate commit by one of the maintainers. Is it necessary for this functionality to upgrade to the newer version? If that is the case, I would state the reason in your first comment. If the upgrade of the API version is done in a separate commit, it's probably just a With regard to your tests, is it possible to make it an acceptance test instead of a manual one? And if a manual test makes more sense, it is easier to replicate if the Terraform code is included instead of the functional steps. |
Hey @aristosvo , many thanks for your comment! Agreed that the squeaky wheel gets the grease, and this may not be a pressing issue for many people at the moment (or not many people realise that automatic key cycling is at all possible now) I'll have to search for the Slack channel invite instructions, as it would be quite convenient to get early feedback on things, and get some best practices on how to contribute in the most efficient way 👍 Noted on the test, I will see what is the best way to portray the results accurately. In my head, it may be easiest to show the code so it's easy to replicate and test. I wouldn't mind separating out the API version update if it were absolutely necessary, but would love to get some feedback from a maintainer on that before investing the time. Many thanks for your suggestions! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @IanMoroney
Thanks for this PR, and as previously mentioned, apologies for the delay in getting this review back to you.
As @aristosvo mentioned, we do typically split SDK version bumps from changes as they often tend to have a wider effect than expected in the scope of the change they're used for. That said, this particular case appears to be fine. I'll run a regression test on the whole service shortly to be doubly sure.
On the changes themselves, there's a comment below on config behaviour. We'll also need a test adding that covers the update behaviour for switching between a versioned key and auto-rotation and back again. (You should be able to use the existing _updateKey
test as a guide).
I'll circle back asap with any feedback from running the regression tests on the SDK.
Thanks again!
azurerm/internal/services/storage/resource_arm_storage_account_customer_managed_key.go
Show resolved
Hide resolved
website/docs/r/storage_account_customer_managed_key.html.markdown
Outdated
Show resolved
Hide resolved
Co-authored-by: Steve <[email protected]>
@jackofallops , |
@jackofallops , is there anything else required for this or are we good to go? |
@jackofallops , i'll have a production requirement which will need this feature soon. |
@jackofallops , is there a link to this build so I can see what the failure was? |
Hi @IanMoroney |
This has been released in version 2.28.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.28.0"
}
# ... other configuration ... |
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 👉 [email protected]. Thanks! |
Fixes #6149
Tests performed:
Example code to test the new functionality: