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 offline mode #31

Closed
davidbarton opened this issue Oct 24, 2014 · 8 comments
Closed

Add offline mode #31

davidbarton opened this issue Oct 24, 2014 · 8 comments

Comments

@davidbarton
Copy link

Hello do you plan to add offline mode? Right now I see only Error: Couldn't resolve host name. message.

@bcopeland
Copy link
Contributor

This already exists: use "lpass show --sync=no"

@drzraf
Copy link

drzraf commented May 13, 2015

But show isn't usable before a previous login?.
When my internet drops I've no access to my passwords. This should really be fixed.

@bcopeland
Copy link
Contributor

You have to log in at least once to get the passwords onto your disk. After that, you no longer need to log in.

@GrantEdwards
Copy link

You have to log in at least once to get the passwords onto your disk. After that, you no longer need to log in.

Sorry, that doesn't really seem to be the case. I have logged in many, many times, yet...

$ lpass show --sync=no foo
Error: Could not find decryption key. Perhaps you need to login with `lpass login`.

The various command with --sync=no require that you are logged in, and you can't login without an internet connection.

Are you proposing that for "offline mode" you log in and then never log out? Leaving all your passwords sitting there on your machine in plaintext? [Or at least with the decryption key sitting there
wide open.] Sorry, but that's a horrible idea.

What offline mode needs to to is to store the encrypted vault locally, and then allow you to "log in" to that vault by supplying your master password without an internet connection. AFAICT, the broswer extensions can do that; the Android app can do that; the "pocket" app can supposedly do that (I havent' gotten it to run on Gentoo yet, since it requires Ubuntu-specific libraries).

The command-line app needs to be able to do that.

@bcopeland
Copy link
Contributor

No, I certainly am not proposing that. When you login, the command-line app does cache the blob, in encrypted form on disk.

I just tried this -- killed the agent and my network connection; lpass show --sync=no foo WorksForMe.

@tsaedek
Copy link

tsaedek commented Nov 18, 2017

I am with @GrantEdwards.

I'd like to be able to login, do my work with lastpass and then logout. This works perfectly fine, if there is a internet connection available. However, if there isn't, I wouldn't be able to login.

Currently, when logging in and doing lpass ls you are downloading the encrypted blob from the lastpass servers and provide an decryption key. When logging, out both the decryption key and the blob get deleted!

lpass show --sync=no foo is only possible if you are logged in. However, if you logged out the last time you turned your computer off, password retrieval isn't possible any more. Hence, it is not possible to both provide security (being logged in all the time is like storing passwords in plaintext) and retrieve passwords when offline (or when the server is offline).

@bcopeland
Copy link
Contributor

bcopeland commented Nov 18, 2017 via email

@tsaedek
Copy link

tsaedek commented Nov 18, 2017

Should have read the part in the man page about the agent!
I tested, if I can access the password after logging my linux user account out. That did work and confused me. Would be nice to have a subcommand to kill the agent. But killing it manually is also completely fine for me.

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

5 participants