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

Hide sensitive password data from cli output #89

Merged
merged 1 commit into from
Jan 23, 2020
Merged

Hide sensitive password data from cli output #89

merged 1 commit into from
Jan 23, 2020

Conversation

reegnz
Copy link
Contributor

@reegnz reegnz commented Dec 3, 2019

Description

The password should not be printed to stdout by the cli, since it is
sensitive data.

Hiding sensitive data is a must-have when running Terraform in CD
environments. It is good practice to hide sensitive data from CI/CD logs.

See official Terraform docs for details:
https://www.terraform.io/docs/configuration/outputs.html#sensitive-suppressing-values-in-cli-output

The password should not be printed to stdout by the cli, since it is
sensitive data.

Hiding sensitive data is a must-have when running Terraform in CD
environments. It is good practice to hide sensitive data from CI/CD logs.

See official Terraform docs for details:
https://www.terraform.io/docs/configuration/outputs.html#sensitive-suppressing-values-in-cli-output
@pierresteiner
Copy link
Contributor

This make sense, but while you are at it I'd suggest also changing the generation (

resource "random_id" "master_password" {
) from random_id to random_password

@reegnz
Copy link
Contributor Author

reegnz commented Jan 23, 2020

I believe that's a more difficult call to make: that hurts the backward compatibility of the module.

@antonbabenko
Copy link
Member

I think we can use this pull-request for now and then implement a suggestion by @pierresteiner .

FYI random_password resource was introduced in 2.2.0 of random provider: https://github.com/terraform-providers/terraform-provider-random/blob/master/CHANGELOG.md#220-august-08-2019

@antonbabenko antonbabenko merged commit 5083d1c into terraform-aws-modules:master Jan 23, 2020
@antonbabenko
Copy link
Member

v2.12.0 has been just released with this pull-request merged.

@reegnz reegnz deleted the fix/hide_sensitive_output_from_cli branch January 23, 2020 13:15
@antonbabenko
Copy link
Member

v2.14.0 has been just released, it support for random_password resource added.

tomasbackman pushed a commit to tomasbackman/terraform-aws-rds-aurora that referenced this pull request Feb 18, 2020
@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 Apr 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants