-
Notifications
You must be signed in to change notification settings - Fork 294
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
Comments
This already exists: use "lpass show --sync=no" |
But |
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...
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 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. |
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; |
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
|
On Sat, Nov 18, 2017 at 04:29:52PM +0000, tsaedek wrote:
`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).
There's a bit of a misunderstanding here: being logged in is _not_ like
storing passwords in plaintext. The passwords, saved in the blob file, are
still encrypted by your key. The key is only available if the agent is
running, which is the process that caches the key in memory.
You can be logged in without having the agent running, and also the agent
will exit itself after an hour. This is why you have to reenter your
password (but not 2fa) after being idle for an hour: there is no way for
lpass to get the passwords otherwise.
Being logged in instead means that you have authenticated to the server at
least once, and your blob has been downloaded and session id is cached.
Both blob and session id are stored encrypted.
You can try this: after doing 'lpass show', find the agent pid and kill it.
Try using 'lpass show' again: it will prompt you for master password and
won't be able to retrieve your passwords until you do. But you will be
"logged in" the whole time.
|
Should have read the part in the man page about the agent! |
Hello do you plan to add offline mode? Right now I see only
Error: Couldn't resolve host name.
message.The text was updated successfully, but these errors were encountered: