flybrain/infra/tests/de-pii-allow.txt
acamilo 05324293ee tools: pii-scan guard with a private pattern list, tag-release gate and pre-push hook
tools/pii-scan.sh scans the tree, a commit range (added lines and messages) or a push
(pre-push protocol, incl. annotated tag messages). Generic shapes stay in the script; the
proper nouns move to the operator's private list ($FLY_PII_PATTERNS), which can also name
env files whose values are matched as literals and never printed. lint.sh section 5 now
runs it (a missing list is a note, so public CI still passes) and no longer spells the
names with one bracketed character. tag-release.sh fails closed without the list and scans
the tree and every line since the previous tag. tools/install-hooks.sh installs a pre-push
hook that scans pushes to github. Tests in infra/tests/pii-scan-test.sh.
2026-09-29 15:52:35 +00:00

65 lines
4.3 KiB
Text

# infra/tests/de-pii-allow.txt — the mentions tools/pii-scan.sh (run by
# infra/tests/lint.sh section 5, infra/build/tag-release.sh and the pre-push hook)
# is allowed to find.
#
# Format, whitespace-separated:
#
# <path> <pattern-name> # reason
#
# <path> is a repo-relative path, a directory prefix ending in `/`, or a glob.
# <pattern-name> is a pattern name: a generic one from tools/pii-scan.sh
# (`tools/pii-scan.sh --list`), one from the operator's private pattern list
# (operator-name, forge-name, ...), or `*` for every pattern.
#
# EVERY LINE NEEDS A REASON. The right fix is almost always to redact instead —
# the rules and the per-file verdicts live in the operator's infra repo.
# An entry here says "this string is not identifying", not "this is grandfathered".
#
# Comments below describe what a mention is, never the private string itself: an
# allowlist that carried the plaintext would be the leak it is meant to prevent.
# --- chat-username fixtures -------------------------------------------------
# A lowercase first name is the chat-username fixture the sanitizer, deny-list,
# rate-limiter, ticker and store tests are written against; the de-PII sprint
# leaves test fixture names alone. The operator-name pattern is case-sensitive
# precisely so the capitalised name in prose still fails, and the real handle
# was replaced with `fly_fan_42`. These entries exist only for the few places a
# fixture is lowercase-with-a-boundary that the pattern would still catch via
# another alternative.
apps/stage/tests/unit/ operator-name # lowercase chat-username fixtures
services/flysim/crates/flysim/tests/ operator-name # lowercase chat-username fixtures
services/flysim/crates/flysim/src/chat.rs operator-name # sanitizer unit-test fixtures in the same file
services/flysim/crates/flysim/src/eventlog.rs operator-name # ticker fixture in a doc example
services/bridge/tests/ operator-name # lowercase chat-username fixtures
# --- container-side paths ---------------------------------------------------
# `nvidia.run`, `virtualgl.deb` and `nv.run` under root's home are paths INSIDE
# a container: root's home on a stock Debian guest, not an operator-chosen
# location, and not specific to this network. Host-side staging paths are
# parameterised instead (HOST_STAGE_DIR / `<host-stage>`).
infra/02-base.sh host-root-path # the two installer paths under root's home are inside the guest
docs/design/gpu.md host-root-path # same two paths, plus /proc/<pid>/ root links, which are procfs
# --- documentation examples -------------------------------------------------
# A made-up MAC in a worked example of the compatibility string. Real MACs are
# in the operator's infra repo.
services/flysim/crates/flybrain-gb/src/compatibility.rs mac-address # aa:bb:... placeholder in a doc example
# --- upstream identifiers ---------------------------------------------------
# Third-party addresses and handles: upstream projects, not this network.
# (None currently; keep the section so the next one lands in the right place.)
apps/stage/public/fonts/ email-address # SIL OFL licence text from upstream font projects; not ours to edit
infra/tests/lint.sh email-address # the example.invalid git identity for the throwaway test repos
infra/tests/pii-scan-test.sh email-address # same example.invalid identity for the scanner's throwaway repos
# --- publish pack ------------------------------------------------------------
NOTICE operator-name # the copyright holder's legal name, chosen by the operator 2026-09-17; change here if an entity is preferred
LICENSES.md operator-name # same copyright line, mirrored
.forgejo/workflows/ci.yml forge-name # the product name of the CI runner, not the operator's forge
.github/workflows/ci.yml forge-name # a comment naming the sibling copy of this workflow
infra/docs/secrets-history-scan.md forge-name # names the two workflow files by path
infra/tests/de-pii-allow.txt forge-name # this file names that workflow directory in the entry above
# --- fixtures ----------------------------------------------------------------
apps/stage/tests/unit/query.test.ts private-address # made-up address in a feed-URL parsing fixture
services/bridge/tests/ secret-assignment # fake client id/secret fixtures ("test-client-secret-DO-NOT-LOG")