sozu-proxy / sozu

Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!
https://www.sozu.io/
GNU Affero General Public License v3.0
3.01k stars 187 forks source link

store all certificates, resolve the longer-lived ones #1115

Closed Keksoj closed 3 months ago

Keksoj commented 3 months ago

Until now, Sōzu replaces shorter-lived certificates when adding a new one.

This behaviour is imperfectly implement, and leads occasionnaly to confusing behaviours: a certificate with 2 domain names would be removed by a 1-domain-name certificate, leaving one of the domain names unresolved.

Instead of fixing the replacement of certificates, this PR changes the behaviour of the CertificateResolver: