1.5 KiB
1.5 KiB
OS Rootfs Fingerprint and Surface Cache
Module
Scanner
Status
VERIFIED
Description
Root filesystem fingerprinting to uniquely identify OS layers, paired with a surface cache that avoids re-analyzing unchanged OS layers across scans.
Implementation Details
- Rootfs Fingerprinting:
src/Scanner/__Libraries/StellaOps.Scanner.Analyzers.OS/Internal/OsRootfsFingerprint.cs-OsRootfsFingerprintgenerates unique fingerprints for OS root filesystem layers based on package database state
- Surface Cache:
src/Scanner/__Libraries/StellaOps.Scanner.Analyzers.OS/Internal/OsAnalyzerSurfaceCache.cs-OsAnalyzerSurfaceCachecaches OS analysis results keyed by rootfs fingerprint, avoiding re-analysis of unchanged OS layers
E2E Test Plan
- Scan a container image and verify an OS rootfs fingerprint is generated based on the package database state
- Rescan the same image and verify the surface cache returns cached results without re-analyzing the OS layer
- Scan a different image sharing the same base OS layer and verify the cache hit reuses previously computed results
- Scan an image with a modified OS layer and verify the cache miss triggers fresh OS analysis
- Verify fingerprint stability (same layer produces identical fingerprints across scans)
Verification
| Check | Result |
|---|---|
| Tier 0 - Source files exist | PASS |
| Tier 1 - Build + code review | PASS |
| Tier 2 - Integration tests | PASS |
| Verified | 2026-02-13T18:10:00Z |