-
Notifications
You must be signed in to change notification settings - Fork 2k
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(kms): add import sample #3574
Conversation
Here is the summary of changes. You are about to add 5 region tags.
This comment is generated by snippet-bot.
|
f641600
to
bdde44f
Compare
bdde44f
to
6a297d3
Compare
6a297d3
to
241f887
Compare
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.
Thanks for the PR. LGTM, a couple nits only from my end.
I'll reassign this to a language reviewer.
// const locationId = 'us-east1'; | ||
// const keyRingId = 'my-key-ring'; | ||
// const cryptoKeyId = 'my-imported-key'; | ||
// const cryptoKeyVersionId = '1'; |
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.
Can we add a docs link on where to get more information on the params?
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.
These samples are meant to be embedded within https://cloud.google.com/kms/docs/importing-a-key - there is already fairly detailed textual description for all of these parameters that is not language-specific. (Or are you just asking for more context /outside/ the samples?
importJobId: id, | ||
importJob: { | ||
protectionLevel: 'HSM', | ||
importMethod: 'RSA_OAEP_3072_SHA256', |
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.
A context doc link would be helpful!
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.
This shouldn't be inline in the sample, since it's already included in the sample context.
See https://cloud.google.com/kms/docs/importing-a-key#create_importjob
bd4715b
to
bab4d1f
Compare
Replaces #3542