Skip to content

Sensitive inputs are visible in terminal #29609

@kamil-wojcik

Description

@kamil-wojcik

Terraform Version

terraform version
Terraform v1.0.7
on linux_amd64

Terraform Configuration Files

variable "secret" {
    sensitive = true
}

variable "plain" {
    sensitive = false
}

Debug Output

terraform plan
var.plain
  Enter a value: plain-value

var.secret
  Enter a value: secret-value


No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are
needed.

Crash Output

Expected Behavior

Input for sensitive variables should be masked

Actual Behavior

When value for sensitive variable is given it is visible on console.

Steps to Reproduce

Additional Context

References

I would be happy to prepare fix for it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions