This repository has been archived on 2026-06-22. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
lnbits-sensei/docs
Padreug 773632562e feat(dev-env): wire shared pre-commit secret scanner via core.hooksPath
Ships `modules/dev-env/scripts/git-hooks/pre-commit` — the same
secret-scanner pattern omnixy uses, lightly adapted (drops the
omnixy-specific test_auth.py skip, generic header comment).

New option `lnbits-sensei.devEnv.gitHooks.enable` (off by default).
When on, modules/dev-env/config.nix installs the hook at
`~/.local/share/lnbits-sensei/git-hooks/pre-commit` and sets the
consumer's git `core.hooksPath` to that directory, so every repo on
the machine picks it up without per-repo wiring.

The hook refuses to commit obvious secrets (PRIVATE KEY blocks,
`password=…`, `secret=…`, `api_key=…`, `admin_key=…`, AWS keys,
non-placeholder POSTGRES_PASSWORD) and unencrypted sops files
(checks for a top-level `sops:` block AND `mac: ENC[…]` — either
signal alone is forgeable). False positives are handled via
`# pragma: allowlist secret` line- or block-level markers (gitleaks
convention).

docs/secrets-management.md gets a new subsection covering what the
hook does, when to enable it, and the false-positive escape hatches.
The Pitfalls section's reference to "the pre-commit hook most
consumers use" is replaced with a concrete pointer to this option.

`nix flake check --no-build` stays green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 09:21:27 +02:00
..
lnbits-extension-dev.md docs: add lnbits frontend gotchas + extension-dev reference 2026-05-26 00:57:08 +02:00
lnbits-frontend-gotchas.md docs: add lnbits frontend gotchas + extension-dev reference 2026-05-26 00:57:08 +02:00
lnbits-upstream-flow.md docs: add upstream-PR workflow + lnbits branch-model reference 2026-05-25 20:07:03 +02:00
lnbits-workspace-notes.md docs(workspace-notes): add settings precedence (.env vs DB) 2026-05-25 20:32:48 +02:00
remotes.md chore: add git remote topology module + docs 2026-05-24 22:36:33 +02:00
secrets-management.md feat(dev-env): wire shared pre-commit secret scanner via core.hooksPath 2026-05-26 09:21:27 +02:00
upstream-prs.md docs: add upstream-PR workflow + lnbits branch-model reference 2026-05-25 20:07:03 +02:00