How sajalkmr/sbomctl works
Main Components
a. Core Components:
• CPABE (Ciphertext-Policy Attribute-Based Encryption) Module
• PETRA (Privacy Engine)
• Policy Management System
• SBOM Processing System
• Redaction System
b. Supporting Components:
• Configuration Management
• Database Interface
• Cryptographic Services
• Utility Services
Component Relationships and Architecture
Top Layer (Interface):
• Main entry points (User.py and Redaction.py scripts)
Middle Layer (Core Processing):
• PETRA Privacy Engine
• To Policy Management
• To SBOM Processing
• To Redaction System
Bottom Layer (Infrastructure):
• CPABE Rust Implementation
• Database Systems
• Cryptographic Services
Specific Design Elements
Use these visual elements:
• Hexagons for policy components
• Blue: Core processing components
• Green: Security/encryption components
• Yellow: Policy components
• Gray: Infrastructure components
Key Relationships to Highlight
• Flow from raw SBOM data through the privacy engine
• How policies (AES, IP, weakness, etc.) interact with the core system
• Demonstrate the integration between Python and Rust components (CPABE)
• How the redaction system interfaces with the policy engine
Technical Details
Component Specifications:
CPABE Module (Rust):
• AC17 implementation
• Cryptographic primitives
PETRA Core (Python):
• Policy enforcement
• Parallel encryption
• Tree operations
• SPDX handling
Policy Framework:
• Multiple policy types (AES, IP, Log4j, etc.)
• Policy evaluation engine