Skip to content

fix(policy): add attestation_platform to Cedar context at evaluation time (POLICY-005) - #225

Merged
imran-siddique merged 1 commit into
mainfrom
fix/security-medium-policy-005
Jun 7, 2026
Merged

fix(policy): add attestation_platform to Cedar context at evaluation time (POLICY-005)#225
imran-siddique merged 1 commit into
mainfrom
fix/security-medium-policy-005

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

  • Cedar policy evaluation did not include attestation_platform in the context, so policies couldn't restrict amd-sev-snp-only access — a software-only attestation would satisfy any platform-scoped policy
  • Added attestation_platform: str = "unknown" parameter to CMCPProxy.__init__() and included it in _build_cedar_context() return dict
  • Default is "unknown" to ensure policies that check context.attestation_platform == "amd-sev-snp" fail closed by default

Fixes #162.

Test plan

  • pytest tests/unit/test_mcp_proxy.py — all 19 pass including 2 new POLICY-005 tests
  • pytest full suite — no regressions

…time (POLICY-005, #162)

Closes #162.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit b160c7e into main Jun 7, 2026
1 of 8 checks passed
imran-siddique added a commit that referenced this pull request Jun 7, 2026
…time (POLICY-005, #162) (#225)

Closes #162.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique deleted the fix/security-medium-policy-005 branch July 29, 2026 23:20
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.

MEDIUM: Cedar policy decision does not verify the attestation platform matches policy scope (POLICY-005)

1 participant