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.1.0.tar.gz (9.4 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.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inmanta_module_sops-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 f9da236a5d856c562089b6e257cd0f670ca20a19ca08f18a91596e30b52f319e
MD5 4f3c96269af6bc8b174c6d9c6db616d5
BLAKE2b-256 a52e88994d74909d02fb846f7ce144f513e22dcbe11902385f9a6efe2e5a3513

See more details on using hashes here.

Provenance

The following attestation bundles were made for inmanta_module_sops-0.1.0.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inmanta_module_sops-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e20dd92c1daaffb802db4a1c93d53e9f9232fdb77018120433da220d5b7314b0
MD5 1e0f5eeec8875996261b62733ebad241
BLAKE2b-256 b83771f4335f2afd9b5789c75b6ea0cd4d0b9c587acad10f34ec58c4db19b89c

See more details on using hashes here.

Provenance

The following attestation bundles were made for inmanta_module_sops-0.1.0-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