1.4 KiB
1.4 KiB
Offline SBOM Verification CLI
Module
Cli
Status
IMPLEMENTED
Description
CLI command stella sbom verify for offline SBOM verification including signature validation, canonical hash recomputation, and format compliance checks for CycloneDX/SPDX documents without network connectivity.
Implementation Details
- Command Group:
src/Cli/StellaOps.Cli/Commands/SbomCommandGroup.cs--SbomCommandGroupforstella sbomcommands - SBOM Client:
src/Cli/StellaOps.Cli/Services/SbomClient.cs/ISbomClient.cs-- SBOM operations - SBOMer Client:
src/Cli/StellaOps.Cli/Services/SbomerClient.cs/ISbomerClient.cs-- SBOM generation client - Tests:
src/Cli/__Tests/StellaOps.Cli.Tests/SbomCommandTests.cs,src/Cli/__Tests/StellaOps.Cli.Tests/Integration/SbomCanonicalVerifyIntegrationTests.cs,SbomVerifyIntegrationTests.cs - Commands:
stella sbom verify <file>-- verify SBOM offline. Options:--format cdx|spdx,--check-signature,--recompute-hash
E2E Test Plan
- Run
stella sbom verify ./sbom.cdx.jsonand verify CycloneDX compliance check - Run
stella sbom verify ./sbom.spdx.jsonand verify SPDX compliance check - Run with
--check-signatureand verify SBOM signature validation - Run with
--recompute-hashand verify canonical hash matches - Verify offline operation (no network required)
- Verify invalid SBOM produces clear error with specific violations