Closed edif2008 closed 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)
Tested together with Eddy, we identified two issues to be addressed at a later point:
secrethub migrate plan
enforces it finds an OP_SESSION_*
envvar. This breaks compatibility with biometric unlock.secrethub migrate apply
disregards the sign-in address
yaml field of the generated plan.These both can be addressed in separate issues, if need be. My approval still stands after functional testing.
Code looks good to me :+1: Thanks for fixing this, @edif2008 🙌
Does this fix https://github.com/secrethub/secrethub-cli/issues/399 ?
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:
internals/onepassword/onepassword.go
internals/onepassword/cli_v1.go
internals/onepassword/cli_v2.go
internals/secrethub/migrate.go
Summary of other changes:
build
tags to newer version (i.e. from+build
togo:build
)ioutil
build
tags (i.e. no change of errors for not having both tags).goreleaser.yaml
to be compliant to the new syntax. Check this documentation for understanding the change