Skip to content

feature: Bundle Service: Implement mTLS identity verification #1860

Closed

Description

@davidhadas

Feature Description

Summary

The bundle service currently relies on a client-controlled ?spiffe= query parameter with NoopVerifier for identity. This is intentional for the MVP trust boundary — verification is deferred, the Verifier interface serves as the extension seam, and NetworkPolicy restricts ingress to AuthBridge sidecars.

However, before the bundle service becomes reachable beyond the sidecar mesh, a proper identity verification mechanism must be in place. Even when keeping it in sidecar mesh, it allows agents to pick up bundles of other agents and to perform DoS attacks on the bundle service.

Proposed Solution

Requirements

  • Implement an mTLS-based Verifier that validates client certificates against the SPIFFE trust bundle
  • Ensure the chosen verifier is enforced before any network path outside the current sidecar mesh can reach the bundle service
  • Update ARCHITECTURE.md to reflect the new trust model

Context

  • The Verifier interface (NoopVerifier today) was designed as the seam for this work
  • Current trust boundary: NetworkPolicy limits ingress to AuthBridge sidecars only
  • See ARCHITECTURE.md in the bundle-service directory for the current design rationale

Want to contribute?

  • I would like to work on this issue.

Additional Context

Acceptance Criteria

  • Production-grade Verifier implementation (mTLS)
  • NoopVerifier is no longer used when the service is exposed beyond the sidecar mesh
  • Integration tests covering identity verification failure cases

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions