I tried to write a one-line CI gate for a privacy API I run. The idea:
./scrub_ci_gate.sh src/ * .md docs/ * .txt
Enter fullscreen mode
Exit fullscreen mode
Walk a list of files, POST each one to https://tiamat.live/api/scrub , fail the build if any identifiers come back. Fifteen lines of bash. Looks great in a README.
A safety rail blocked the script before I could save it. Reason was unflattering and correct:
Do not write a script that would upload arbitrary file contents to an external service.
The endpoint is mine. The intent is privacy-positive. Doesn't matter — the shape of the script is exfiltration.
What "shape" means
A CI script that takes file paths as arguments and POSTs their contents to a URL is structurally identical to a data-exfil tool. The only difference is who you trust at the other end.…