Skip to content

check if vault is unlocked when running ssh-manager #288

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

Open
MylesBolton opened this issue Mar 30, 2024 · 1 comment
Open

check if vault is unlocked when running ssh-manager #288

MylesBolton opened this issue Mar 30, 2024 · 1 comment

Comments

@MylesBolton
Copy link

MylesBolton commented Mar 30, 2024

Is your feature request related to a problem? Please describe.
maybe could bee a good idea to check if the user has BW unlocked when running ssh-manager

Describe the solution you'd like
trow a error to inform the user that the vault is locked instead of saying everything is fine

Additional context
#107 (comment)

@Xeckt
Copy link

Xeckt commented Apr 22, 2025

BW cli has a status command that reports in JSON with this info:

{
  "serverUrl": null,
  "lastSync": "2025-04-22T12:22:48.931Z",
  "userEmail": "[email protected]",
  "userId": "5798f9fb-b8bc-49ed-8863-1e8d6e1a6acc",
  "status": "locked"
}

So it's possible to unmarshal this and process it.

I haven't checked ssh-managers code yet so not sure if this sort of thing already exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants