-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
backend/remote: Swift Authentication Update #23510
Conversation
b8be44d
to
b2e8a71
Compare
/cc @ozerovandrei |
would this PR mean that
would just work? ie https://github.com/terraform-providers/terraform-provider-openstack/issues/939 and https://github.com/terraform-providers/terraform-provider-openstack/issues/373 |
@kayrus do you mind rebasing? |
b2e8a71
to
9e63cae
Compare
@LorbusChris rebased |
@kayrus thanks! maybe sqash the last two commits, though? (fixup the rebase commit, so it doesnt appear in commit history) |
@LorbusChris they can be squashed via github merge menu. |
@SvenDowideit unfortunately no. |
@radeksimko friendly ping. If you could have a look at this soon (and subsequently at #23601), that would be great! :) |
any update on this? |
@apparentlymart @radeksimko kindly ping |
ping |
this would need another rebase :/ any chance this could go in soon? |
9e63cae
to
54a7715
Compare
rebased |
@apparentlymart ping |
b80c3bf
to
4d973e5
Compare
@apparentlymart @radeksimko kind ping |
Codecov Report
|
@apparentlymart @radeksimko kind ping |
@kayrus I apologize for the need to do multiple rebases here. I know that getting updates to backends merged has been tough, and @pkolyvas (the Terraform Core product manager) and I (the Terraform Core engineering manager) are trying to improve that. The root issue has been that nobody on the core team has deep domain knowledge of Swift, so doing really good reviews of PRs is fairly challenging. We've had to individually reach out and ask favors of engineers who have that knowledge, which slows down the process a lot. I'm hopeful that we can significantly speed up the backend review process by allowing people who contribute to this codebase to review and approve PRs. We recently updated our contributor guide and set up a CODEOWNERS section to track who is maintaining what. Swift currently lacks a maintainer. Once we have a few maintainers listed for this backend, I'm hopeful that the community of Terraform OpenStack contributors can review, test, and approve changes, so that Core feels more confident merging these changes quickly. If anyone on this thread would like to become a maintainer, please either make a PR to CODEOWNERS proposing adding yourself, or email me ([email protected]) and Petros ([email protected]) with any questions you have. I'm happy to email or video conference. |
Dear @danieldreier, thank you for your reply and explanation. This PR doesn't change the Swift logic and reviewers don't need to have a Swift knowledge. I'd prefer to avoid decisions regarding a maintainer role if possible, since this PR just synchronizes auth options between upstream terraform-provider-openstack and resolves a https://github.com/terraform-providers/terraform-provider-openstack/issues/686 opened by @radeksimko. Please let me know what do you think. |
As a previous maintainer of the OpenStack plugin and as someone who used to work on and review this part of the code in this repository, I can confidently say that the Swift-specific changes being done in this PR are safe. This PR is a result of a request that was made at https://github.com/terraform-providers/terraform-provider-openstack/issues/686. The requested wanted to decouple the authentication logic being shared between the openstack plugin and this Swift remote backend:
Sharing the auth logic was problematic because this caused Work was done to satisfy this decoupling by creating a small package located at There are some changes being made to the actual Swift logic, but they are all amendments to enhance the current authentication to reach feature parity with the authentication work that has happened since https://github.com/terraform-providers/terraform-provider-openstack/issues/686 was made - if that makes sense? Basically, https://github.com/terraform-providers/terraform-provider-openstack/issues/686 was opened, we did a bunch of work to resolve that request, this PR was opened, and then in the meantime, additional authentication amendments were made which has to also be done here in order to use the shared authentication package we created. Again, from reviewing this PR, I feel the changes being made safe. However, if any issues are caused by this PR, I will work with @kayrus on resolving them. Unfortunately I don't have the time to become a full maintainer (I used to), but to help move this PR along, I can commit to ensuring no issues come out of this PR. |
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.
@kayrus @jtopjian thank you for the extended review, thoughtful responses, and the work on contributing this and getting it merged. We'll merge this and include it in the upcoming 0.13 release. I think it makes sense to have discussions about maintainers elsewhere. We'll pin a thread in the terraform community forum and continue that discussion over there. |
Any chance this gets cherry-picked for 0.12.XX release? |
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. |
Terraform 0.13.0 beta 1 launched today with this update! If you have time it would be awesome if you could try it out and make sure it works. |
This PR syncs OpenStack auth options with provider auth options.
See https://github.com/terraform-providers/terraform-provider-openstack/issues/686 for a reference.
/cc @jtopjian @radeksimko