When creating or editing a typed secure note (e.g. wifi, server) non-interactively, any field name in stdin that doesn't match the note type's canonical schema is silently discarded with no warning. Compounding this, the canonical field names for each note type are not documented in --help or anywhere in the project, forcing users to reverse-engineer them by populating an entry via the GUI and inspecting it with lpass show --all.
Steps to reproduce:
lpass add "Test" --note-type=wifi --non-interactive << 'EOF2'
Network Name: MyNetwork
Password: hunter2
EOF2
lpass show --all "Test"
Expected: error indicating Network Name is not a valid field for wifi, OR success populating an SSID field.
Actual: note created with NoteType set, all fields blank, no error.
Suggested fixes: (a) document the canonical field names for each note type; (b) emit a warning when unknown field names are passed.
Version: lpass 1.6.1.6.g667da1f, macOS 15.
When creating or editing a typed secure note (e.g.
wifi,server) non-interactively, any field name in stdin that doesn't match the note type's canonical schema is silently discarded with no warning. Compounding this, the canonical field names for each note type are not documented in--helpor anywhere in the project, forcing users to reverse-engineer them by populating an entry via the GUI and inspecting it withlpass show --all.Steps to reproduce:
Expected: error indicating
Network Nameis not a valid field forwifi, OR success populating an SSID field.Actual: note created with NoteType set, all fields blank, no error.
Suggested fixes: (a) document the canonical field names for each note type; (b) emit a warning when unknown field names are passed.
Version: lpass 1.6.1.6.g667da1f, macOS 15.