Journey towards to securely deploy websites on Kubernetes (Part:1)
Soumyadip Chatterjee
AWS DevOps Engineer| EPAM Systems |Ex-TCS| Terraform ???, |Docker ?? | K8's??| Snowflake ?? | Argo CD?? | Helm ?? | GitLab ?? | Ansible ?? | Certifications:- 2x AWS ??, 1x Azure???, 1x OCI??, 1x Commvault
In this blog we will discuss how we can securely issue a certificate , manages them , and renews them by using multiple offerings of open source tools such as Cert Manager , Let's Encrypt & ACME protocol . So without further delay let's get started from scratch .
Cert Manager is a Kubernetes add-on that automates the management and issuance of TLS (Transport Layer Security) certificates in Kubernetes clusters. It helps to automatically obtain, renew, and manage certificates for your Kubernetes resources (like Ingress, services, etc.), ensuring that your applications are always using valid and secure certificates.
Let's Encrypt is a free, automated, and open Certificate Authority (CA) that provides SSL/TLS certificates for websites. These certificates help secure the communication between a user's browser and a web server by enabling HTTPS. Let's Encrypt is widely used because it offers a simple, automated way to obtain and renew certificates at no cost.
Cert Manager integrates with Let's Encrypt (among other CAs) to automatically issue and manage SSL/TLS certificates for your Kubernetes applications. Cert Manager can request certificates from Let's Encrypt, install them on your Kubernetes resources, and handle automatic renewals when the certificates are about to expire.
ACME (Automated Certificate Management Environment) . It's one of the protocol that Let's Encrypt and other CA's use to automate the process of issuing and renewing SSL/TLS Certificates . ACME defines the way a client interacts with the CA to prove control over a domain and request certificates .
领英推荐
Imagine you're running a website, and you need an SSL/TLS certificate to secure it with HTTPS. Normally, getting a certificate involves several steps, like proving that you own the website, generating a certificate request, and then manually installing the certificate.
ACME in Action
The ACME protocol automates all of these steps. Here's how it works in a simplified example:
To wrap up this introduction of Cert Manager , Let's encrypt & ACME protocol , Cert Manager manages , issues and renews certificates require to establish HTTPS communication on those websites using Let's encrypt who actually issues the certificates . Now in this entire process ACME is a protocol who follows some prov0 or challenges name as ACME challenge to verify whether the domain own actually by that application and request certificate .