Open vishnu-techprescient-teika opened 9 months ago
Hi, I am trying to test with kubectl manifest file, but tfmask is not working.
Terraform will perform the following actions: # kubectl_manifest.test will be updated in-place ~ resource "kubectl_manifest" "test" { id = "/api/v1/namespaces/default/configmaps/vishnu-test-demo" name = "vishnu-test-demo" ~ yaml_body = (sensitive value) ~ yaml_body_parsed = <<-EOT apiVersion: v1 data: - password: ijMmsd1piZwz + password: ijMms1piZwz_paa kind: ConfigMap metadata: name: vishnu-test-demo EOT # (12 unchanged attributes hidden) } Plan: 0 to add, 1 to change, 0 to destroy.
Terraform will perform the following actions: # kubectl_manifest.test will be updated in-place ~ resource "kubectl_manifest" "test" { id = "######################################################" name = "vishnu-test-demo" ~ yaml_body = (sensitive value) ~ yaml_body_parsed = <<-EOT apiVersion: v1 data: - password: ijMmsd1piZwz + password: ijMms1piZwz_paa kind: ConfigMap metadata: name: vishnu-test-demo EOT # (12 unchanged attributes hidden) } Plan: 0 to add, 1 to change, 0 to destroy.
My env params:
export TFMASK_CHAR="#" export TFMASK_VALUES_REGEX="(?i)^.*(oauth|secret|token|password|key|result|id).*$"
command : terraform plan -var-file=staging.tfvars -no-color | tfmask
terraform plan -var-file=staging.tfvars -no-color | tfmask
Expected was to also mask the password section
I am using macos and build the latest release 0.7.0 from source.
macos
0.7.0
Hi, I am trying to test with kubectl manifest file, but tfmask is not working.
My env params:
command :
terraform plan -var-file=staging.tfvars -no-color | tfmask
Expected was to also mask the password section
I am using
macos
and build the latest release0.7.0
from source.