Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: rajnisht7 <rajnishtiwari9787@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: rajnisht7 <rajnishtiwari9787@gmail.com>
… tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: rajnisht7 <rajnishtiwari9787@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: rajnisht7 <rajnishtiwari9787@gmail.com>
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
drk-ram
left a comment
There was a problem hiding this comment.
Reviewed docs/configuration.md, CHANGELOG.md, and the Agent Manifest trust-anchor and binding modules:
- Per-key issuer scoping (
trusted_key_issuers, Agent Manifest §5.3.3): Requiringtrusted_key_issuersas a mandatory keyword argument onverify_agent_manifest_binding, enforcing canonical unpadded base64url public keys and SPIFFE issuer URIs inload_agent_manifest_trust_policy, and rejecting duplicate JSON keys,NaN/Infinity, or private JWK members prevent any trusted key from vouching for an unauthorized issuer.
zohebk8s
left a comment
There was a problem hiding this comment.
Thanks for tightening Agent Manifest verification. Restricting each trusted key to its configured issuers looks correct, and the migration guidance clearly explains the required trust-anchor changes. The regression coverage looks good. Approved.
carloshvp
left a comment
There was a problem hiding this comment.
Please hold this change for a compatibility correction in the public binding API. I submitted the details privately under the repository’s security policy. The 102 COSE and trust-policy tests passed on Python 3.12 with agent-manifest 0.15.0, and both ordinary signed-format controls passed with the declared minimum SDK. Please cover the direct-caller policy contract at the minimum supported version as part of the correction.
… SDK in CI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: rajnisht7 <rajnishtiwari9787@gmail.com>
|
Thanks @carloshvp. The privately reported item is addressed in 83960bf:
Before the fix, the new tests failed on 0.11.1 and passed on 0.15.0. Now the full suite passes on 0.15.0 (959 passed), and the Agent Manifest tests pass on 0.11.1 (110 passed). |
drk-ram
left a comment
There was a problem hiding this comment.
Reviewed head commit 83960bf.
src/ca2a_runtime/agent_manifest.py:152addsload_agent_manifest_trust_policywith strict JSON parsing (_no_duplicate_keys,_no_constant) and per-key SPIFFE issuer policy.verify_agent_manifest_bindingatsrc/ca2a_runtime/agent_manifest.py:217requirestrusted_key_issuers, validates shape, and rejects policies that authorize no issuer.src/ca2a_runtime/bootstrap.py:178wires the issuer policy into startup binding, andtests/unit/test_agent_manifest_cose.py:228/:273add matrix coverage across issuers, versions, and malformed anchors.requirements/min-sdk.txt:1plus CImin-sdkjob coverage keeps the agent-manifest floor behavior pinned and tested.
What
The Agent Manifest trust anchor now lists, per key, the issuers it may sign for (same format as cMCP), and startup refuses an anchor that lists none.
Why
Agent Manifest spec 5.3.3: a trusted key may only vouch for issuers it is authorized for. Before, any trusted key could vouch for any issuer, and with agent-manifest 0.16 every binding failed as UNVERIFIABLE.
Security impact
Closes a gap where a key trusted for one issuer could sign a manifest claiming another.
Test plan
pytestpassesruff checkpassesmypypassesDCO sign-off
Developer Certificate of Origin (https://developercertificate.org).