-
Notifications
You must be signed in to change notification settings - Fork 0
Retrieve address from KMS #2
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
Conversation
if err != nil { | ||
return nil, fmt.Errorf("kms get public key request failed: %w", err) | ||
} | ||
fmt.Printf("PEM:\n%s", result.Pem) |
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.
Are these prints intended to be in the final output or just for debug? Similar for L40.
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.
debug
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.
If it's only for debug, then it should be commented out, right?
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.
As an internal tool, it is convenient and informative for the user to check whether each step is correct or not.
Get addresses based on the KMS config for client usage.