-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add scaffolding as well as implementation for rotation_handler #1
Conversation
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.
Will take another detailed look
// Example: | ||
// `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*` | ||
// -> `projects/*/locations/*/keyRings/*/cryptoKeys/*` | ||
func getKeyNameFromVersion(keyVersionName string) (string, error) { |
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.
There should be proto helpers for this already I think?
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.
i didn't see anything. https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#pkg-index
apis/v1alpha1/crypto_config_test.go
Outdated
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package v1alpha1 |
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.
it seems odd to me to include an empty test and that this could give a false sense that we are testing?
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.
I put it here in order to make it clear that this is intentionally TODO, as if there was no test file, it could just be an omission.
} | ||
defer kmsClient.Close() | ||
|
||
// TODO: Set up server with mux. https://github.com/abcxyz/jvs/issues/8 |
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.
Tip: a simpler way is to "TODO(#8)"
test |
feat: Add scaffolding as well as implementation for rotation_handler
This is starting to get large, so i thought this was a good time to pause and set up a PR for what i had done so far. The config class is very much TODO at the moment, just the interface set up for the most part. The rotation_handler class is the meat of this PR