Add case to compactValueStr not to expose sensitive vals in diagnostics
This commit is contained in:
parent
3e8b125e53
commit
61c78fd3b9
|
@ -302,6 +302,10 @@ func compactValueStr(val cty.Value) string {
|
|||
// helpful but concise messages in diagnostics. It is not comprehensive
|
||||
// nor intended to be used for other purposes.
|
||||
|
||||
if val.ContainsMarked() {
|
||||
return "(sensitive value)"
|
||||
}
|
||||
|
||||
ty := val.Type()
|
||||
switch {
|
||||
case val.IsNull():
|
||||
|
|
Loading…
Reference in New Issue