Lightrun requires a mandatory TLS certificate for securing:
- Backend Service – This is crucial for certificate pinning, ensuring secure communication between the Lightrun server and IDE plugins or agents.
- Lightrun Router – If SSL termination happens at the router level, this certificate is required.
Note
Certificate requirements:
- Encoding: PEM
- Format: PKCS#1 or PKCS#8
Important
Unlike Internal TLS (internal_tls
), which is an optional feature that encrypts internal communication between Lightrun services. This TLS certificate is mandatory for backend security and router-level SSL termination.
Lightrun allows certificate to be provided in two ways:
If you have an existing TLS secret, you can reference it:
certificate:
existing_cert: "my-tls-secret"
Alternatively, provide the TLS certificate and key as Base64-encoded values:
certificate:
tls:
crt: "<base64-encoded-certificate>"
key: "<base64-encoded-private-key>"
If you need to provide a certificate in values.yaml
, it must be Base64 encoded.
If your certificate includes a certificate chain, it must be in the correct order before encoding:
- Your certificate (
my-cert.crt
) - Intermediate certificate(s) (
intermediate.crt
, if applicable) - Root certificate (
root.crt
) If you have a certificate chain, merge them in the correct order before encoding:
cat my-cert.crt intermediate.crt root.crt > full-chain.crt
# Encode certificate (single certificate or full chain)
cat my-cert.crt | base64 -w 0
# Encode private key file
cat my-cert.key | base64 -w 0
# Encode certificate (single certificate or full chain)
cat my-cert.crt | base64
# Encode private key file
cat my-cert.key | base64
- If using a certificate chain, encode the full chain (certificate → intermediate → root) instead of just the certificate.
- Encoding a misordered chain may result in TLS errors.
- The Base64-encoded values must be placed in
values.yaml
undercertificate.tls
.
If you don’t already have a TLS certificate, you can generate a self‑signed certificate for testing or development purposes. Note: Lightrun requires a TLS certificate for secure backend and router communication. While a self‑signed certificate works for non‑production use, for production environments, you should use a certificate issued by a trusted CA.
You can generate a self‑signed certificate using the following OpenSSL command:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout my-tls.key -out my-tls.crt \
-subj "/CN=yourdomain.com/O=Your Organization/C=US"
This command creates two files:
my-tls.key
– Your private key.my-tls.crt
– Your self‑signed certificate.
certificate:
existing_cert: "lightrun-certificate-secret"
certificate:
tls:
crt: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0t..."
key: "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tL..."