Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 2.69 KB

CHANGELOG.md

File metadata and controls

61 lines (43 loc) · 2.69 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project attempts to adhere to Semantic Versioning.

Changed

  • Changed exception raised if op CLI not found to RuntimeError.

Fixed

  • Removed the passing in of just the OP_SERVICE_ACCOUNT_TOKEN variable to the subprocess.run call to op. This was clobbering the environment and causing configuration issues with the op CLI. First reported in #12 by @joshuadavidthomas.

New Contributors!

Initial release! 🎉

Added

  • A custom model field OPField for storing references to items in a 1Password vault.
  • Store a reference to an item in the vault using the op:// secret reference URI.
  • Access the secret stored via a <field_name>_secret attribute on the model.
  • Restrict which vaults can be used in the field to a list of vault names, passed in the vaults argument to the field.
  • Explicitly set the name of the secret field in the model, via the secret_name argument to the field.
  • A custom OPURIValidator class for validating 1Password URIs passed to the field.
  • Initial application configuration options:
  • OP_COMMAND_TIMEOUT: for setting the timeout for op commands, defaults to 5 seconds.
  • OP_CLI_PATH: for setting the path to the op executable, defaults to using shutil.which('op'). If op is not found, an exception will be raised.
  • OP_SERVICE_ACCOUNT_TOKEN: for setting the 1Password service account token, defaults to using the value of the OP_SERVICE_ACCOUNT_TOKEN environment variable. If not set, an exception will be raised.
  • Initial documentation.
  • Initial tests.
  • Initial CI/CD.

New Contributors!