Files
opentf/command
James Nugent b62f6af158 core: Add support for marking outputs as sensitive (#6559)
* core: Add support for marking outputs as sensitive

This commit allows an output to be marked "sensitive", in which case the
value is redacted in the post-refresh and post-apply list of outputs.

For example, the configuration:

```
variable "input" {
    default = "Hello world"
}

output "notsensitive" {
    value = "${var.input}"
}

output "sensitive" {
    sensitive = true
    value = "${var.input}"
}
```

Would result in the output:

```
terraform apply

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

  notsensitive = Hello world
  sensitive    = <sensitive>
```

The `terraform output` command continues to display the value as before.

Limitations: Note that sensitivity is not tracked internally, so if the
output is interpolated in another module into a resource, the value will
be displayed. The value is still present in the state.
2016-05-09 15:46:07 -04:00
..
2015-09-11 11:56:20 -07:00
2015-04-29 13:07:13 -05:00
2016-03-11 12:38:57 -06:00
2015-09-13 14:40:36 -07:00
2016-04-13 12:02:24 -07:00
2015-09-11 11:56:20 -07:00
2015-09-11 11:56:20 -07:00
2015-06-22 13:14:01 +01:00
2015-06-22 13:14:01 +01:00
2015-06-22 13:14:01 +01:00
2015-09-11 11:56:20 -07:00
2015-02-26 10:56:45 -08:00
2015-02-26 14:30:02 -08:00
2014-09-29 14:00:35 -07:00
2016-03-11 12:38:57 -06:00
2016-03-11 12:38:57 -06:00
2014-05-24 12:04:43 -07:00