Skip to content

feat: Implement Trust Broker (SPIFFE/SPIRE + OPA) #1

Description

@dcplatforms

Overview

Implement the Trust Broker — central authorization mediator for all inter-agent communication. Every message between agents MUST pass through this component.

Spec: specs/security/trust-broker.yaml | Architecture: docs/ARCHITECTURE.md §5.2

Implementation

  • TrustBroker class in src/security/trust_broker/
  • Integrate pyspiffe for JWT-SVID verification
  • OPA client for policy evaluation (deny-by-default)
  • Audit ledger writer (append-only, every decision logged)
  • Fail-closed: if SPIRE or OPA unreachable → deny ALL requests

Tests Required

  • Expired SVID → deny + log
  • Wrong trust domain → deny + log
  • OPA unreachable → deny all (fail closed)
  • Valid SVID + allowed action → approve + log
  • Agent impersonation attempt → detect + alert operator

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    julesReady for Jules implementationphase-1Phase 1 implementationsecuritySecurity plane component

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions