Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --provider bw reports success even without unlocked session #107

Open
fionnb opened this issue Aug 18, 2022 · 4 comments
Open

add --provider bw reports success even without unlocked session #107

fionnb opened this issue Aug 18, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@fionnb
Copy link

fionnb commented Aug 18, 2022

Describe the bug
Adding a key via bw provider reports success, even though the key is not stored.

To Reproduce
Steps to reproduce the behavior:

  1. make sure no open bw session is active: bw lock
  2. Run ssh-manager add --provider bw --name test123 --private-key bla --public-key bla.pub
  3. See message time="xx-yy-2022 22:22:22" level=info msg="Manager Keys saved for test123."
  4. find out no key has been actually stored in bw

Expected behavior
An error message, stating that the key could not be added.

Environment:

  • CLI Version (retrieve with ssh-manager version): ssh-manager v1.1.0
  • Operating System/Architecture: Linux
@fionnb fionnb added the bug Something isn't working label Aug 18, 2022
@omegion
Copy link
Owner

omegion commented Aug 23, 2022

@fionnb is it possible to run with --logLevel=debug, it might help to understand where it fails.

@MylesBolton
Copy link

MylesBolton commented Mar 30, 2024

im abit late but here is the debug output

image

running on Arch (EndeavorOS)
edit: ssh-manager v1.8.6

@MylesBolton
Copy link

MylesBolton commented Mar 30, 2024

ok so anyone having problems you need to run
bw unlock

just copy and run the
export BW_SESSION="SuperSecretKey"

then you can use ssh-manager without any problems hopefully

@MylesBolton
Copy link

maybe could bee a good idea to check if the user has BW unlocked when running ssh-manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants