Problems with op v2 when integrating with chezmoi
I’ve recently upgraded to op v2, and it’s breaking https://www.chezmoi.io/user-guide/password-managers/1password/ fairly hard. Even if the first issue is fixed (either in op or in chezmoi), there appear that there will be different errors based on whether biometric authentication is enabled or not.
Issues
op signinprotocol has changed for the worse. Previously, one could useop signin <account>. Now, it is necessary to useop signin --account <account>. This is a needless breaking change. It’s easy enough to work around with a version check. This is preventing the use of chezmoi on my machine at all because it cannot continue (I’m going to be submitting a patch; I’m annoyed that I have to do so).- Without biometric authentication:
op signinemits a differentOP_SESSION_*variable than it used to. The session variable used to be the account aliasOP_SESSION_<account>. Now it'sOP_SESSION_<UUID>, which means that anything that looked forOP_SESSION_<account>will not find it, and because it cannot find the UUID, it will either prompt for login again or it will fail. Again, I feel like this is a needless breaking change. In the context of chezmoi, it means that I cannotop signinbefore running chezmoi and will be asked for my password again. - With biometric authentication: no
OP_SESSION_*variables are set. On the other hand, the biometric authentication just works.
1Password Version: 2.0.0
Extension Version: Not Provided
OS Version: Not Provided
