Skip to content

[gateway] Wire OPA policy checks before upstream model calls #7

Description

@kaynor

Goal

Call OPA from the gateway on each chat completion and enforce allow/deny.

Acceptance criteria

  • Gateway loads agent policy context from registry
  • OPA query uses policies/opa/agentvoir.rego
  • Denied requests return 403 with structured error
  • Usage events record policy denials

Suggested files

  • apps/gateway/internal/gateway/handler.go
  • policies/opa/

Metadata

Metadata

Assignees

No one assigned

    Labels

    gatewayLLM gateway / proxyhelp-wantedMaintainer welcomes community helpphase-2Enterprise controlssecuritySecurity or supply chain

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions