terraform/command/jsonplan
Alisdair McDiarmid 5e30d58dc2 command/jsonplan: Add output change sensitivity
When an output value changes, we have a small amount of information we
can convey about its sensitivity. If either the output was previously
marked sensitive, or is currently marked sensitive in the config, this
is tracked in the output change data.

This commit encodes this boolean in the change struct's
`before_sensitive` and `after_sensitive` fields, in the a way which
matches resource value sensitivity. Since we have so little information
to work with, these two values will always be booleans, and always equal
each.

This is logically consistent with how else we want to obscure sensitive
data: a changing output which was or is marked sensitive should not have
the value shown in human-readable output.
2021-03-26 19:26:11 -04:00
..
doc.go json output of terraform plan (#19687) 2018-12-19 11:08:25 -08:00
module.go command/jsonplan: sort resources by address (#20113) 2019-01-25 09:17:40 -08:00
plan.go command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
plan_test.go command/jsonplan: Add sensitive value mapping data 2021-03-26 19:26:10 -04:00
resource.go command/show: add provider name to resource changes (#20711) 2019-03-15 13:20:43 -07:00
values.go Mildwonkey/command tests (#24535) 2020-04-06 09:24:23 -07:00
values_test.go Mildwonkey/command tests (#24535) 2020-04-06 09:24:23 -07:00