sops-checker
sops-checker inspects the creation_rules in .sops.yaml and verifies that each matching file already looks SOPS-encrypted. It can optionally encrypt files in place via sops --encrypt --in-place. You can grab the latest release from PyPI.
Built collaboratively with OpenAI Codex to streamline packaging and release prep.
SOPS itself is maintained by the getsops community and contributors—huge thanks to them for the encryption tooling this checker relies on.
Installation
pip install sops-checker
For development:
uv pip install -e .
Prerequisites for local workflows
- sops – encrypts files when
--fixis used; install via Homebrew (brew install sops) or your package manager. - mise – optional toolchain manager if you rely on the provided
mise.tomlto install Python/uv/just (mise install). - uv – fast package manager used in the Just recipes and CI (
brew install uv). - just – task runner powering the commands in
Justfile(brew install just). - gitleaks – required for
just lintto run secrets scans (brew install gitleaks).
Usage
sops-checker [ROOT] [--fix]
ROOTdefaults to the current directory.--fixencrypts files that match the rules but are not SOPS-encrypted yet.
# Dry-run
sops-checker
# Automatically encrypt missing files
sops-checker --fix
The command exits non-zero when it finds unencrypted files (unless --fix succeeds).
Note: The current implementation inspects files described in
.sops.yamlcreation rules and only understands YAML/plaintext formats. Binary or non-YAML files are treated as unencrypted unless they have the SOPS magic header at the start of the file.
Metadata
Release files for sops-checker 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sops_checker-0.2.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sops_checker-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / sops_checker-0.2.0.tar.gz
| Download URL | sops_checker-0.2.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d191acae8ba299c2285aeed4b0957afca1db7ecd1f5aa7f188503838e6c1655
|
|
BLAKE2b-256 checksum How to use checksums |
e8d1cbe1053595bf929488d6c380bcb41b91eb5948eff7547798adb857c98233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.8
|
Release files / sops_checker-0.2.0-py3-none-any.whl
| Download URL | sops_checker-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e4462993686d8756c95a46255227babdd62d08201fb9825914ef1f35868e16c
|
|
BLAKE2b-256 checksum How to use checksums |
fb4fb92c45ebdf197960b5e74955b3b08155ba1dfd415884e3ea819e7d0dedd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.8
|