Closed broizter closed 5 years ago
Hi Niklas,
Thanks for trying out portwarden. In regards to the logout issue, that was the intended behavior. Portwarden server handles multiple users by logging out the Bitwarden CLI every time an export is performed since Bitwarden CLI does not allow multiple accounts logged in at the same time.
However, I do see your use case. Perhaps I could add a command line argument such as —no-logout?
Costa
From: Niklas notifications@github.com Sent: Friday, January 4, 2019 15:14 To: vwxyzjn/portwarden Cc: Subscribed Subject: [vwxyzjn/portwarden] Have to log in again after export (#19)
Having some issues trying to automate this tool without using the webui. I wanna be able to export with the CLI tool daily from a cron script. The first snag I have is that it logs me out completely from BitWarden CLI after every export. The second is that there is no way to pass the --session argument from BitWarden CLI to Portwarden to utilize an already unlocked vault. This snag I can work around though so my biggest issue is the logout problem.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/vwxyzjn/portwarden/issues/19, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFTEk4OG14maNftn7NBKkTHrbJ8AGqxCks5u_7YrgaJpZM4Zsqyh.
Adding an argument that will prevent the logout would be fantastic! Hope it's not too much trouble.
This should be fixed by PR #18, could you download the suitable binary from the following list and give it a try?
portwarden_darwin_amd64.zip portwarden_linux_amd64.zip portwarden_windows_amd64.zip
the usage should be something like
portwarden --passphrase 1234 --filename backup.portwarden --no-logout encrypt
If that works for you, would you mind checking out the branch API-17 and updating the README.MD on how to use this argument? Thanks.
It works perfectly, thank you very much! I'll have a look at updating the README.MD in a bit. The only problem is that I never figured out how to do automated backups through cron or systemd. Printf didn't like to grab my password from password-store and the encryption failed if I entered my password directly in the script. My final solution was to create an LXC container and executing the script through that so I don't think I can write a good guide on how to automate portwarden.
Having some issues trying to automate this tool without using the webui. I wanna be able to export with the CLI tool daily from a cron script. The first snag I have is that it logs me out completely from BitWarden CLI after every export. The second is that there is no way to pass the --session argument from BitWarden CLI to Portwarden to utilize an already unlocked vault. This snag I can work around though so my biggest issue is the logout problem.