secrethub / secrethub-cli

A secrets management platform that every engineer can use with minimal code changes.
https://secrethub.io
Apache License 2.0
135 stars 23 forks source link

Fix item creation with 1Password CLI 2 when migrating secrets from SecretHub #400

Closed edif2008 closed 2 years ago

edif2008 commented 2 years ago

The bug came from the fact that 1Password CLI 2 no longer supports old item templates as input. Therefore, we now have to use the new item JSON template to make it work.

Files that fix the bug and actually require a review:

Summary of other changes:

hculea commented 2 years ago

Had a look over the indicated files, change looks good to me.

Didn't get to try it out functionally, I can fit this in next morning. If urgent, feel free to merge as is, change looks small enough (aside from the huge linter diff)

hculea commented 2 years ago

Tested together with Eddy, we identified two issues to be addressed at a later point:

These both can be addressed in separate issues, if need be. My approval still stands after functional testing.

jpcoenen commented 2 years ago

Code looks good to me :+1: Thanks for fixing this, @edif2008 🙌

SimonBarendse commented 2 years ago

Does this fix https://github.com/secrethub/secrethub-cli/issues/399 ?