[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 小時
- 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 於 56 天前認領。 未關閉bug needs triage
難度 4/5 3-5 天 新手友好度 20/100
smallstep/cli#1705 · 1 個 reaction ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
-
Case detail: main-column section headers are hard to distinguish from body text可能已有人在做 @yubessy 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
ubie-oss/hecatoncheires#347 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
-
[OperatorHub] Add OLM installation method to the documentation #1193可能已有人在做 @NiccoloFei 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
cloudnative-pg/plugin-barman-cloud#1233 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆