-
Notifications
You must be signed in to change notification settings - Fork 24
feat(kms): Add KMS under beta #935
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
base: main
Are you sure you want to change the base?
Conversation
@rubenhoenle are there any updates on the PR? I would love to use it in my pipeline. |
|
||
var ( | ||
testProjectId = uuid.NewString() | ||
testRegion = "eu01" |
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.
testRegion = "eu01" | |
const testRegion = "eu01" |
Well, the region is required for every API endpoint, it will just be "eu01" for now all the time. But please use the regular multi-region implementation like we do for all the other commands. So we're ready for the future :)
|
2. Switched flags to args and vice versa to keep the clean format all the way
After you put so much effort in another round of reviews, @rubenhoenle, I went through everything again really carefully and:
I also carefully tested all possible commands and fixed small issues that appeared. Namely, 1) not trying to output a non existing wrapping key because it was just deleted, and 2) properly adding the 'protection' field required for key creation in the /v1. I think now I have for the first time really understood your intentions and I can only imagine your frustration with me. It seems quite obvious what you wanted and I just didn't do it multiple times. This is an absolute monster PR and hope these new commits moved it forward a lot. |
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.
@JanStern looks pretty great overall, I started using the kms with CLI locally and found some inconistencies in the examples. Will do some manual testing now to find possible further issues. But we're getting close to the merge point 😊
You are absolutely right! Co-authored-by: Ruben Hönle <[email protected]>
Oh, nothing to feel sorry about here. We're thankful for all contributions, also for yours! It can take some time to get into a new codebase and I'm also not thaaat long in the team now, so I hope I can also improve my review process a little bit. This PR was a challenge for both of us ^^ The only thing I would ask you for upcoming contributions (and also a lesson I learned from this PR): Try to split PRs into smaller ones. So e.g. for the kms here, consider doing it like that:
Then you have smaller PRs, which can be reviewed & merged faster - and the most important: You get to know the codebase within the first PR and both you and us will have a much better time during the upcoming PRs. As said, also a lesson for me to reject such a monster PR in the first place and ask the author to split it apart before even trying to review such a monster. Will also try to include this in our contribution guide 😊 |
Co-authored-by: Ruben Hönle <[email protected]>
Co-authored-by: Ruben Hönle <[email protected]>
Co-authored-by: Ruben Hönle <[email protected]>
Co-authored-by: Ruben Hönle <[email protected]>
Co-authored-by: Ruben Hönle <[email protected]>
Description
relates to #934
KMS has been added to the CLI. Now the following commands exist:
Checklist
make fmt
make generate-docs
(will be checked by CI)make test
(will be checked by CI)make lint
(will be checked by CI)Important Decisions
The CLI implementation of KMS reflects the state of the API, which includes some seemingly unfinished decisions.
Hope this actually helps and huge thanks to whomever tries to tackle this monster merge.