Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.
This repository was archived by the owner on May 25, 2022. It is now read-only.

bw lock causes logout #439

Closed
Closed

Description

@hkariti

Describe the Bug

Starting with cli version 1.20, trying to lock the vault results in this message and a logout:

You cannot lock your vault because you are using Key Connector. To protect your vault, you have been logged out.

Steps To Reproduce

Login via a password and 2fa:

$ bw login $EMAIL
? Master password: [hidden]
? Two-step login code: 

You are logged in!

To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:
$ export BW_SESSION="..."
> $env:BW_SESSION=".."

You can also pass the session key to any command with the `--session` option. ex:
$ bw list items --session ...

Then try to lock:

$ bw lock
You cannot lock your vault because you are using Key Connector. To protect your vault, you have been logged out.
$ bw login --check
You are not logged in.

Expected Result

Since I don't use Key Connect, I expect to get the same result as in version 1.19:
Your vault is locked.

Actual Result

You cannot lock your vault because you are using Key Connector. To protect your vault, you have been logged out.

Environment

  • Operating system: macOS Monterey
  • Shell: zsh
  • Build Version (run bw --version): 1.20.0

Activity

  1. eliykat commented on Jan 11, 2022

    @eliykat
    Member

    Thanks for reporting this - I read through the community forums thread and your report here and I confirm this is not the expected behaviour. It looks like a regression from our last release when we added Key Connector. I'll look into it.

  2. samba2 commented on Jan 11, 2022

    @samba2

    @eliykat just want to add on that I am facing the same issue. I posted my experience in the same forum thread. Tnx for looking into it !

  3. FedeAbella commented on Jan 14, 2022

    @FedeAbella

    Is the fix for this available on 1.20.0 already? I can see it's been merged to master, but there's no update available from CLI. Is this implemented if re-downloading the native installers/snap?

  4. eliykat commented on Jan 20, 2022

    @eliykat
    Member

    @RayneShall this fix will be in the next release, which is currently scheduled for ~10 February. Alternatively, you could build the last release from source using the v1.20.0 tag and then cherry-pick the commit over, if you need the fix before then and feel comfortable with that process.

  5. FedeAbella commented on Jan 20, 2022

    @FedeAbella

    @eliykat Awesome, thanks! No need to build beforehand, just wanted to have a better idea on when to expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions