terraform/command/test-fixtures
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
..
apply dos2unix 2014-07-28 10:43:00 -07:00
apply-config-invalid dos2unix 2014-07-28 10:43:00 -07:00
apply-destroy-targeted core: targeted operations 2015-03-31 14:49:38 -05:00
apply-error dos2unix 2014-07-28 10:43:00 -07:00
apply-input command/apply: ask for user variables before validation [GH-736] 2015-01-16 10:46:38 -08:00
apply-sensitive-output core: Add support for marking outputs as sensitive (#6559) 2016-05-09 15:46:07 -04:00
apply-shutdown dos2unix 2014-07-28 10:43:00 -07:00
apply-vars dos2unix 2014-07-28 10:43:00 -07:00
get tests: remove unnecessary symlink 2015-08-31 15:45:43 -05:00
graph dos2unix 2014-07-28 10:43:00 -07:00
init command: init works at a basic level 2014-09-26 16:30:49 -07:00
parallelism command: fix flaky parallelism tests 2015-10-29 15:16:34 -05:00
plan dos2unix 2014-07-28 10:43:00 -07:00
plan-emptydiff command: plan supports detailed exit code 2015-04-01 09:38:19 -07:00
plan-vars dos2unix 2014-07-28 10:43:00 -07:00
push command/push: read name from the config 2015-03-24 13:30:23 -07:00
push-input command/push: read name from the config 2015-03-24 13:30:23 -07:00
push-input-partial command/push: read name from the config 2015-03-24 13:30:23 -07:00
push-tfvars command/push: read terraform.tfvars 2015-04-07 15:34:06 -07:00
refresh dos2unix 2014-07-28 10:43:00 -07:00
refresh-output core: show outputs after `terraform refresh` 2015-06-15 10:41:42 -05:00
refresh-unset-var Add failing test replicating #4013 2015-11-23 10:32:46 +02:00
refresh-var dos2unix 2014-07-28 10:43:00 -07:00
validate-invalid Added verify command 2016-02-08 12:48:14 +01:00
validate-valid Added verify command 2016-02-08 12:48:14 +01:00