mirror of
https://github.com/dtomlinson91/csops.git
synced 2025-12-22 05:45:45 +00:00
91519e232d1f1cfe19fd13a7a0ac45c80506195c
CSOPS
Wrapper around mozilla/sops.
Installation
pipx install git+https://github.com/dtomlinson91/csops
Configuration
Either use a config.yml or use environment variables.
If using a config.yml create this file in either ~/.config/csops/ or a custom directory. If using a custom directory set the environment variable CSOPS_CONFIG equal to this directory.
GCP KMS Key
If using a config.yml set the gcp_mks_key under the csops header:
csops:
gcp_kms_key: projects/plex-mozilla-sops/locations/global/keyRings/sops/cryptoKeys/sops-key
Or set the environment variable
CSOPS_GCP_KMS_KEY="projects/plex-mozilla-sops/locations/global/keyRings/sops/cryptoKeys/sops-keys"
Usage
Encrypt: csops e test.log
Decrypt: csops d test.enc.log
Description
Languages
Python
100%