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
When using rbw unlocked to check if your vault is locked or not the expiry timer of the vault gets reset.
Therefore, if you check often enough, your vault never re-locks even though the lock_timeout has expired already.
Steps to reproduce:
rbw config set lock_timeout 10
rbw unlock
# wait 11s and verify vault is now locked
sleep 11
rbw unlocked && echo 'vault is unlocked'
# unlock the vault again and verify it does not get locked as long as `rbw unlocked` is executed inside the `lock_timeout`
# this never prints "rbw unlocked: agent is locked"
rbw unlock
watch -n 1 "rbw unlocked && echo 'unlocked'"
Cause
rbw checks the agents version before checking the unlocked status:
Bug
When using
rbw unlocked
to check if your vault is locked or not the expiry timer of the vault gets reset.Therefore, if you check often enough, your vault never re-locks even though the
lock_timeout
has expired already.Steps to reproduce:
Cause
rbw
checks the agents version before checking theunlocked
status:rbw/src/bin/rbw/commands.rs
Line 997 in 80a5651
The rbw-agent handling of the
rbw::protocol::Action::Version
triggers a reset of the lock timer:rbw/src/bin/rbw-agent/agent.rs
Line 256 in 80a5651
The text was updated successfully, but these errors were encountered: