fix: persist acme.sh state with --config-home #30

Merged
ivuorinen merged 2 commits from fix/acme-config-home into main 2026-09-20 18:33:51 +00:00
Owner
No description provided.
fix: autoApprovers must name the tag on the device
All checks were successful
validate / hooks (pull_request) Successful in 1m23s
validate / render (pull_request) Successful in 34s
75f110ba7c
The ACL policy in docs/14-tailscale.md granted route auto-approval to tag:k8s-operator, which the operator holds. But autoApprovers matches the tags on the device advertising the route, and the operator assigns tag:k8s to the devices it creates. The route was therefore advertised and never approved: nothing routes, while both ArgoCD apps stay Synced and Healthy, both pods Run, and the Connector reports ConnectorReady=True.

TailscaleRouteNotApproved caught it on its first evaluation, which is the case it was written for — the approval lives in Tailscale's console, where no schema check, linter or render can look.
fix: persist acme.sh state with --config-home
All checks were successful
validate / hooks (pull_request) Successful in 1m21s
validate / render (pull_request) Successful in 40s
bbb9277d98
The acme-state PVC has been empty since it was created. acme.sh keeps its account key, per-domain directories and renewal bookkeeping in LE_CONFIG_HOME, which this image pins to /acme.sh — a declared VOLUME, so a fresh anonymous one per run. --home sets LE_WORKING_DIR instead, the directory the binary is installed in, which is /acmebin here. The CronJob passed only --home.

So every weekly run registered a new Let's Encrypt account and issued a new certificate rather than renewing, discarding the ARI renewal window acme.sh had just computed. Its logs say so on every run: "Account key creation OK", "Registering account", "Registered". Let's Encrypt allows five duplicate certificates per week for an identical domain set, so weekly runs stayed under the limit; a couple of retries in one week would not have.

Found by restoring acme-state from a Longhorn backup and comparing it against the live volume: both held nothing but lost+found. The backup was faithful — there was simply nothing to back up.
ivuorinen deleted branch fix/acme-config-home 2026-09-20 18:33:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ivuorinen/turingpi-cluster!30
No description provided.