Skip to content

Conversation

@Sukuna0007Abhi
Copy link

@Sukuna0007Abhi Sukuna0007Abhi commented Sep 21, 2025

Summary

This PR implements CLI support for the new PSA profile functionality from veraison/corim#215, making PSA endorsements available through the command line interface.

Changes Made

New PSA Profile Template

  • Added data/corim/templates/corim-psa.json with the new PSA profile URI tag:arm.com,2025:psa#1.0.0
  • Enables users to create CoRIMs using the updated PSA profile specification

PSA CoMID Examples

  • data/comid/psa/psa-reference-values.json - PSA software component reference values
  • data/comid/psa/psa-attestation-key.json - PSA Initial Attestation Key verification keys
  • data/comid/psa/psa-certification-claims.json - PSA Certified Security Assurance Certificate claims
  • data/comid/psa/psa-software-relations.json - PSA software update and patch relationships

CLI Command Updates

  • Updated corim submit help text to include both legacy and new PSA profile media types
  • Added PSA profile example to corim create command help
  • Maintains backward compatibility with existing PSA profile

Test Coverage

  • Added comprehensive test case for new PSA profile media type submission
  • All existing tests continue to pass

Usage Examples

Create PSA CoRIM

# Convert JSON CoMIDs to CBOR
cocli comid create --template=data/comid/psa/psa-reference-values.json --output=psa-ref.cbor

# Create PSA CoRIM
cocli corim create --template=data/corim/templates/corim-psa.json \
                   --comid=psa-ref.cbor \
                   --output=psa-corim.cbor

Submit PSA CoRIM

cocli corim submit
--corim-file=psa-corim.cbor
--api-server="https://veraison.example/endorsement-provisioning/v1/submit"
--media-type="application/corim-unsigned+cbor; profile=tag:arm.com,2025:psa#1.0.0"

Compliance

Follows draft-fdb-rats-psa-endorsements-08 specification
Compatible with PSA profile implementation from corim#215
Maintains existing CLI patterns and conventions

Testing

All tests pass including new PSA profile test case
Manual testing confirms PSA CoRIM creation and submission workflows work correctly
Resolves #42

Ready for Review sir @thomas-fossati sir @setrofim @deeglaze ma'am

@Sukuna0007Abhi Sukuna0007Abhi changed the title feat: add PSA profile support to cocli for issue #41 feat: add PSA profile support to cocli for issue #42 Sep 21, 2025
- Add PSA profile CoRIM template with URI tag:arm.com,2025:psa#1.0.0
- Create comprehensive PSA CoMID examples:
  * Reference values for PSA software components
  * Attestation verification keys (IAK)
  * Certification claims for PSA Certified SAC
  * Software relations for updates/patches
- Update corim submit command to support new PSA profile media type
- Add PSA profile examples to corim create help text
- Include comprehensive test coverage for new PSA profile functionality
- Add documentation and usage examples for PSA profile workflow

This makes the PSA profile functionality from veraison/corim#215
available through the command line interface as requested.

Resolves veraison#42

Signed-off-by: Sukuna0007Abhi <appsonly310@gmail.com>
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.

Support new PSA profile

1 participant