Skip to content

feat(features): add LogBackend trait and sokolsky integration#90

Merged
Destynova2 merged 2 commits intodevelopfrom
feat/sokolsky-integration
Apr 6, 2026
Merged

feat(features): add LogBackend trait and sokolsky integration#90
Destynova2 merged 2 commits intodevelopfrom
feat/sokolsky-integration

Conversation

@Destynova2
Copy link
Copy Markdown
Contributor

Summary

  • Add LogBackend async trait for querying external log systems with role-based access control
  • Implement SokolskyBackend with N-of-N cross-plane signature verification (machine/app/audit)
  • Role-based field filtering matrix: 4 roles (admin/devops/dev/auditor) x 3 planes x N backends
  • DLP-integrated field redaction with glob patterns

Changes

  • src/features/log_backend/mod.rsLogBackend trait, LogRole, FieldSpec, LogQuery, LogEntry, access control, field filtering, query_with_role() orchestrator
  • src/features/log_backend/sokolsky.rsSokolskyBackend implementation + MockLogBackend for tests
  • src/features/mod.rs — module registration
  • tests/cucumber/features/sokolsky.feature — T-SOK-1 to T-SOK-4 Gherkin scenarios

Tests

  • 23 unit tests covering: access control per role, field filtering, glob redaction, plane parsing, FieldSpec semantics
  • CQI: clean code, well-documented public API

Test plan

  • cargo test — 200 passed, 0 failed
  • cargo clippy — clean
  • cargo doc coverage — all public items documented
  • Pre-push hooks — all passed

🤖 Generated with Claude Code

Destynova2 and others added 2 commits April 6, 2026 12:29
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>
@Destynova2 Destynova2 merged commit e51b9af into develop Apr 6, 2026
38 checks passed
@Destynova2 Destynova2 deleted the feat/sokolsky-integration branch April 6, 2026 11:02
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