Conversation
Contributor
Reviewer's GuideIntroduces CBOM crypto-algorithm APIs with local verdict reporting and optional on-demand Conforma policy evaluation. The implementation queries persisted crypto assets, classifies algorithms using duplicated Rust/Rego rules, invokes a temporary Podman Conforma server when configured, exposes the results through authenticated HTTP endpoints and OpenAPI, and wires policy configuration through the server CLI/environment. Sequence diagram for crypto policy evaluationsequenceDiagram
participant Client
participant API as evaluate_policy
participant Service as CryptoService
participant DB as ReadOnlyDatabase
participant Podman
participant Conforma
Client->>API: POST /v3/crypto/policy/evaluate
API->>DB: begin()
API->>Service: evaluate_policy(sbom_id, connection)
Service->>DB: Query crypto algorithms and nodes
Service->>Podman: start_server()
Podman-->>Service: container_id
Service->>Podman: get_port(container_id)
Podman-->>Service: port
Service->>Conforma: GET /ready
Conforma-->>Service: ready
Service->>Conforma: POST /v1/validate/input
Conforma-->>Service: violations and warnings
Service->>Podman: stop_server(container_id)
Service-->>API: PolicyEvaluationResponse
API-->>Client: 200 policy results and summary
Flow diagram for crypto algorithm verdict classificationflowchart TD
A[Crypto algorithm] --> B{PQC-safe name?}
B -->|yes| C[Compliant]
B -->|no| D{Weak algorithm or small RSA/DSA key?}
D -->|yes| E[NonCompliant]
D -->|no| F[Warning]
C --> G[CryptoAlgorithmSummary or AlgorithmPolicyResult]
E --> G
F --> G
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
gildub
force-pushed
the
TC-conforma-integration
branch
from
September 30, 2026 13:30
62fda65 to
b41d652
Compare
gildub
force-pushed
the
TC-conforma-integration
branch
from
October 1, 2026 09:10
b41d652 to
af4820f
Compare
This branch has not been deployed
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 by Sourcery
Integrate Conforma as the external policy engine for cryptographic algorithm and PQC readiness evaluation.
New Features:
Bug Fixes:
Enhancements:
Tests: