terraform/config
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
..
module Add hint to download modules for new users. 2016-02-17 11:32:44 -05:00
test-fixtures config: remove missing equals test to fix build 2016-03-21 10:39:20 -05:00
append.go config: allow atlas block 2015-03-24 13:30:22 -07:00
append_test.go removed extra parentheses 2015-10-08 15:48:04 +03:00
config.go core: Add support for marking outputs as sensitive (#6559) 2016-05-09 15:46:07 -04:00
config_string.go core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
config_test.go config: remove missing equals test to fix build 2016-03-21 10:39:20 -05:00
config_tree.go config: make Merge an exported func 2014-07-18 17:05:22 -07:00
import_tree.go Condense switch fallthroughs into expr lists 2015-05-26 21:52:36 -04:00
interpolate.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
interpolate_funcs.go config: new interpolation function jsonencode 2016-03-29 07:38:58 -07:00
interpolate_funcs_test.go deps: Update call sites of hil.Eval from update 2016-04-18 16:37:12 -07:00
interpolate_test.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
interpolate_walk.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
interpolate_walk_test.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
lang.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
loader.go config: new HCL API 2015-11-07 16:53:42 -08:00
loader_hcl.go core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
loader_hcl_test.go config: HCL loader 2014-08-11 09:58:53 -07:00
loader_test.go core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
merge.go config: allow atlas block 2015-03-24 13:30:22 -07:00
merge_test.go removed extra parentheses 2015-10-08 15:48:04 +03:00
raw_config.go deps: Update call sites of hil.Eval from update 2016-04-18 16:37:12 -07:00
raw_config_test.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
string_list.go go fmt the "compact" function changes. 2015-10-10 15:17:25 -07:00
string_list_test.go Add tests for empty string lists 2015-10-08 17:32:54 +02:00