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 info from tf output #670

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amitsagtani97
Copy link
Contributor

While trying to make a new test environment from cailleach(https://github.com/zinfra/cailleach/pull/1869)

and running command make apply command, I got the following error -

➜  wire-server-deploy git:(master) ✗ make apply

if [ -f /Users/asagtani/Wireapp/cailleach/environments/amit-sftd/custom.tf ]; then ln -sf /Users/asagtani/Wireapp/cailleach/environments/amit-sftd/custom.tf /Users/asagtani/Wireapp/wire-server-deploy/terraform/environment/custom.tf; else rm -f /Users/asagtani/Wireapp/wire-server-deploy/terraform/environment/custom.tf; fi
cd /Users/asagtani/Wireapp/wire-server-deploy/terraform/environment \
&& source /Users/asagtani/Wireapp/cailleach/environments/amit-sftd/hcloud-token.dec \
&& terraform apply -var-file=/Users/asagtani/Wireapp/cailleach/environments/amit-sftd/terraform.tfvars
╷
│ Error: Output refers to sensitive values
│ 
│   on inventory.tf line 5:
│    5: output "inventory" {
│ 
│ To reduce the risk of accidentally exporting sensitive data that was intended to
│ be only internal, Terraform requires that any root module output containing
│ sensitive data be explicitly marked as sensitive, to confirm your intent.
│ 
│ If you do intend to export this data, annotate the output value as sensitive by
│ adding the following argument:
│     sensitive = true
╵
make: *** [Makefile:49: apply] Error 1

Added the sensitive = true flag to fix the above issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants