Consul ACL Token TTL: Unclear Renewal Policy for Long‑Running Services
0 reputation · 04 Dec 2021, 12:36 UTC
Consul ACL Token TTL: Unclear Renewal Policy for Long‑Running Services
Goal: maintain continuous authorization for services that rely on short‑lived ACL tokens while preserving least‑privilege boundaries.
Constraints: Consul enforces token TTLs; once a token expires, the server rejects requests as revoked. No built‑in pre‑expiry notification or automatic renewal exists, so a service that cannot obtain a fresh token at the moment of expiry loses access.
Uncertainty: Operators must decide between short TTLs, risking outages, or long TTLs, weakening least privilege. Consul provides no standardized zero‑downtime rotation pattern for service tokens.
Questions:
- What mechanisms can be used within Consul or its ecosystem to detect imminent token expiration and trigger a renewal process before the token is rejected?
- Is it possible for a service to refresh its own ACL token without operator intervention, and if so, what configuration is required?
- What best‑practice patterns exist for rotating short‑lived ACL tokens that balance least privilege with service availability?