factorial-io / phabalicious

Supports your deployments and every-day devops-tasks
http://docs.phab.io
MIT License
18 stars 3 forks source link

Support for 1password connect #148

Closed stmh closed 3 years ago

stmh commented 3 years ago

1password connect provides a rest-api to interact with a set of vaults via a rest service. This PR will add support for querying an arbitrary installation to gather a secret.

Needed changes for the configuration:

secrets:
  a: 
    onePasswordId: <id of the item>
    onePasswordVaultId: <id of the vault>

Then you need to inject globally the onepassword config, e.g. in a fabfile.local.yaml

onePassword:
  endpoint: <onepassword-connect-url>
  token: <JWT-token>

then it should work out of the box.

nataliaalves03 commented 3 years ago

The code looks clear and friendly to me :) Added some small fixes in text.

stmh commented 3 years ago

thanks for the review!