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

Parameter note-type not reflected, always got secure note despite --note-type=Database was specified #681

Open
J0zi opened this issue Apr 16, 2024 · 3 comments

Comments

@J0zi
Copy link

J0zi commented Apr 16, 2024

Hi, I want a DB secret to be stored in LastPass

executing printf "Username: jozef.test\nPassword: somepw" | lpass add --non-interactive --note-type=Database "Shared-user-jozef/database/some-cluster11" --sync=now

Result is a secure note:
lpissue2

Expected Database type:
lpok

I suppose that --note-type=Database will create a Database note type, however it created NoteType:Database entry under Notes

An older version was creating correct Database entries, not sure which one.

LastPass CLI v1.3.6.9.g1cdf78c

@eldadpuzach
Copy link

eldadpuzach commented Jun 24, 2024

Same here with LastPass CLI v1.5.0.GIT
Old version worked correctly: lastpass-cli-1.3.3

@lukas-we
Copy link

Since I also face this problem, I had a look at it with git bisect. It seems that MR #679 introduced the regression. Specifically one of the following commits:

@HampusRosenquist
Copy link

HampusRosenquist commented Nov 14, 2024

I am encountering the same problem, the only difference being that I try to add an SSH entry, using note type: --note-type=ssh-key. This used to work, but doesn't work on version 1.5.0 or 1.6.0.

EDIT: The most recent version that works for me is v1.3.7: https://github.com/lastpass/lastpass-cli/releases/tag/v1.3.7

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

4 participants