Skip to content

fix: always keep original client certificate key, backend no longer returns it [sc-23507] #308

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion checkly/resource_client_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ func clientCertificateFromResourceData(d *schema.ResourceData) (checkly.ClientCe
func resourceDataFromClientCertificate(c *checkly.ClientCertificate, d *schema.ResourceData) error {
d.Set("host", c.Host)
d.Set("certificate", c.Certificate)
d.Set("private_key", c.PrivateKey)
// The backend does not return a value for PrivateKey anymore, though it
// used to. The value should not change by itself, so we can simply keep
// the original state.
// d.Set("private_key", c.PrivateKey)
d.Set("trusted_ca", c.TrustedCA)
// The backend does not return a value for Passphrase and even it did, the
// value would be encrypted. Thus, the value should never be modified.
Expand Down
Loading