You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Stuck in the rekey process for recovery keys on auto unseal AWS cluster.
operator rekey init command returns a nonce but when trying to use this nonce to run the rekey it says no rekey is in progress. when trying to init a new rekey it says there is already a rekey in progress....
To Reproduce
Steps to reproduce the behavior:
/ $ vault operator rekey -init -target=recovery -key-shares=17 -key-threshold=3
WARNING! If you lose the keys after they are returned, there is no recovery.
Consider canceling this operation and re-initializing with the -pgp-keys flag
to protect the returned recovery keys along with -backup to allow recovery of
the encrypted keys in case of emergency. You can delete the stored keys later
using the -delete flag.
Key Value
--- -----
Nonce ba8c0b52-6f88-d206-d9de-ad1a2330f8c0
Started true
Rekey Progress 0/2
New Shares 17
New Threshold 3
Verification Required false
/ $ vault operator rekey -nonce="ba8c0b52-6f88-d206-d9de-ad1a2330f8c0" -
No rekey is in progress. Start a rekey process by running "vault operator
rekey -init".
/ $ vault operator rekey -init -target=recovery -key-shares=17 -key-threshold=3
Error initializing rekey: Error making API request.
URL: PUT http://127.0.0.1:8200/v1/sys/rekey-recovery-key/init
Code: 400. Errors:
* rekey already in progress
Expected behavior
A clear and concise description of what you expected to happen.
Rekey operations should work when giving the nonce obtained at init step.
Environment:
Vault Server Version (retrieve with vault status): 1.18.1
Vault CLI Version (retrieve with vault version): 1.18.1
Additional context
Restarting all the cluster nodes allows to restart the init process but no luck after the init.
Tried to run the command both locally and directly on the active server, no changes. Even tried using the root token
The text was updated successfully, but these errors were encountered:
I believe you are seeing the "No rekey in progress..." message on the second command due to it missing the -target=recovery argument. So the error you are getting back is because there is no "barrier" rekey operation in progress, which is the default target.
Describe the bug
Stuck in the rekey process for recovery keys on auto unseal AWS cluster.
operator rekey init command returns a nonce but when trying to use this nonce to run the rekey it says no rekey is in progress. when trying to init a new rekey it says there is already a rekey in progress....
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Rekey operations should work when giving the nonce obtained at init step.
Environment:
vault status
): 1.18.1vault version
): 1.18.1Vault server configuration file(s):
Additional context
Restarting all the cluster nodes allows to restart the init process but no luck after the init.
Tried to run the command both locally and directly on the active server, no changes. Even tried using the root token
The text was updated successfully, but these errors were encountered: