We are receiving an error during export with some certificates which seems to be related to the certificate chain. I'm not entirely sure if this is all certs of this type. We were able to work around this by exporting and reimporting the certificate without the chain, but we need the chain to be present in Octopus in order for applications to trust deployments with these certificates.
error json: cannot unmarshal object into Go struct field Certificate.CertificateChain of type string
The issue here was the model used to deserialize certificates did not have the correct structure for certificate chains, and was trying to push them into a string.
Octopus version
2023.2 (Build 13151)
Octoterra version
0.1.823
What happened
We are receiving an error during export with some certificates which seems to be related to the certificate chain. I'm not entirely sure if this is all certs of this type. We were able to work around this by exporting and reimporting the certificate without the chain, but we need the chain to be present in Octopus in order for applications to trust deployments with these certificates.
error json: cannot unmarshal object into Go struct field Certificate.CertificateChain of type string
Octoterra log output
Reproduction steps
Run the tool on an octopus instance with a certificate with an embedded chain.
More Information
No response