From c47b906fcdad1a2ca51e836ee0f5096b57ed8ad9 Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 1 May 2020 19:25:16 -0400 Subject: [PATCH] Change credentials to sensitive (#3462) (#2026) Signed-off-by: Modular Magician --- .changelog/3462.txt | 3 +++ google-beta/data_source_storage_object_signed_url.go | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changelog/3462.txt diff --git a/.changelog/3462.txt b/.changelog/3462.txt new file mode 100644 index 0000000000..ee5f9f5937 --- /dev/null +++ b/.changelog/3462.txt @@ -0,0 +1,3 @@ +```release-note:bug +storage: Marked the credentials field in `google_storage_object_signed_url` as sensitive so it doesn't expose private credentials. +``` diff --git a/google-beta/data_source_storage_object_signed_url.go b/google-beta/data_source_storage_object_signed_url.go index b57d314e6c..a14a0ec5dd 100644 --- a/google-beta/data_source_storage_object_signed_url.go +++ b/google-beta/data_source_storage_object_signed_url.go @@ -51,8 +51,9 @@ func dataSourceGoogleSignedUrl() *schema.Resource { Default: "", }, "credentials": { - Type: schema.TypeString, - Optional: true, + Type: schema.TypeString, + Sensitive: true, + Optional: true, }, "duration": { Type: schema.TypeString,