feat(crypto): add PQC policy evaluation for CBOM assets - #2619
Draft
jcrossley3 wants to merge 2 commits into
Draft
jcrossley3 wants to merge 2 commits into
jcrossley3 wants to merge 2 commits into
Conversation
Contributor
Reviewer's GuideAdds a registered, authenticated crypto API for listing algorithm assets from ingested CBOMs and evaluating them against a built-in PQC policy engine, with pagination, optional SBOM scoping, OpenAPI schemas, and unit/integration coverage. Sequence diagram for crypto policy evaluationsequenceDiagram
participant Client
participant API as CryptoAPI
participant Service as CryptoService
participant DB as ReadOnlyDB
participant Policy as PolicyEngine
Client->>API: POST /v3/crypto/policy/evaluate
API->>DB: begin()
API->>Service: evaluate_policy(sbom_id, connection)
Service->>DB: Load algorithm assets and nodes
DB-->>Service: CBOM algorithms
Service->>Policy: evaluate_algorithm(name, properties)
Policy-->>Service: PolicyVerdict
Service-->>API: PolicyEvaluationResponse
API-->>Client: 200 results and summary
Flow diagram for CBOM algorithm policy classificationflowchart TD
A[CBOM algorithm asset] --> B[evaluate_algorithm]
B --> C{PQC-safe pattern?}
C -->|Yes| D[Compliant]
C -->|No| E{Weak algorithm or small key?}
E -->|Yes| F[NonCompliant]
E -->|No| G[Warning]
D --> H[Policy result and summary]
F --> H
G --> H
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Create crypto domain module with algorithm listing and policy evaluation endpoints. Algorithms from ingested CBOMs are classified as Compliant (PQC-safe), Warning (classical), or NonCompliant (weak) based on a built-in rules engine. Implements TC-5851 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Sep 11, 2026
Merged
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.
Create crypto domain module with algorithm listing and policy evaluation endpoints. Algorithms from ingested CBOMs are classified as Compliant (PQC-safe), Warning (classical), or NonCompliant (weak) based on a built-in rules engine.
Implements TC-5851
Summary by Sourcery
Add crypto policy evaluation APIs for assessing CBOM algorithms against post-quantum readiness rules.
New Features:
Enhancements:
Documentation:
Tests: