aksio-insurtech / AppManager

MIT License
4 stars 2 forks source link

Automate generation of certificates using Lets Encrypt #131

Open einari opened 1 year ago

einari commented 1 year ago

When setting up an ingress and associating a domain with we should automatically at that point use Lets Encrypt and ACME to generate a new certificate.

In addition to this we should have a job that runs on a regular cadence to renew certificates that will soon expire.

For verification of the the origin and domain association, we should expose a route that is unprotected that we could expose from our Ingress middleware.

einari commented 1 year ago

The process should be:

We would need to take the token generated during the ACME process and put it on the file share for the Ingress. The ingress middleware would serve the token at http://<YOUR_DOMAIN>/.well-known/acme-challenge/<TOKEN>. Once we get the certificate we would replace the self signed certificate in the certificate store.

einari commented 1 year ago

For renewals we need a reminder that reminds us ahead of the expiry of the certificate and we perform the last 2 steps of the list above.

einari commented 1 year ago

For inspiration: https://dev.to/shibayan/how-to-quickly-setup-a-lets-encrypt-certificate-in-azure-container-apps-3nd7

einari commented 1 year ago

Look into the API for how a renewal is done