pre-commit-hook-ensure-sops
A pre-commit hook to ensure that users don't accidentally check-in unencrypted files into a repository that uses sops to safely store encrypted secrets.
By default, any file with the word secret in its path is required to
be encrypted with sops. This means any files under a directory
named secret are also required to be encrypted. If you want to exempt
specific files or directories from this requirement in your repository,
use the exclude option in your .pre-commit-config.yaml. When pushing
secrets to a repo, better safe than sorry :)
Installation
Add this to your .pre-commit-config.yaml:
- repo: https://github.com/yuvipanda/pre-commit-hook-ensure-sops
rev: v1.0
hooks:
- id: sops-encryption
# Uncomment to exclude all markdown files from encryption
# exclude: *.\.md
Metadata
Release files for pre-commit-hook-ensure-sops 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pre-commit-hook-ensure-sops-1.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pre_commit_hook_ensure_sops-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / pre-commit-hook-ensure-sops-1.1.tar.gz
| Download URL | pre-commit-hook-ensure-sops-1.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a61c72df5516bc2a95a40259979bd49d2ad10c0303f8d4d3dcd303ae8f352fb
|
|
BLAKE2b-256 checksum How to use checksums |
ee1887ed5c2d9192267649e219fbdbeaa1e45482be18b58ff40bb9611ce75bd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / pre_commit_hook_ensure_sops-1.1-py3-none-any.whl
| Download URL | pre_commit_hook_ensure_sops-1.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
061fcd3335557f848b5901057bb34767ad7a49044d9b0afbe598e3666ca2dc08
|
|
BLAKE2b-256 checksum How to use checksums |
2b6423fb91394ce03116361a9bd3459ffb97855b7fa25e448650af1bb4a4aa49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|