test: security-ci canary (must FAIL gitleaks) #81

Closed
amiryahaya wants to merge 3 commits from test/security-canary into main
Owner

DELIBERATE canary for issue #14's exit criterion — contains a fake AWS docs-example key. This PR MUST fail security-ci at the gitleaks step. Will be closed immediately after validation.

DELIBERATE canary for issue #14's exit criterion — contains a fake AWS docs-example key. This PR MUST fail security-ci at the gitleaks step. Will be closed immediately after validation.
Completes the operational half of task 0.6 (the suite half landed with
1.10's #69/#70):

- **security-ci.yml** (PR + push triggers, exempt from manual-dispatch):
  gitleaks full-history secret scan, Semgrep SAST with the FailSulit ZK
  rule set, Trivy vuln/misconfig/secret (HIGH/CRITICAL gate), and a
  NuGet vulnerable-package audit — a PR with a planted secret or a
  vulnerable dependency fails automatically (0.6 exit criterion)
- **.semgrep/failsulit-zk.yml**: 2 custom rules encoding recovered bug
  classes — no-guid-empty-actor (the #32/#74 FK-poison family) and
  no-secret-logging. Validated both ways: 0 findings on main's 285
  files; the rule FIRES on a planted Guid.Empty pattern (negative
  control)
- **SECURITY.md** + RFC 9116 /.well-known/security.txt endpoint
  (SsdidPublic + PublicRouteRegistry entry + authz-matrix row — the
  harness verified the new route through coverage, derivation, and
  registry both-directions checks)
- **Dependabot**: nuget, github-actions, npm (desktop + admin)
- **pre-push hook**: gitleaks staged scan (skips gracefully when not
  installed locally — CI enforces authoritatively)

Server-side ops steps that live outside the repo are tracked in the
issue comment: Forgejo branch protection on main + runner isolation
review.
test: security-ci canary — planted (fake, docs-example) AWS key
Some checks failed
Security CI / security-scan (pull_request) Failing after 25s
API CI / build-and-test (pull_request) Has been cancelled
fd744921bd
fix(security-ci): deterministic gitleaks handling + validation evidence
Some checks failed
Security CI / security-scan (pull_request) Failing after 45s
API CI / build-and-test (pull_request) Successful in 33m48s
54ea172d8a
- gitleaks path-allowlist semantics are version-flaky (verified: only
  trailing-slash entries applied, inconsistently) — replaced with a
  report-and-filter: gitleaks always exits 0 with a JSON report; the
  workflow filters findings by path and hard-fails on anything outside
  the test-fixture directories. Deterministic across versions.
- .gitleaks.toml reduced to [extend] default rules only
- KeyManager.swift (iOS): two generic-api-key false positives on type
  declarations carry inline 'gitleaks:allow' comments
- benign-prefix corrected to the real iOS test dir
  (clients/ios/FailSulit/FailSulitTests/)

Validation (local, dockerized gitleaks 8.30.1):
- clean tree: 26 findings → filter → 0 production → CI green
- tree + planted random AKIA key: 27 → filter → 1 production finding
  (CANARY-FAKE-SECRET.txt) → CI red
- semgrep rules: 0 findings on main's 285 files; fires on planted
  Guid.Empty pattern (negative control)
amiryahaya closed this pull request 2026-11-07 06:07:21 +01:00
Some checks failed
Security CI / security-scan (pull_request) Failing after 45s
Required
Details
API CI / build-and-test (pull_request) Successful in 33m48s

Pull request closed

Sign in to join this conversation.
No description provided.