feat(features): add LogBackend trait and sokolsky integration#90
Merged
Destynova2 merged 2 commits intodevelopfrom Apr 6, 2026
Merged
feat(features): add LogBackend trait and sokolsky integration#90Destynova2 merged 2 commits intodevelopfrom
Destynova2 merged 2 commits intodevelopfrom
Conversation
Introduce log_backend module with async LogBackend trait for querying external log systems. Includes SokolskyBackend (HTTP client for sokolsky-collector), role-based plane/backend access control, N-of-N cross-plane signature verification, and field-level DLP filtering. - LogBackend trait: query(), verify_signatures(), health_check() - 4 roles (admin/devops/dev/auditor) with plane x backend matrix - FieldSpec glob matching for field redaction - MockLogBackend for testing (multi-backend aggregation) - Gherkin scenarios for T-SOK-1 through T-SOK-4 - 23 unit tests, clippy clean Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add doc comments on all public enum variants (Plane, LogBackendError) to satisfy cargo doc coverage pre-push hook. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
LogBackendasync trait for querying external log systems with role-based access controlSokolskyBackendwith N-of-N cross-plane signature verification (machine/app/audit)Changes
src/features/log_backend/mod.rs—LogBackendtrait,LogRole,FieldSpec,LogQuery,LogEntry, access control, field filtering,query_with_role()orchestratorsrc/features/log_backend/sokolsky.rs—SokolskyBackendimplementation +MockLogBackendfor testssrc/features/mod.rs— module registrationtests/cucumber/features/sokolsky.feature— T-SOK-1 to T-SOK-4 Gherkin scenariosTests
Test plan
cargo test— 200 passed, 0 failedcargo clippy— cleancargo doc coverage— all public items documented🤖 Generated with Claude Code