From 0e5b4b0597cbcade54fd2a87804505e93f2303b6 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Tue, 10 Oct 2017 12:54:47 +0100 Subject: [PATCH] r/compute_vpn_tunnel: Mark 'shared_secret' as sensitive --- google/resource_compute_vpn_tunnel.go | 7 ++++--- website/docs/r/compute_vpn_tunnel.html.markdown | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/google/resource_compute_vpn_tunnel.go b/google/resource_compute_vpn_tunnel.go index 313df505..435e4a66 100644 --- a/google/resource_compute_vpn_tunnel.go +++ b/google/resource_compute_vpn_tunnel.go @@ -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{ diff --git a/website/docs/r/compute_vpn_tunnel.html.markdown b/website/docs/r/compute_vpn_tunnel.html.markdown index 0fa53c89..dcac4b8a 100644 --- a/website/docs/r/compute_vpn_tunnel.html.markdown +++ b/website/docs/r/compute_vpn_tunnel.html.markdown @@ -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