rancher-lets-encrypt
rancher-lets-encrypt copied to clipboard
Accidental Overwriting certificates that are not from LetsEncrypt
Steps to reproduce:
- Add cert from other Certificate Authority (Godaddy, Verisign)
- Name cert in Rancher UI the same as domain used in Rancher-lets-encrypt (test.example.com)
- Start Rancher-lets-encrypt service
- RLE looks for certificate in Rancher API that matches hostname (test.example.com)
- RLE finds cert, but it is not signed by LetsEncrypt CA, so it deletes the existing (test.example.com) certificate
- RLE then provisions a Lets-encrypt certificate matching (test.example.com) and uploads it through the Rancher API.
Outcome: Old certificate from CA other than Lets-Encrypt is overwritten.
Desired: Any certificate that is named the same as hostname, but not signed by either "Staging" or "Production" Lets-encrypt CA should be ignored.
Confirmed.