Terraform: Resource aws_directory_service_directory password plain-text in state

Created on 15 Feb 2017  ยท  3Comments  ยท  Source: hashicorp/terraform

Hi,

Terraform Version

0.8.5

Affected Resource(s)

  • aws_directory_service_directory

Terraform Configuration Files

resource "aws_directory_service_directory" "test" {
  type = "MicrosoftAD"
  name = "test.test"
  short_name = "TESTAD"
  password = "ohnomypassword"

  vpc_settings {
    vpc_id = "vpc-00000000"
    subnet_ids = ["subnet-00000001", "subnet-00000002"]
  }
}

Expected Behavior

Where passwords are not retrievable I question the need to have them in the state file?
Terraform also prints the password out in the plan.

Actual Behavior

Password is stored plan-text in state.

References

I couldn't find any other reference to this.

bug provideaws

All 3 comments

Hi @agarstang

Thanks for the issue report here - thanks to @radeksimko, this will now be marked as sensitive in the state as of Terraform 0.9.3 :)

Paul

Just to be clear, the password will remain stored as plain-text in the state, but won't be displayed in plan or apply output anymore. Sensitive data in the state file is more of a generic topic which we plan to address better at some point in the future. See https://www.terraform.io/docs/state/sensitive-data.html for more details

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings