Documentation
¶
Overview ¶
Command leakdigest builds and checks the digest file of the leak gate and is the local scanner behind it.
The repository is public; the list of names it must never hold is a secret. The committed form of that list is a file of keyed hashes, so this command is run by the operator with the plaintext list and the key, both of which live outside the repository:
leakdigest genkey [-out FILE] leakdigest gen -plain LIST -out DIGEST [-key-file FILE] [-exempt FILE] [-dir DIR] leakdigest check -plain LIST [-digest DIGEST] [-key-file FILE] [-exempt FILE] [-dir DIR] leakdigest scan -plain LIST [-dir DIR | -ref REV [-repo DIR]] [-files FILE] [-digest DIGEST] leakdigest patterns -plain LIST [-into FILE]
scan is the per-chunk acceptance tool and the parity check: it runs the same matcher, fold, fail-closed rules and shape rules as the gate, over a work tree (-dir) or the blobs of a commit (-ref), and prints plaintext names, so it is local only and never run in CI. The library behind it is internal/leakgate.