Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passwords and tokens to be sensitive #1844

Conversation

modular-magician
Copy link
Collaborator

Notification channels are configured by sending tokens and passwords via
labels. This change allows the sensitive labels to be configured in a
separate block so that they can be marked as Sensitive and hidden from plan
output. Encoders and Decoders are used to manipulate the labels block before
it is passed to the expanders/flatteners.

The token can be specified in either place right now, but the intent is to
remove the ability to manage these from being managed via the "labels" block
in the next breaking change.

fixes hashicorp/terraform-provider-google#5369

Release Note Template for Downstream PRs (will be copied)

monitoring: Added `sensitive_labels` to `google_monitoring_notification_channel` so that labels like `password` and `auth_token` can be managed separately from the other labels and marked as sensitive.

Derived from GoogleCloudPlatform/magic-modules#3177

* Allow passwords and tokens to be sensitive

Notification channels are configured by sending tokens and passwords via
labels. This change allows the sensitive labels to be configured in a
separate block so that they can be marked as Sensitive and hidden from plan
output. Encoders and Decoders are used to manipulate the labels block before
it is passed to the expanders/flatteners.

The token can be specified in either place right now, but the intent is to
remove the ability to manage these from being managed via the "labels" block
in the next breaking change.

* update description and remove old files

* Add sensitive label example

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit ecba8cf into hashicorp:master Mar 10, 2020
@modular-magician modular-magician deleted the downstream-pr-70e0b5824f73f8a2b47f4432b546406845312ef3 branch November 16, 2024 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_monitoring_notification_channel labels field not marked Sensitive
1 participant