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

resource/aws_cognito_user_pool_client: Mark client secret as sensitive #13680

Merged

Conversation

garretruh
Copy link
Contributor

@garretruh garretruh commented Jun 8, 2020

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

Release note for CHANGELOG:

resource/aws_cognito_user_pool_client: Mark `client_secret` as sensitive

Prevent the sensitive client_secret attribute being leaked in logs.

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSCognitoUserPoolClient'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCognitoUserPoolClient -timeout 120m
=== RUN   TestAccAWSCognitoUserPoolClient_basic
=== PAUSE TestAccAWSCognitoUserPoolClient_basic
=== RUN   TestAccAWSCognitoUserPoolClient_RefreshTokenValidity
=== PAUSE TestAccAWSCognitoUserPoolClient_RefreshTokenValidity
=== RUN   TestAccAWSCognitoUserPoolClient_Name
=== PAUSE TestAccAWSCognitoUserPoolClient_Name
=== RUN   TestAccAWSCognitoUserPoolClient_allFields
=== PAUSE TestAccAWSCognitoUserPoolClient_allFields
=== RUN   TestAccAWSCognitoUserPoolClient_allFieldsUpdatingOneField
=== PAUSE TestAccAWSCognitoUserPoolClient_allFieldsUpdatingOneField
=== RUN   TestAccAWSCognitoUserPoolClient_analyticsConfig
=== PAUSE TestAccAWSCognitoUserPoolClient_analyticsConfig
=== RUN   TestAccAWSCognitoUserPoolClient_disappears
=== PAUSE TestAccAWSCognitoUserPoolClient_disappears
=== CONT  TestAccAWSCognitoUserPoolClient_basic
=== CONT  TestAccAWSCognitoUserPoolClient_allFieldsUpdatingOneField
=== CONT  TestAccAWSCognitoUserPoolClient_disappears
=== CONT  TestAccAWSCognitoUserPoolClient_analyticsConfig
=== CONT  TestAccAWSCognitoUserPoolClient_Name
=== CONT  TestAccAWSCognitoUserPoolClient_allFields
=== CONT  TestAccAWSCognitoUserPoolClient_RefreshTokenValidity
--- PASS: TestAccAWSCognitoUserPoolClient_disappears (19.21s)
--- PASS: TestAccAWSCognitoUserPoolClient_allFields (22.39s)
--- PASS: TestAccAWSCognitoUserPoolClient_basic (22.45s)
--- PASS: TestAccAWSCognitoUserPoolClient_allFieldsUpdatingOneField (35.62s)
--- PASS: TestAccAWSCognitoUserPoolClient_Name (36.20s)
--- PASS: TestAccAWSCognitoUserPoolClient_RefreshTokenValidity (36.39s)
--- PASS: TestAccAWSCognitoUserPoolClient_analyticsConfig (59.23s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	59.304s

Prevent the sensitive client_secret attribute being leaked in logs.
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/cognito needs-triage Waiting for first response or review from a maintainer. labels Jun 8, 2020
@garretruh garretruh marked this pull request as ready for review June 8, 2020 21:41
@garretruh garretruh requested a review from a team June 8, 2020 21:41
@bflad bflad removed the needs-triage Waiting for first response or review from a maintainer. label Jun 12, 2020
Copy link
Member

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Thank you, @garretruh! 🚀

@bflad bflad added this to the v2.67.0 milestone Jun 12, 2020
@bflad bflad merged commit d9df6d1 into hashicorp:master Jun 12, 2020
bflad added a commit that referenced this pull request Jun 12, 2020
@garretruh garretruh deleted the bugfix/cognito-sensitive-client-secret branch June 13, 2020 15:14
@ghost
Copy link

ghost commented Jun 19, 2020

This has been released in version 2.67.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 for triage. Thanks!

@ghost
Copy link

ghost commented Jul 12, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Jul 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants