Skip to content

Commit

Permalink
Merge pull request #561 from terraform-providers/f-compute-vpn-tunnel…
Browse files Browse the repository at this point in the history
…-secret-sensitive

r/compute_vpn_tunnel: Mark 'shared_secret' as sensitive
  • Loading branch information
radeksimko committed Oct 10, 2017
2 parents ee66f0b + 0e5b4b0 commit 96ac825
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions google/resource_compute_vpn_tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ func resourceComputeVpnTunnel() *schema.Resource {
},

"shared_secret": &schema.Schema{
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
Sensitive: true,
ForceNew: true,
},

"target_vpn_gateway": &schema.Schema{
Expand Down
3 changes: 3 additions & 0 deletions website/docs/r/compute_vpn_tunnel.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ description: |-
Manages a VPN Tunnel to the GCE network. For more info, read the
[documentation](https://cloud.google.com/compute/docs/vpn).

~> **Note:** All arguments including the `shared_secret` will be stored in the raw state as plain-text.
[Read more about sensitive data in state](/docs/state/sensitive-data.html).

## Example Usage

```hcl
Expand Down

0 comments on commit 96ac825

Please sign in to comment.