[phase-2] Policy enforcement inside TEE — Cedar evaluation runs in the enclave, not at API boundary
I maintainer di solito rispondono entro 1 giorno
@kingztech2019 ci sta già lavorando.
Dal 7/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
What and why
Phase 1 enforces Cedar policy at the API layer — the gateway process evaluates policy before forwarding calls to upstream MCP servers. In Phase 1, a compromised host OS can still bypass this (it can intercept the gateway process).
Phase 2 moves the Cedar evaluation inside the TEE boundary so policy decisions are hardware-protected. The Cedar engine must run inside the enclave; the policy bundle must be measured into the TEE attestation report; the enforcement result must be signed with the TEE key.
Architecture change
Phase 1 (current):
Agent → [cMCP API layer → Cedar eval → forward] → Upstream MCP server
Phase 2 (target):
Agent → [cMCP API layer] → TEE enclave: [Cedar eval + session state + audit chain] → [forward or deny] → Upstream MCP server
The TEE boundary is at the Cedar evaluation step. The enclave holds:
- The Cedar policy bundle (loaded and measured at startup)
- The session state (sensitivity tags, call history)
- The audit chain (hash-chained, TEE-signed)
Acceptance criteria
- Cedar evaluation runs inside the enclave — the policy bundle is measured into the TEE attestation report
-
policy.bundle_hashin the TRACE Trust Record is the hash measured at enclave load time (tamper-evident) -
policy.enforcement_mode = "enforce"means a deny inside the enclave cannot be bypassed by the host - All Phase 1 tests continue to pass
- Conformance tests POLICY-TEE-001 through POLICY-TEE-005 added and passing
- TRACE Trust Record
policy.bundle_hashmatches the value measured at startup
Notes
This is the critical path item for the GTC Berlin demo. Without it, the demo shows software-only governance (useful, but not the hardware-proof story). Target: end of Q3 2026.
- Lingua principale
- Python
- Stelle
- 33
- Fork
- 24
- Merge medio
- 1g 12h
- PR unite (30g)
- 59
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di agentrust-io/cmcp
-
cmcp_runtime.tee.nras: NRASClient accepts boolean/non-positive timeout and non-HTTPS endpoint, and crashes in try_appraise on non-dict EAR JSON or malformed report_dataForse già presa @drk-ram l’ha presa 7 giorni fa. Apertaneeds-review:MEDIUM
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
agentrust-io/cmcp#814 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
cmcp_runtime.provenance: check_server_provenance accepts duplicate JSON keys and private JWK parameters, crashes on non-dict JSON or non-str fields, and meets() does not validate required_kindForse già presa @drk-ram l’ha presa 7 giorni fa. Apertaneeds-review:MEDIUM
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
agentrust-io/cmcp#813 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
cmcp_verify.tcg_event_log: _parse_spec_id and parse_event_log accept duplicate algorithm IDs, mismatched digest sizes for known algorithms, and trailing Spec ID bytesForse già presa @drk-ram l’ha presa 7 giorni fa. Apertaneeds-review:MEDIUM
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
agentrust-io/cmcp#812 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
cmcp_verify.sev_snp / tpm: verify_sev_snp_measurement does not validate measurement hex characters or report_data_hex format, and _valid_measurement accepts whitespace/uppercase hexForse già presa @drk-ram l’ha presa 7 giorni fa. Apertaneeds-review:MEDIUM
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
agentrust-io/cmcp#811 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
cmcp_verify.nv_certify / nv_policy: verify_gateway_measurement accepts duplicate JSON keys, boolean/float version, non-base64 chars, and non-canonical gateway_digest hexForse già presa @drk-ram l’ha presa 7 giorni fa. Apertaneeds-review:MEDIUM
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
agentrust-io/cmcp#810 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di agentrust-io/cmcp
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
btclib-org/btclib-node#2198 ·
I maintainer di solito rispondono entro 1 giorno
-
Remove the em dashes from the skill smart-account referenceForse già presa @Vamsi-2581 l’ha presa oggi. Apertaagent-ready area: docs documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Soneso/stellar-agent-wallet#541 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sususweet/midea_auto_cloud#285 ·
I maintainer di solito rispondono entro 1 giorno
-
2026-11 documentation good first issue gsoc-2027 project: gsoc
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
alphaonelabs/website#1154 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno