Skip to content

Add repository abstraction layer to SDD#8

Merged
sarroutbi merged 2 commits into
keylime-webtool:mainfrom
sarroutbi:add-sdd-repository-abstraction-layer
May 8, 2026
Merged

Add repository abstraction layer to SDD#8
sarroutbi merged 2 commits into
keylime-webtool:mainfrom
sarroutbi:add-sdd-repository-abstraction-layer

Conversation

@sarroutbi
Copy link
Copy Markdown
Contributor

Introduce hexagonal ports-and-adapters pattern for data persistence and caching. Define four domain-specific repository traits (AlertRepository, AttestationRepository, PolicyRepository, AuditRepository) and a CacheBackend trait with implementation matrix covering in-memory, PostgreSQL, and Redis backends.

Update AppState to hold trait objects, add repository/ to the component tree, update data flow diagram, configuration hierarchy, cache TTL strategy, design rationale (6 entries), security and performance overlays, and traceability matrix. Add IR-019 cross- reference in the SRS.

sarroutbi and others added 2 commits May 8, 2026 11:37
Introduce hexagonal ports-and-adapters pattern for data persistence
and caching. Define four domain-specific repository traits
(AlertRepository, AttestationRepository, PolicyRepository,
AuditRepository) and a CacheBackend trait with implementation matrix
covering in-memory, PostgreSQL, and Redis backends.

Update AppState to hold trait objects, add repository/ to the
component tree, update data flow diagram, configuration hierarchy,
cache TTL strategy, design rationale (6 entries), security and
performance overlays, and traceability matrix. Add IR-019 cross-
reference in the SRS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
Agents are Keylime-owned data observed via pass-through proxy. Keeping
them out of the repository layer preserves graceful degradation when
the webtool DB is down.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
@sarroutbi sarroutbi merged commit 1759e85 into keylime-webtool:main May 8, 2026
2 checks passed
@sarroutbi sarroutbi deleted the add-sdd-repository-abstraction-layer branch May 8, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant