Skip to content

Audit remediation: security hardening and phase gates#1

Merged
fraware merged 19 commits into
mainfrom
audit-remediation
Jul 16, 2026
Merged

Audit remediation: security hardening and phase gates#1
fraware merged 19 commits into
mainfrom
audit-remediation

Conversation

@fraware

@fraware fraware commented Jul 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Harden security posture: exec-safe subprocesses, metrics bearer auth, fail-closed Redis budget/rate limits, authenticated Redis in compose, and patch path deny policy.
  • Complete service implementations for Freestyle all-pass quorum, static analysis analyzers, fuzzing runners, attestation stores, Lean no-sorry/proof discovery, and Morph HTTP unification.
  • Wire Temporal heal-loop SHA tracking, Phase 3 optional gates/observability, soak/cost harnesses, expanded CI matrix, and dependency overrides for known vulnerable transitives.

Test plan

  • pnpm install --frozen-lockfile
  • pnpm --filter @self-healing-ci/exec-safe test
  • pnpm --filter @self-healing-ci/temporal-worker test
  • pnpm --filter @self-healing-ci/github-app test
  • Confirm Redis requires REDIS_PASSWORD via docker-compose
  • Confirm metrics routes reject requests without METRICS_AUTH_TOKEN
  • Review CI matrix on this PR

fraware added 19 commits July 16, 2026 06:02
Shared package runs subprocesses via execFile with explicit argv arrays.
Bind metrics privately by default and harden GitHub app security helpers and middleware.
Treat redis outages as deny for budget and rate limits unless degraded mode is explicitly enabled.
Password-protect redis and document fail-closed budget and metrics settings.
Block patches that touch workflows, secrets, env files, and other sensitive paths by default.
Prefer argv-array test commands and add fuzzing, static analysis, and attestation activities.
Deterministic n/n success by default so partial retry passes cannot green-wash failures.
Wire eslint, ruff, clippy, and semgrep analyzers behind shell-safe command execution.
Implement cargo-fuzz and fuzzilli runners with shell-safe argv execution and parse helpers.
Support local and registry attestation stores with cosign argv helpers and slsa policy checks.
Fail closed on sorry/admit unless explicitly allowed, and discover proof files from manifests.
Centralize morph http calls and support configurable apply paths for healing patches.
Track patched tip SHAs, lock concurrent patches, and tighten diagnosis and proofs.
Gate merge on optional static analysis, fuzz, and attestation; improve cloud events and metrics.
Default to loopback host binding and keep temporal workflow starts aligned with heal controls.
Limit model cost exposure and allow a cheaper triage pass before full diagnosis.
Cover workflow restarts and cost ceilings with opt-in temporal cli and soak scripts.
Build and test all packages in ci, add an audit gate, and override vulnerable deps.
Update architecture and security docs for redis auth, metrics tokens, and optional gates.
@cursor

cursor Bot commented Jul 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@gitguardian

gitguardian Bot commented Jul 16, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
34880974 Triggered Generic Password f9c599b docker-compose.yml View secret
34880974 Triggered Generic Password f9c599b docker-compose.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@fraware
fraware merged commit 5f0adcb into main Jul 16, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant