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

Bug : random_string resource mask is not working #31

Open
SeemaGC-Procore opened this issue Nov 10, 2021 · 0 comments
Open

Bug : random_string resource mask is not working #31

SeemaGC-Procore opened this issue Nov 10, 2021 · 0 comments

Comments

@SeemaGC-Procore
Copy link

SeemaGC-Procore commented Nov 10, 2021

Hi,

I am using the latest version "0.7.0" of tfmask in the Atlantis workflow to run terraform. But random_string will print the generated string in output as ID of the resource. Looks like code related to tfmaskResource is not working in tfmask. Can you please verify this bug.

resource "random_string" "random_password" {
  length      = 16
  upper       = true
  special     = false
  min_numeric = 8
  min_upper   = 4
}

After executing terraform plan from Atlantis workflow.
output:

- resource "random_string" "random_password" {
      - id          = "Gkd4eyO56D26" -> null
      - length      = 32 -> null
      - lower       = true -> null
      - min_lower   = 0 -> null
      - min_numeric = 16 -> null
      - min_special = 0 -> null
      - min_upper   = 4 -> null
      - number      = true -> null
      - result      = "Gkd4eyO56D26" -> null
      - special     = false -> null
      - upper       = true -> null
    }

Plan: 0 to add, 1 to change, 1 to destroy.
@SeemaGC-Procore SeemaGC-Procore changed the title random_string resource mask is not working Bug : random_string resource mask is not working Nov 10, 2021
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