Skip to content
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

Add encrypted SES SMTP password #19579

Merged
merged 4 commits into from
Jul 12, 2021
Merged

Add encrypted SES SMTP password #19579

merged 4 commits into from
Jul 12, 2021

Conversation

bartoszj
Copy link
Contributor

@bartoszj bartoszj commented May 29, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Encrypt SES SMTP password like IAM secret, by using PGP/KeyBase.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSAccessKey'                                                                                                                                            
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAccessKey -timeout 180m
=== RUN   TestAccAWSAccessKey_basic
=== PAUSE TestAccAWSAccessKey_basic
=== RUN   TestAccAWSAccessKey_encrypted
=== PAUSE TestAccAWSAccessKey_encrypted
=== RUN   TestAccAWSAccessKey_Status
=== PAUSE TestAccAWSAccessKey_Status
=== CONT  TestAccAWSAccessKey_basic
=== CONT  TestAccAWSAccessKey_Status
=== CONT  TestAccAWSAccessKey_encrypted
--- PASS: TestAccAWSAccessKey_encrypted (45.29s)
--- PASS: TestAccAWSAccessKey_basic (46.11s)
--- PASS: TestAccAWSAccessKey_Status (82.09s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	84.036s

@bartoszj bartoszj requested a review from a team as a code owner May 29, 2021 16:25
@ghost ghost added size/S Managed by automation to categorize the size of a PR. labels May 29, 2021
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. service/iam Issues and PRs that pertain to the iam service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels May 29, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @bartoszj 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

Copy link

@gupta-aayush gupta-aayush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bartoszj for adding these changes. It will surely help in generating SMTP credentials through terraform with encryption. I would request hashicorp team to approve this PR asap.

@YakDriver YakDriver removed the needs-triage Waiting for first response or review from a maintainer. label Jul 12, 2021
@YakDriver YakDriver self-assigned this Jul 12, 2021
@github-actions github-actions bot added size/L Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Jul 12, 2021
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🎉

Output from acceptance tests (us-west-2):

--- PASS: TestAccAWSAccessKey_basic (13.31s)
--- PASS: TestAccAWSAccessKey_encrypted (13.38s)
--- PASS: TestAccAWSAccessKey_status (28.23s)
--- PASS: TestSesSmtpPasswordFromSecretKeySigV4 (0.00s)

Output from acceptance tests (GovCloud):

--- PASS: TestAccAWSAccessKey_basic (18.52s)
--- PASS: TestAccAWSAccessKey_encrypted (18.63s)
--- PASS: TestAccAWSAccessKey_status (42.65s)
--- PASS: TestSesSmtpPasswordFromSecretKeySigV4 (0.00s)

@YakDriver YakDriver added this to the v3.50.0 milestone Jul 12, 2021
@YakDriver YakDriver merged commit a8eb4c7 into hashicorp:main Jul 12, 2021
@github-actions
Copy link

This functionality has been released in v3.50.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/iam Issues and PRs that pertain to the iam service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants