terraform-provider-archive
terraform-provider-archive copied to clipboard
Feature Request: sensitive content
Provide a way to pass sensitive content to archive_file
. At the moment there is no other way to mask a variable or flag an input as sensitive than at the provider level (https://github.com/hashicorp/terraform/issues/16643#issuecomment-344377348).
Example use case is a rendered template_file
with secrets injected into it that we would like to zip.
Three different ways this could be implemented:
data "archive_file" "foobar" {
type = "zip"
output_path = "${path.module}/foobar.zip"
source {
content = "${local.secret}"
filename = "bar"
sensitive = true
}
}
data "archive_file" "foobar" {
type = "zip"
output_path = "${path.module}/foobar.zip"
source {
sensitive_content = "${local.secret}"
filename = "bar"
}
}
data "archive_file" "foobar" {
type = "zip"
output_path = "${path.module}/foobar.zip"
sensitive_source {
content = "${local.secret}"
filename = "bar"
}
}
Any progress on this?
We need this to obscure secrets.
Nudge
We need this to hide some secrets from our tfstate.