Add comprehensive CMW example files for issue #24#55
Open
Sukuna0007Abhi wants to merge 1 commit into
Open
Conversation
- 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 <appsonly310@gmail.com>
b11e2b4 to
646c6fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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