leakdigest

command
v0.209.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL