Skip to main content

Reference and use secrets defined in sops file in project repo

Project description

Sops module

pypi version build status

How to use

  1. Create gpg key on the orchestrator
inmanta@96abdaa7233f:~$ gpg --full-generate-key
  1. Generate key on the dev machine (same as step above)

  2. Import orchestrator key in dev keyring

# On the orchestrator
inmanta@96abdaa7233f:~$ gpg --armor --export email > orchestrator.gpg

# On the dev machine
guillaume@framework:~$ gpg --import orchestrator.gpg
  1. Create keyring file with sops providing fingerprint of dev key and orchestrator key. Edit it using sops binary.
guillaume@framework:/tmp/sops-test$ echo "{}" > test.yml
guillaume@framework:/tmp/sops-test$ sops --pgp 49CAF9DCDAC1643FCBDFCAB93BF8D3BC3B08C360,6F405B4881FF1DE18A4696641BCDCFE5D361E275 -e test.yml > test.encrypted.yml
guillaume@framework:/tmp/sops-test$ sops edit test.encrypted.yml
  1. Reference the sops file in the model.

TODO

Running tests

  1. Set up a new virtual environment using uv and install the dependencies.
uv venv -p 3.12
make install
  1. Run tests
uv run pytest tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inmanta_module_sops-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inmanta_module_sops-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file inmanta_module_sops-0.0.1.tar.gz.

File metadata

  • Download URL: inmanta_module_sops-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inmanta_module_sops-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9874f77df3f132a128ca67037557b2bd527fb8d495c218c028f62f2203aff563
MD5 56f4a29e4a30d6a3d05af16a79a512ab
BLAKE2b-256 6cb5db4066c03f2d231acceab91c7930cd8f6ce9176955eb8985e6d38c8e8972

See more details on using hashes here.

Provenance

The following attestation bundles were made for inmanta_module_sops-0.0.1.tar.gz:

Publisher: continuous-delivery.yml on edvgui/inmanta-module-sops

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inmanta_module_sops-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for inmanta_module_sops-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2823e69c0554af00b54e563d83fa135b712ac0b6d85884ca0e8c03279235246b
MD5 92cd3b6ba14d7e15d9db3f8b3453fd20
BLAKE2b-256 8f99da78d4cf6dc7822e72528d20ef63b385ecdbc8c686c26caa6111876a5827

See more details on using hashes here.

Provenance

The following attestation bundles were made for inmanta_module_sops-0.0.1-py3-none-any.whl:

Publisher: continuous-delivery.yml on edvgui/inmanta-module-sops

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page