Wrapper for `step ca renew` that behaves sanely with systemd
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
Línea de trabajo
Start by reviewing the linked external wrapper repository and the behavior of step ca renew described in this issue. The issue does not name files or tests in smallstep/cli; done would require a clearly scoped decision about whether and how this systemd-oriented wrapper belongs in the CLI.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 4.3k
- Forks
- 320
- Merge medio
- 2 d 3 h
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de smallstep/cli
-
[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hangAbiertobug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
enhancement needs triage
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
Los mantenedores suelen responder en 1 día
-
enhancement needs triage
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
smallstep/cli#1713 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
build s390x and riscv64 binariesAbiertoenhancement needs triage
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
smallstep/cli#1710 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline editsPosiblemente ocupada @vulragrag-star la tomó hace 51 días. Abiertobug needs triage
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
smallstep/cli#1705 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de smallstep/cli
Issues similares
-
Cluster details: the Control Plane version field has a different border color than its icon boxAbiertokind/design sig/ui
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
kubermatic/dashboard#8449 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
filecoin-project/curio#1632 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
compose: derived node options overwrite each other's targetsPosiblemente ocupada @yangjj-iso la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día