Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building Dotguard: What Writing Detection Rules Taught Me About Developer Habits

Описание и применение

dotguard – это одностраничный сканер секретов без зависимостей, который интегрируется в CI одной строкой. Он выявляет реальные шаблоны секретов, управляет ложными срабатываниями и стимулирует их ротацию, превращая обнаружение в привычку команды.

Задача

Teams often miss or mishandle secrets, leading to costly leaks. Existing scanners either lack trust, generate false positives, or are hard to integrate into CI.

Результат

dotguard enabled teams to detect secrets quickly, reduce false positives, and enforce rotation through a simple CI step, turning secret management into a repeatable habit.

Рабочий процесс

  • 1. Add dotguard to the repository as a single file. 2. Commit a pre‑push or CI step that runs npx @wuchunjie/dotguard --report. 3. On each push, the scanner outputs a JSON report of findings. 4. Review the report: file, line, rule, severity. 5. Verify each finding; if real, rotate the key. 6. Update the suppression list for known false positives. 7. Re‑run the scan to confirm rotation and absence of the old key.

Доказательства

The scanner looks for the patterns that real secrets actually take… It also checks for high‑entropy strings assigned to suspicious variable names…

Источник

The entire CI integration is one step: a run line that invokes the scanner via npx… Every push gets a full scan, and the build fails if a secret is found…

Источник

  • Дата записи: 2026-09-06T15:37:00.647Z