Skip to content

feat(mcp-gateway): runtime gateway flavor — adopt pipelock, alert-only by default (Milestone B) - #4

Merged
garymike merged 1 commit into
mainfrom
feat/mcp-gateway
Jul 10, 2026
Merged

garymike merged 1 commit into
mainfrom
feat/mcp-gateway

Conversation

@garymike

Copy link
Copy Markdown
Owner

What

The runtime tier that completes the ladder scan → detonate → enforce (ADR-0007). A new mcp-gateway flavor wraps pipelock — an adopted, Apache-2.0, CNCF-Landscape, signed MCP firewall — pinned by digest, as a local proxy on the MCP JSON-RPC stream.

  • Alert-only by default (config/gateway.observe.yaml, action: warn) — findings are recorded (signed receipts), not blocked; enforce (config/gateway.enforce.yaml, action: block) is opt-in.
  • Any OCI runtime via gateway.sh (docker → podman → wslc, health-checked) — no Docker Desktop required, off one digest-pinned image. Same runtime-agnostic approach as security-workflows bin/skill-gate.
  • ADR-0007 records the decisions: adopt-don't-build (pipelock over abandoned/AGPL ressl, LLM-gateway Bifrost, K8s-heavy ContextForge); the compiler is the ownable layer; alert-only default.

Verified

Both policies validate against the pinned pipelock:3.0.0@sha256:49b6ee… (config schema is version-coupled → the digest pin). gateway.sh runs end-to-end on the auto-selected runtime: Config validation: OK, and a leaked AWS key → BLOCKED (core DLP). No Docker on the box — ran via podman/wslc.

Scope

This is Milestone B (wrap the engine). Milestone C adds the assess→enforce compiler (mcp-reviewer assessment.json → policy, every rule traceable to a finding) + an enforce-mode CI proof-fixture asserting review-flagged X → generated policy blocks X, plus the neutral policy-contract spec.

Wrap pipelock (adopted, Apache-2.0, pinned by digest) as a local MCP firewall that completes the
ladder scan -> detonate -> enforce. Alert-only by default (observe/warn); enforce (block) is opt-in
via config/gateway.enforce.yaml. Runs on any OCI runtime (docker -> podman -> wslc) via gateway.sh,
no Docker Desktop required.

- agents/mcp-gateway/{README, compose.yml, gateway.sh, config/{observe,enforce}.yaml}
- both policies validate against the pinned pipelock 3.0.0 (config schema is version-coupled -> the
  digest pin); gateway.sh verified end-to-end (validate + content-aware AWS-key block).
- ADR-0007 records the decisions (adopt-not-build, the compiler is the ownable layer, alert-only
  default). README flavor table + status updated.

The assess->enforce compiler (assessment.json -> policy) + the enforce-mode CI proof-fixture are
Milestone C.
@garymike
garymike merged commit 2d380ec into main Jul 10, 2026
16 checks passed
@garymike
garymike deleted the feat/mcp-gateway branch July 10, 2026 13:49
garymike added a commit that referenced this pull request Sep 8, 2026
Same correction as garymike/security-workflows#65. The example said
SkillSpector "advises only, no fail-on mode." It is not advisory: it
gates on exit code, exit 1 above a risk_score of 50, and it blocks the
same payload class in a .test.ts carrier at 73/100.

It clears this example's .husky/pre-commit carrier at 28/100, measured
here on the digest-pinned image, because it classifies a git hook as
non-executable. The outcome the example asserts was right; the reason
given for it was not.

verify.sh's assertion is unchanged and still passes (exit 0). Only its
rationale and its check-2 label were wrong. Both halves of the coverage
gap are pinned upstream in security-workflows tests/gate-proof.sh #4.

Co-authored-by: Claude Opus 5 <[email protected]>
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