Wrapper for `step ca renew` that behaves sanely with systemd
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement needs triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
smallstep/cli#1710 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 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 件 ·
メンテナーはふだん 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 日以内に返信
-
Cluster details: the Control Plane version field has a different border color than its icon boxオープンkind/design sig/ui
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
kubermatic/dashboard#8449 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
cli/cli#14962 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
model-drift
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信