mirror of
https://github.com/dtomlinson91/csops.git
synced 2025-12-21 21:35:45 +00:00
doc: update README with config example #1
This commit is contained in:
17
README.md
17
README.md
@@ -6,6 +6,23 @@ Wrapper around [mozilla/sops](https://github.com/mozilla/sops).
|
|||||||
|
|
||||||
`pipx install git+https://github.com/dtomlinson91/csops`
|
`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:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
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
|
## Usage
|
||||||
|
|
||||||
Encrypt: `csops e test.log`
|
Encrypt: `csops e test.log`
|
||||||
|
|||||||
Reference in New Issue
Block a user