semi implemented and features implemented save checkpoint

This commit is contained in:
master
2026-02-08 18:00:49 +02:00
parent 04360dff63
commit 1bf6bbf395
20895 changed files with 716795 additions and 64 deletions

View File

@@ -0,0 +1,23 @@
# OS Rootfs Fingerprint and Surface Cache
## Module
Scanner
## Status
IMPLEMENTED
## 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` - `OsRootfsFingerprint` generates unique fingerprints for OS root filesystem layers based on package database state
- **Surface Cache**:
- `src/Scanner/__Libraries/StellaOps.Scanner.Analyzers.OS/Internal/OsAnalyzerSurfaceCache.cs` - `OsAnalyzerSurfaceCache` caches 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)