Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
4 years agoCommand-line tool v1.12.2: op create item --template=file.json
We have added a new, smoother, more secure method of creating an item using the command-line tool!
Get a template for the category of item you want to create, and save
it to a file:
op ge...
Former Member
4 years agojscarle We are not removing any functionality in the v1 releases. Any breaking changes to the command-line tool’s inputs would be done in a v2 release.
Passing your about-to-be-created vault item details to op
as a command-line argument is insecure on a multi-user system or on a system where untrusted processes are running. It is possible for other users or processes to see the arguments that are passed to any program, which means that they would be able to see your vault item details for the window that op create item
is running. We want to make it hard for users to be insecure when using 1Password, so we are encouraging users to start using the --template
flag instead.
For your .NET wrapper, may I suggest creating a temporary file that only the current user can access, writing that JSON template to it (no need to base64-encode it), and then removing it after the create item
command finishes.