-
Notifications
You must be signed in to change notification settings - Fork 9.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: mark password attribute of aws_iam_user_login_profile as sensitive #39991
feat: mark password attribute of aws_iam_user_login_profile as sensitive #39991
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
LGTM 🎉
% make testacc PKG=iam TESTS=TestAccIAMUserLoginProfile_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/iam/... -v -count 1 -parallel 20 -run='TestAccIAMUserLoginProfile_' -timeout 360m
2024/11/04 10:35:22 Initializing Terraform AWS Provider...
--- PASS: TestAccIAMUserLoginProfile_nogpg (15.71s)
--- PASS: TestAccIAMUserLoginProfile_passwordLength (15.74s)
--- PASS: TestAccIAMUserLoginProfile_keybase (15.75s)
--- PASS: TestAccIAMUserLoginProfile_keybaseDoesntExist (16.48s)
--- PASS: TestAccIAMUserLoginProfile_notAKey (16.51s)
--- PASS: TestAccIAMUserLoginProfile_disappears (23.47s)
--- PASS: TestAccIAMUserLoginProfile_basic (23.47s)
--- PASS: TestAccIAMUserLoginProfile_passwordResetRequired (31.20s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/iam 36.142s
Thanks for your contribution, @stefanfreitag! 👍 |
This functionality has been released in v5.75.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! |
Description
As mentioned in #39907 the attribute
password
of the resource is not marked as sensitive. This implies that its value is displayed e.g. when running aterraform destroy
command.By marking this attribute as sensitive the output of same command changes to
The password is no longer displayed.
As part of this pull request I executed the existing tests related to the resource. I did not find any guidance on acceptance tests for this kind of change. If you could point me into a direction it would be great!
Relations
Closes #39907
References
Output from Acceptance Testing