Skip to content

Conversation

@Sukuna0007Abhi
Copy link

Summary

This PR addresses issue #24 by providing comprehensive example CMW (Conceptual Message Wrapper) files for testing and development purposes with RATSD.

Changes Made

Example Files Created

  • basic-mock-tsm.json - Simple mock TSM attester example with minimal required fields
  • mock-tsm-with-privilege.json - Mock TSM attester with privilege level configuration
  • tsm-report-basic.json - Basic TSM report attester example
  • multi-attester.json - Demonstrates multiple attesters in a single CMW collection
  • tsm-cbor-format.json - TSM report using CBOR content type format
  • privilege-level-3.json - Example showing maximum privilege level configuration

Documentation and Testing

  • README.md - Comprehensive documentation explaining CMW structure, usage examples, and API integration
  • test-examples.sh - Automated validation script for JSON syntax, CMW structure, and base64 encoding
  • IMPLEMENTATION_SUMMARY.md - Technical summary of implementation approach and design decisions

Technical Implementation

CMW Structure Compliance

All examples follow the standard CMW collection format with proper __cmwc_t tagging and content type specifications for each attester type.

Validation Features

  • JSON syntax validation
  • CMW structure verification according to project standards
  • Base64 encoding validation for auxblob and outblob fields
  • Automated testing infrastructure for continuous validation

Coverage

  • Mock TSM attester with JSON format and configurable privilege levels
  • TSM Report attester supporting both JSON and CBOR content types
  • Multi-attester scenarios demonstrating complex evidence collection
  • Complete privilege level range from 0 to 3

Testing

All examples have been validated using the included test script. The validation covers:

  • JSON syntax correctness
  • CMW structure compliance
  • Base64 encoding validity
  • Content type consistency

Integration

These examples are designed to work with the existing RATSD API endpoints and support both list-options: all and list-options: selected configurations.

Resolves #24
Resolves: #24

- Created 6 example CMW files covering different scenarios
- Added documentation (README.md) explaining structure and usage
- Included validation script (test-examples.sh) for quality assurance
- All examples use proper base64 encoding and CMW structure
- Supports mock-tsm and tsm-report attesters with JSON/CBOR formats

Resolves: veraison#24
Signed-off-by: Sukuna0007Abhi <[email protected]>
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.

Example CMW Files

1 participant