[Bug]: `step ca provisioner update` fails for JWK provisioner if `--create` is specified
I maintainer di solito rispondono entro 1 giorno
@dopey ci sta già lavorando.
Dal 7/11/2023.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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).
- Lingua principale
- Go
- Stelle
- 4.3k
- Fork
- 320
- Merge medio
- 2g 3h
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di smallstep/cli
-
[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hangApertabug needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement needs triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement needs triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
smallstep/cli#1713 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement needs triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
smallstep/cli#1710 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline editsForse già presa @vulragrag-star l’ha presa 52 giorni fa. Apertabug needs triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
smallstep/cli#1705 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di smallstep/cli
Issue simili
-
[v3] KeyBindingManager calls (Add/Remove) are not converted into a case-insensitive accelerator.KeyApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
runtime: usleep sleeps nanoseconds instead of microseconds on linux/mips and linux/mips64Forse già presa @BRobertson7 l’ha presa oggi. Apertacompiler/runtime
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
golang/go#82913 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
aws/aws-sdk-go-v2#3625 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
adrianbrad/queue#92 ·