Skip to content

Commit 8f2a0a4

Browse files
authored
Make Slack webhook URL fields sensitive (#631)
1 parent 79f3748 commit 8f2a0a4

4 files changed

+12
-8
lines changed

sysdig/data_source_sysdig_monitor_notification_channel_slack.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ func dataSourceSysdigMonitorNotificationChannelSlack() *schema.Resource {
2121

2222
Schema: createMonitorNotificationChannelSchema(map[string]*schema.Schema{
2323
"url": {
24-
Type: schema.TypeString,
25-
Computed: true,
24+
Type: schema.TypeString,
25+
Computed: true,
26+
Sensitive: true,
2627
},
2728
"channel": {
2829
Type: schema.TypeString,

sysdig/data_source_sysdig_secure_notification_channel_slack.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ func dataSourceSysdigSecureNotificationChannelSlack() *schema.Resource {
2121

2222
Schema: createSecureNotificationChannelSchema(map[string]*schema.Schema{
2323
"url": {
24-
Type: schema.TypeString,
25-
Computed: true,
24+
Type: schema.TypeString,
25+
Computed: true,
26+
Sensitive: true,
2627
},
2728
"channel": {
2829
Type: schema.TypeString,

sysdig/resource_sysdig_monitor_notification_channel_slack.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ func resourceSysdigMonitorNotificationChannelSlack() *schema.Resource {
3232

3333
Schema: createMonitorNotificationChannelSchema(map[string]*schema.Schema{
3434
"url": {
35-
Type: schema.TypeString,
36-
Required: true,
35+
Type: schema.TypeString,
36+
Required: true,
37+
Sensitive: true,
3738
},
3839
"channel": {
3940
Type: schema.TypeString,

sysdig/resource_sysdig_secure_notification_channel_slack.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ func resourceSysdigSecureNotificationChannelSlack() *schema.Resource {
3333

3434
Schema: createSecureNotificationChannelSchema(map[string]*schema.Schema{
3535
"url": {
36-
Type: schema.TypeString,
37-
Required: true,
36+
Type: schema.TypeString,
37+
Required: true,
38+
Sensitive: true,
3839
},
3940
"channel": {
4041
Type: schema.TypeString,

0 commit comments

Comments
 (0)