deck/internal.yamldeclarative state
Global OpenTelemetry, certificate-binding, DPoP sender-constraint, and tier-wall plugins. Routes HAPI, FHIR MCP, scheduling MCP, GitHub egress, and mockhub egress. Applies rate limits and route-specific OIDC/ACL/DLP/vendor-token plugins. The tier-wall pre-function accepts both Bearer and DPoP authorization schemes.
deck/external.yamldeclarative state
Independent external tier wall, OTel, a placeholder FHIR ACL route, and patient-facing FHIR MCP route.
cnf-check/handler.luacertificate binding
Requests a client certificate, parses unverified JWT payload only to locate the thumbprint, hashes leaf DER, and returns 401 on missing/unreadable/mismatch. Later components validate signature.
dpop-check/handler.luasender-constraint
When the token carries cnf.jkt, validates the DPoP proof structure, matches the proof key’s RFC 7638 thumbprint to the claim, checks htm/htu/iat/ath, and enforces single-use jti via a dpop_jti shared dict. It reads every DPoP header value, so a request carrying more than one proof is rejected. The replay cache fails closed: a missing dict or a failed insert returns 503, and forcible LRU evictions are logged as a degraded-mode audit event. It does not verify the proof’s ECDSA signature (the DP does no crypto on first-party routes); the MCP server re-checks authoritatively.
dlp-egress/handler.luainspection
Reads the body and fails closed for unreadable non-GET/HEAD input. Runs the configured PCRE patterns over the raw bytes, then — for a JSON body — over every decoded string and key, so JSON escapes cannot hide a match; a declared-JSON body that does not decode, or nests too deep, is denied. Blocks on error/match and logs only the pattern name.
vendor-token/handler.luacredential swap
Refuses a DPoP-scheme token with 401 (the broker validates bearer hub JWTs and does not check proofs). Posts vendor/sub/JTI/TTL/scopes to the broker, replaces upstream Authorization on 200, maps consent/re-consent responses, and fails closed — 502 when the broker is unreachable or its reply is malformed.
plugins/*/schema.luaschemas
Declare valid configuration fields. Because deck/internal.yaml is shared by every phase, every phase 2–5 setup registers all four schemas with Konnect before decK sync (compose/lib/konnect.sh) and every internal DP loads all four plugins; each is claim- or route-driven and inert where unused.