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

A password from grafana_user resource is stored in state as plain text #162

Closed
paweloczadly opened this issue Feb 2, 2021 · 1 comment
Closed

Comments

@paweloczadly
Copy link

Terraform Version

$ terraform -v
Terraform v0.14.5
+ provider registry.terraform.io/grafana/grafana v1.8.1

Affected Resource

grafana_user

Terraform Configuration Files

resource "grafana_user" "user" {
  email    = "user@example.com"
  login    = "user@example.com"
  password = "my-password"
}

Debug Output

n/a

Panic Output

n/a

Expected Behavior

Password is not stored in the state file in the plain text.

Actual Behavior

Password is required, but the doc mentioned it's optional. Moreover it is stored in the state file in the plain text which is insecurity and generally a very bad practice.

Steps to Reproduce

  1. terraform init
  2. terraform apply

Important Factoids

No.

References

n/a

@nikosmeds
Copy link
Contributor

Hey @paweloczadly 👋

The docs have been fixed in #187.

Regarding the password parameter, it is correctly set as Sensitive.

"password": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
Description: "The password for the Grafana user.",
},

Terraform state configurations are outside the scope of this provider, see

Going to close this issue, but please re-open if necessary.

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

2 participants