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

mask external provider data #14

Open
stempher opened this issue May 7, 2020 · 0 comments
Open

mask external provider data #14

stempher opened this issue May 7, 2020 · 0 comments

Comments

@stempher
Copy link

stempher commented May 7, 2020

Hi
I use an external provider and in the data block I can’t mask the token

data "external" "sa" {
  program = ["sh", "${path.module}/get_permission.sh"]
  query   = {
    token     = var.token
    url       = var.url
  }
}

Run:

export TFMASK_CHAR="#"
export TFMASK_VALUES_REGEX="(?i)^.*(secret|password|oauth|token|key).*$"
terraform plan -no-color | tfmask

Plan is not mask:

 <= data "external" "sa"  {
       + id      = (known after apply)
       + program = [
           + "sh",
           + "modules/k8s/get_permission.sh",
         ]
       + query   = {
           + "token"     = "eyJhbGci...."
           + "url"       = "https://..."
         }
       + result  = (known after apply)
     }
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

No branches or pull requests

1 participant