Skip to main content

Module verify

Module verify 

Source
Expand description

Supply-chain security: verify MCP server binaries before spawning.

Two independent checks, both optional:

  1. SHA-256 hash pin โ€” computed from the binary on disk, compared to config.sha256.
  2. Cosign bundle โ€” delegates to the cosign verify-blob CLI (must be on PATH).

Either check failing is fatal: verify_binary returns Err and the gateway refuses to start.

Functionsยง

verify_binary
Resolve cmd to an absolute path, then run all configured checks. Returns Ok(()) if all enabled checks pass, Err otherwise.