Skip to content

Commit dc406bf

Browse files
0x2b3bfa0restyled-io[bot]restyled-commits
authored
Mark keys as sensitive (#92)
* Mark SSH values as sensitive * Restyled by gofmt (#93) Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent d54e341 commit dc406bf

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

iterative/resource_machine.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@ func machineSchema() *map[string]*schema.Schema {
9191
Computed: true,
9292
},
9393
"ssh_private": &schema.Schema{
94-
Type: schema.TypeString,
95-
ForceNew: true,
96-
Optional: true,
97-
Default: "",
94+
Type: schema.TypeString,
95+
ForceNew: true,
96+
Optional: true,
97+
Default: "",
98+
Sensitive: true,
9899
},
99100
"ssh_name": &schema.Schema{
100101
Type: schema.TypeString,

iterative/resource_runner.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@ func resourceRunner() *schema.Resource {
117117
Computed: true,
118118
},
119119
"ssh_private": &schema.Schema{
120-
Type: schema.TypeString,
121-
ForceNew: true,
122-
Optional: true,
123-
Default: "",
120+
Type: schema.TypeString,
121+
ForceNew: true,
122+
Optional: true,
123+
Default: "",
124+
Sensitive: true,
124125
},
125126
"startup_script": &schema.Schema{
126127
Type: schema.TypeString,

0 commit comments

Comments
 (0)