Skip to content

Security: dooodledad/Pascal

Security

SECURITY.md

Security Policy

Supported Versions

Version Supported
main branch (latest) ✅

Reporting a Vulnerability

If you discover a security issue, please report it privately by emailing the maintainer at alexyaoyang@gmail.com (or open a private security advisory on GitHub).

Please include:

  • A clear description of the issue
  • Steps to reproduce (if applicable)
  • The potential impact
  • Any suggested fix (if you have one)

We aim to acknowledge within 48 hours and provide a fix timeline within one week. Public disclosure will be coordinated after a fix is released.

Threat Model & Hardened Boundaries

Pascal is designed with strict trust boundaries. The key invariants (from REVIEW.md):

  • Never bill an unchosen provider — a route whose key env var is unset is skipped entirely; REVIEW_MODEL outside the flattened model set is refused
  • The cost cap gates the RPC, not the cache — a known over-cap blended rate refuses the route (OverBudgetError); an unmeasurable price degrades to an unpinned call (cost control is best-effort only where it cannot measure); cached answers bill nothing and are never discarded for today's price
  • Delivery's per-review cap is fail-closed and separate — a budgeted job requires a pinned OpenRouter provider, complete price/capacity bounds, and a token-limit parameter advertised across every eligible provider variant; missing data refuses the RPC
  • Answers cache under the model that produced them — never under the primary's id
  • The provider pin rides in extra_body, never as a top-level kwarg
  • A hard per-request timeout is mandatory — without it a provider-side queue wedge presents as a live run making zero progress
  • Never two batch submissions for one review request — the batch ledger claims each response-cache key once with an atomic O_EXCL create

Secrets & Configuration

  • All credentials are injected via environment variables (see .env.example)
  • .env is gitignored — never commit real keys
  • The GitHub App private key lives at a filesystem path (GITHUB_APP_PRIVATE_KEY_PATH); the file is never committed
  • Webhook HMAC secret (GITHUB_WEBHOOK_SECRET) is verified on every request before parsing

Known Non-Goals (Documented for Transparency)

These are deliberately out of scope and not security concerns:

  • Multi-platform git hosting (GitLab/Bitbucket/Azure/Forgejo) — GitHub-only
  • Fix-PR agent that iterates until CI passes — auto-push + unbounded spend
  • Sandboxed code execution — heavy and security-sensitive for a single container
  • External knowledge base / web search — broad and unbounded

Dependencies

Runtime dependencies are listed in requirements.txt (pinned versions). The project runs in a single container with no external services required beyond the GitHub API and an LLM provider.

CI / Supply Chain

  • GitHub Actions runs tests on every push/PR (python -m pytest -q)
  • No secrets in workflow files
  • Python 3.12 pinned

There aren't any published security advisories