[Bug]: `step ca provisioner update` fails for JWK provisioner if `--create` is specified
メンテナーはふだん 1 日以内に返信
@dopey がすでに取り組んでいます。
2023年11月7日 から。
評価
この issue はまだ評価されていません。
説明
Steps to Reproduce
I am trying to apply the first example from the step ca provisioner update docs in a minimal test environment:
Update a JWK provisioner with newly generated keys and a template for x509 certificates:
step ca provisioner update cicd --create --x509-template ./templates/example.tpl
- Start a
step-cacontainer:
$ docker run --rm -it --name step-ca-test \
-p 9000:9000 \
-e "DOCKER_STEPCA_INIT_NAME=Test" \
-e "DOCKER_STEPCA_INIT_DNS_NAMES=localhost,$(hostname -f)" \
smallstep/step-ca
- In a second terminal, bootstrap
step-cli(after backing up any previous configuration) and create a new provisioner:
$ step-cli ca bootstrap --ca-url https://localhost:9000 --fingerprint <ca-fp> --force
$ docker exec -it step-ca-test bash -c "echo hello > /tmp/password"
$ docker exec -it step-ca-test step ca provisioner add test --type JWK --create --password-file /tmp/password
✔ CA Configuration: /home/step/config/ca.json
Success! Your `step-ca` config has been updated. To pick up the new configuration SIGHUP (kill -1 <pid>) or restart the step-ca process.
$ docker exec -it step-ca-test pgrep step-ca
1
$ docker exec -it step-ca-test kill -1 1
- Attempt to recreate the provisioners keys:
docker exec -it step-ca-test step ca provisioner update test --create --password-file /tmp/password
Your Environment
OS: Arch
Step CLI:
$ step cli version
Smallstep CLI/0.25.0 (linux/amd64)
Release Date: 2023-09-27
Step CA: 0.25.0
Expected Behavior
The provisioner gets updated with a newly generated key.
Actual Behavior
Updating the JWK provisioner fails with this error message:
docker exec -it step-ca-test step ca provisioner update test --create --password-file /tmp/password
✔ CA Configuration: /home/step/config/ca.json
error updating provisioner: error updating provisioner 'test' in authority cache: provisioner test:xlByq2UljmiUvKkhL_yg0dOd8ueVBWhoMJBoSVTAifc not found
Additional Context
I tried looking for information about the authority cache mentioned in the error message, but couldn't find anything in the issues/docs.
I also tried rekeying a provisioner on a long-running step-ca instance but got the same result (though that instance is still on 0.23.2, so it's a little behind).
I'm happy to provide additional details if needed.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
- 主要言語
- 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 が 52 日前に担当しました。 オープンbug needs triage
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
smallstep/cli#1705 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
[v3] KeyBindingManager calls (Add/Remove) are not converted into a case-insensitive accelerator.KeyオープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
runtime: usleep sleeps nanoseconds instead of microseconds on linux/mips and linux/mips64対応中かも @BRobertson7 が今日担当しました。 オープンcompiler/runtime
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
aws/aws-sdk-go-v2#3625 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
adrianbrad/queue#92 ·