LinuxLXIII · Cluster Time, DNS and Identity DependenciesIdentity expiry
LDAP and certificate expiry cluster impact - the silent credential failures
What you'll learn
- Recognise how identity expiry affects clusters
- Identify the symptoms of expiring credentials
- Apply the mitigation patterns
- Alert on credential expiry
Prerequisites
Verified against Ubuntu 24.04 LTS · Debian 12 (Bookworm) · RHEL 9.x · Rocky Linux 9.x · AlmaLinux 9.x · Linux kernel 6.1 LTS / 6.6 LTS · systemd 255+ · OpenSSH 8.7p1 (RHEL 9) / 9.6p1 (Ubuntu 24.04) · nftables 1.0.x · chrony 4.x · Pacemaker 2.1.x · Corosync 3.1.x · 2026-08-09
LDAP and certificate expiry are silent failures. A certificate expires, services start failing, and the cause is not obvious. This lesson covers the impact and the mitigation.
What expires
In a cluster:
- LDAP user passwords: typically expire per policy.
- Kerberos tickets: short-lived (default 24h).
- TLS certificates: expire on a fixed date.
- Service account credentials: may expire if automated.
- OAuth tokens: short-lived.
Each can break cluster services silently.
Symptoms
- LDAP authentication fails with “password expired”.
- Kerberos fails with “ticket expired”.
- TLS handshake fails with “certificate expired”.
- Service-to-service auth fails.
- Health checks fail (cannot authenticate to backend).
The cluster is “broken” but the symptom points to the service, not the credential.
Mitigation
Monitor expiry
Alert 30 days before any credential expires:
- LDAP user passwords:
ldapsearchquery. - TLS certificates:
openssl x509 -enddate. - Service accounts: scheduled check.
Automate renewal
- Let’s Encrypt for TLS.
- LDAP password reset policy.
- Service account rotation.
Use long-lived credentials where possible
- Internal certificates: 1-5 years.
- Service accounts: machine identity, not password.
- Use mTLS or workload identity (AWS IAM, GCP service accounts) where possible.
Test expiry handling
Quarterly, simulate an expiring credential:
# Expire a test service account
sudo chage -E 0 testuser
# Verify services handle it gracefully
# (or fail fast and predictably)
A graceful failure is better than a silent one.
Knowledge check
Knowledge check · 3 questions
Q1. What is the typical Kerberos ticket lifetime?
Q2. TLS certificate expiry is rare and not worth monitoring.
Q3. Which of the following typically expire? Select all that apply.
Passing score: 75%. Answers are checked in this browser.