Wrapper for `step ca renew` that behaves sanely with systemd
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 4.3k
- 派生
- 320
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
smallstep/cli 的其他 Issue
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
enhancement needs triage
难度 4/5 3-5 天 新手友好度 32/100
维护者通常 1 天内回复
-
enhancement needs triage
难度 3/5 1-2 天 新手友好度 57/100
smallstep/cli#1713 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement needs triage
难度 4/5 3-5 天 新手友好度 35/100
smallstep/cli#1710 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline edits可能已有人在做 @vulragrag-star 于 51 天前认领。 未关闭bug needs triage
难度 4/5 3-5 天 新手友好度 20/100
smallstep/cli#1705 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
agent-butler-finding bug
难度 2/5 1-3 小时 新手友好度 82/100
jordansmall/spindrift#6414 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Icinga/icinga-kubernetes#294 ·
维护者通常 4 天内回复
-
kind/design sig/ui
难度 1/5 1 小时以内 新手友好度 92/100
kubermatic/dashboard#8449 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
filecoin-project/curio#1632 ·
维护者通常 1 天内回复