Skip to content

test: PoC RepoGate advisory risk gate on fork - #1

Closed
1998LJ wants to merge 15 commits into
masterfrom
poc/repogate-advisory-gate
Closed

1998LJ wants to merge 15 commits into
masterfrom
poc/repogate-advisory-gate

Conversation

@1998LJ

@1998LJ 1998LJ commented Sep 19, 2026

Copy link
Copy Markdown
Owner

PoC test PR inside isolated fork to verify RepoGate composite action.

1998LJ and others added 15 commits September 16, 2026 15:32
feat(discovery): add ~/.claude.json to home discovery (#1)
- mcplint gate: read-only probe battery (7 probes) derived from public
  advisories (CVE-2026-59822 x2, CVE-2026-42271, CVE-2026-49468)
- loopback-only unless --allow-host; exit codes 0/1/2; --json output
- probe engine: multi-step MCP handshake with session propagation,
  method-preserving 307/308 redirect follow, 5xx-instead-of-denial
  surfaced as low findings
- tests: mock patched/vulnerable/redirect/erroring gateways (13 tests)
- docs: README runtime gate section, probe table;
  research/gate-lab-verification.md (real LiteLLM 1.100.0 vs 1.83.14)
- version: 0.2.0
- gate --auth <expectations.yaml>: one test key (env var only) verifies
  tool-list filtering, x-mcp-servers scoping, and an opt-in read probe
  against an object the test user must not access
- findings: AUTH001 forbidden tools (high), AUTH002 outside allowlist
  (medium), AUTH003 scoping not enforced (high), AUTH004 read leak
  (critical, content redacted), AUTH005 missing expected tool (low)
- prints the key's tool inventory on every run (first-run discovery)
- safety: literal keys rejected (env/VAR only), key never printed, no
  tool calls unless read_probe is configured, loopback-only by default
- example expectations file + tests for clean/overexposed/scope-leak/
  read-leak/missing-env cases
- version: 0.3.0
…-file

- /mcp route denials retry the canonical /mcp/ path (LiteLLM key-type
  route patterns like /mcp/* do not match /mcp without the slash)
- upstream_headers: forward a test user's upstream token for per-user
  gateways; values are env-referenced only (literals rejected)
- --env-file FILE: load the key and per-server tokens from one
  uncommitted file; existing environment variables win
- 401/403 errors now include the gateway's reason (key redacted) and
  distinguish a missing permission grant from a bad key
- tests: fallback path, upstream headers (present/missing/literal),
  env-file parsing and CLI wiring (63 tests total)
- version: 0.3.1
…locks

- auth mode now sends 'User-Agent: mcplint-gate' like the anonymous battery;
  Cloudflare and similar WAFs block Python-urllib with Error 1010
- 401/403 handling detects HTML/Cloudflare bodies and reports an edge block
  (with the right remediation) instead of blaming the key or permissions
- tests: WAF block detection + UA requirement (65 tests total)
- version: 0.3.2
- auth mode now prints 'test key sees 0 tool(s)' explicitly and adds an
  AUTH000 note naming the two common causes: a token missing the 'Bearer '
  prefix (forwarded verbatim upstream) or an x-mcp-<alias>-* header that
  does not match the server alias
- the auth-mode 'No findings' line now refers to the key's surface instead
  of the anonymous probes
- tests: empty inventory reporting (66 tests total)
- version: 0.3.3
- the HTTP client truncated bodies at 4 KiB; real tools/list responses with
  JSON schemas are tens of KB and broke parsing (surfaced as 'could not
  parse a tools/list response')
- raise the cap to 4 MiB and add a 37 KB response regression test
- tests: 67 total
- version: 0.3.4
- read_probe now honors its expect field: 'allow' means the test user
  should have access — returned data is the pass condition, and a denial
  is flagged as AUTH006 (medium: the use case is broken)
- 'deny' (default) keeps AUTH004 (critical) when data comes back
- example expectations document both directions; README table updated
- tests: expect-allow pass + denial cases (69 tests total)
- version: 0.3.5
@1998LJ 1998LJ closed this Sep 20, 2026
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.

3 participants