Skip to content

Commit 29af5ba

Browse files
authored
fix(cos): [124743463] tencentcloud_cos_bucket_domain_certificate_attachment set sensitive for cert and private_key (#3411)
* add * add * add
1 parent 24d4562 commit 29af5ba

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changelog/3411.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_cos_bucket_domain_certificate_attachment: set sensitive for `cert` and `private_key`
3+
```

tencentcloud/services/cos/resource_tc_cos_bucket_domain_certificate_attachment.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919

2020
func ResourceTencentCloudCosBucketDomainCertificateAttachment() *schema.Resource {
2121
return &schema.Resource{
22-
Read: resourceTencentCloudCosBucketDomainCertificateAttachmentRead,
2322
Create: resourceTencentCloudCosBucketDomainCertificateAttachmentCreate,
23+
Read: resourceTencentCloudCosBucketDomainCertificateAttachmentRead,
2424
// Update: resourceTencentCloudCosBucketDomainCertificateAttachmentUpdate,
2525
Delete: resourceTencentCloudCosBucketDomainCertificateAttachmentDelete,
2626
Importer: &schema.ResourceImporter{
@@ -74,12 +74,14 @@ func ResourceTencentCloudCosBucketDomainCertificateAttachment() *schema.Resource
7474
Type: schema.TypeString,
7575
Required: true,
7676
ForceNew: true,
77+
Sensitive: true,
7778
Description: "Public key of certificate.",
7879
},
7980
"private_key": {
8081
Type: schema.TypeString,
8182
Required: true,
8283
ForceNew: true,
84+
Sensitive: true,
8385
Description: "Private key of certificate.",
8486
},
8587
},

0 commit comments

Comments
 (0)