fix(compute/tls): support for checking certificate chains (#11683)

## Problem

It seems are production-ready cert-manager setup now includes a full
certificate chain. This was not accounted for and the decoder would
error.

## Summary of changes

Change the way we decode certificates to support cert-chains, ignoring
all but the first cert.

This also changes a log line to not use multi-line errors.

~~I have tested this code manually against real certificates/keys, I
didn't want to embed those in a test just yet, not until the cert
expires in 24 hours.~~
This commit is contained in:
Conrad Ludgate
2025-04-25 10:09:14 +01:00
committed by GitHub
parent 5d91d4e843
commit afe9b27983
3 changed files with 88 additions and 6 deletions

1
Cargo.lock generated
View File

@@ -1323,7 +1323,6 @@ dependencies = [
"serde_json",
"serde_with",
"signal-hook",
"spki 0.7.3",
"tar",
"thiserror 1.0.69",
"tokio",