Skip to content

Commit

Permalink
chore: do not show sensitive certificate details in Terraform cmd out…
Browse files Browse the repository at this point in the history
…put.
  • Loading branch information
feng-zhe committed Dec 20, 2023
1 parent 49252d7 commit 7f448ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,20 +787,23 @@ is set to true. Defaults to ZONAL.`,
Optional: true,
ForceNew: true,
AtLeastOneOf: replicaConfigurationKeys,
Sensitive: true,
Description: `PEM representation of the trusted CA's x509 certificate.`,
},
"client_certificate": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
AtLeastOneOf: replicaConfigurationKeys,
Sensitive: true,
Description: `PEM representation of the replica's x509 certificate.`,
},
"client_key": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
AtLeastOneOf: replicaConfigurationKeys,
Sensitive: true,
Description: `PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.`,
},
"connect_retry_interval": {
Expand Down Expand Up @@ -865,8 +868,9 @@ is set to true. Defaults to ZONAL.`,
Description: `The configuration for replication.`,
},
"server_ca_cert": {
Type: schema.TypeList,
Computed: true,
Type: schema.TypeList,
Computed: true,
Sensitive: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"cert": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func ResourceSqlSslCert() *schema.Resource {
"cert": {
Type: schema.TypeString,
Computed: true,
Sensitive: true,
Description: `The actual certificate data for this client certificate.`,
},

Expand Down Expand Up @@ -87,6 +88,7 @@ func ResourceSqlSslCert() *schema.Resource {
"server_ca_cert": {
Type: schema.TypeString,
Computed: true,
Sensitive: true,
Description: `The CA cert of the server this client cert was generated from.`,
},

Expand Down

0 comments on commit 7f448ef

Please sign in to comment.