Add comprehensive CMW example files for issue #24 #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 fieldsmock-tsm-with-privilege.json- Mock TSM attester with privilege level configurationtsm-report-basic.json- Basic TSM report attester examplemulti-attester.json- Demonstrates multiple attesters in a single CMW collectiontsm-cbor-format.json- TSM report using CBOR content type formatprivilege-level-3.json- Example showing maximum privilege level configurationDocumentation and Testing
README.md- Comprehensive documentation explaining CMW structure, usage examples, and API integrationtest-examples.sh- Automated validation script for JSON syntax, CMW structure, and base64 encodingIMPLEMENTATION_SUMMARY.md- Technical summary of implementation approach and design decisionsTechnical Implementation
CMW Structure Compliance
All examples follow the standard CMW collection format with proper
__cmwc_ttagging and content type specifications for each attester type.Validation Features
Coverage
Testing
All examples have been validated using the included test script. The validation covers:
Integration
These examples are designed to work with the existing RATSD API endpoints and support both
list-options: allandlist-options: selectedconfigurations.Resolves #24
Resolves: #24