Thanks for your interest in contributing to the 1Password vault-plugin-secrets-onepassword project! 🙌 We appreciate your time and effort. Here are some guidelines to help you get started.
Run the following command to build the 1Password vault-plugin-secrets-onepassword:
make build
This will build into the vault/plugins/op-connect binary.
To demonstrate and evaluate the 1Password secrets engine, you can start HashiCorp Vault server in development mode. The Vault server will be automatically initialized and unsealed in this configuration, and you do not need to register the plugin.
vault server -dev -dev-root-token-id=root -dev-plugin-dir=./vault/plugins -log-level=debug
Warning: Running Vault in development mode is useful for evaluating the plugin, but should never be used in production.
Connect to the Vault server in a new terminal to enable the secrets engine and start using it. For more information on how to enable and configure the plugin, follow the steps in the QUICKSTART.md
To run the Go tests run the following command:
make test
To include the test coverage run the following command:
make test/coverage
Run the following command to build the binary without enabling optimizations:
go build -o vault/plugins/op-connect -gcflags="all=-N -l" .
Run the following command to start a Delve debugging session:
dlv debug . -- --debug
If applicable, update the README.md to reflect any changes introduced by the new code.
To get your PR merged, we require you to sign your commits.
You can also sign commits using 1Password, which lets you sign commits with biometrics without the signing key leaving the local 1Password process.
Learn how to use 1Password to sign your commits.
Follow the steps below to set up commit signing with ssh-agent
:
- Generate an SSH key and add it to ssh-agent
- Add the SSH key to your GitHub account
- Configure git to use your SSH key for commit signing
Follow the steps below to set up commit signing with gpg
- Generate a GPG key
- Add the GPG key to your GitHub account
- Configure git to use your GPG key for commit signing