-
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
provider/aws: add ses_smtp_password to iam_access_key #3165
Conversation
AWS gives instructions for converting AWS credentials into SES SMTP credentials here: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html#smtp-credentials-convert This implements their algorithm and yields the result as an attribute on `iam_access_key`.
3673000
to
eb150ae
Compare
if key == nil { | ||
return "" | ||
} | ||
version := byte(0x02) |
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 don't think the byte cast is necessary, but if it helps for clarity purposes then 👍
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 think I'm going to leave it for verbosity's sake, but noted!
LGTM |
provider/aws: add ses_smtp_password to iam_access_key
@@ -55,5 +55,8 @@ The following attributes are exported: | |||
* `id` - The access key ID. | |||
* `user` - The IAM user associated with this access key. | |||
* `secret` - The secret access key. Note that this will be written to the state file. | |||
* `ses_smtp_password` - The secret access key converted into an SES SMTP |
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.
At this point, shouldn't this be encrypted with PGP in the same way the secret
is?
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. |
AWS gives instructions for converting AWS credentials into SES SMTP
credentials here:
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html#smtp-credentials-convert
This implements their algorithm and yields the result as an attribute on
iam_access_key
.