-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Description
Hi folks,
I ran into a small but persistent operational annoyance with step ca renew:
When a certificate does not need renewal, step exits with code 1.
That is technically correct – but in a systemd world, it looks like a failure.
So I wrote a tiny wrapper that makes renewal boring again:
- Pre-checks whether renewal is actually needed
- Only runs
step ca renewwhen required - Normalizes exit codes so “nothing to do” = success
- Supports post-renew hooks (reload nginx, haproxy, etc.)
- Plays nicely with
systemdtimers and services
Repo:
https://github.com/Torstein-Eide/Step-certificate-renewal-wrapper-script
The goal is not to replace step, but to make it operationally smoother in real systems where exit codes matter and automation should stay quiet unless something actually broke.
Bluntly:
step is correct.
systemd is strict.
This script keeps the peace between them.
Feedback welcome. If this solves a problem for others, even better.
Metadata
Metadata
Assignees
Labels
No labels