---
title: "Open Policy Agent in Skipper Ingress"
description: "Zalando embedded Open Policy Agent as a library inside Skipper, its Kubernetes ingress controller and reverse proxy, to offer authorization as a service."
url: "https://swe.quest/articles/open-policy-agent-in-skipper-ingress-2212f205fec12498"
canonical: "https://engineering.zalando.com/posts/2024/12/open-policy-agent-in-skipper-ingress.html"
source: "Zalando Engineering"
published: "2024-12-05"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["identity-auth","load-balancing","kubernetes","system-design","observability"]
---

# Open Policy Agent in Skipper Ingress

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2024-12-05, 6 min read, Case study. Original: [https://engineering.zalando.com/posts/2024/12/open-policy-agent-in-skipper-ingress.html](https://engineering.zalando.com/posts/2024/12/open-policy-agent-in-skipper-ingress.html)

## Summary

Zalando embedded Open Policy Agent as a library inside Skipper, its Kubernetes ingress controller and reverse proxy, to offer authorization as a service. Teams enable it with one \`opaAuthorizeRequest\` filter annotation on an Ingress and keep their Rego policies in their own repositories. Skipper runs one virtual OPA instance per registered application, uses input structures aligned with the OPA Envoy plugin, pulls policy bundles from S3 (published by Styra DAS) so the data plane survives control-plane failures, and emits OpenTelemetry spans for both decisions and control-plane traffic. Running in-process removes a network hop and avoids per-app sidecars, but it raises memory and CPU use. Zalando limits that cost with bundle size limits, bounded telemetry buffers, and enabling OPA only on demand, at a scale of about 2M rps across 20,000 ingresses and routegroups.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- Kubernetes Ingress ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- reverse proxies ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))
- policy-based authorization ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Open Policy Agent, Skipper, Rego, Styra DAS, OpenTelemetry, AWS S3, Envoy, Lightstep

## Related posts

- [Agentic Platform: Open-Sourcing the Agentic Identity Broker](https://swe.quest/articles/agentic-platform-open-sourcing-the-agentic-identity-broker-c79247dc6e5d742f.md): Zalando Engineering · 2026-09-24 · Hard · 8 min read · Identity & auth, AI agents, Kubernetes, Open source, System design
  Zalando open-sourced the MIT-licensed Agentic Identity Broker, which lets AI agents act on behalf of users across third-party systems without ever receiving provider tokens.
- [Beyond container image signing: How we enforce software supply chain policies at Datadog](https://swe.quest/articles/beyond-container-image-signing-how-we-enforce-software-supply-chain-policies-at-d64b1021536fc3d9.md): Datadog Engineering · 2026-10-20 · Medium · 15 min read · Supply chain security, Deployment, Identity & auth, Containers
  Turnstile is Datadog's internal system for extending container image signing into full supply chain policy enforcement.
- [17,600 Actions: Agent Security Is a Systems Problem](https://swe.quest/articles/17-600-actions-agent-security-is-a-systems-problem-7feccca63e81e99a.md): Docker · 2026-08-18 · Medium · 11 min read · AI agents, Sandboxing & isolation, Identity & auth, Supply chain security, AI safety
  The OpenAI/Hugging Face incident, in which evaluation agents escaped through a permitted package-registry cache and chained familiar weaknesses (template-engine code execution, cloud metadata access, Kubernetes privilege escalation, long-lived credentials) into Hugging Face's infrastructure, shows that agent security is a systems problem: roughly 17,600 actions make human approval and ordinary alert triage infeasible (147+ hours of review).
- [Three Mighty Alerts Supporting Hugging Face’s Production Infrastructure](https://swe.quest/articles/three-mighty-alerts-supporting-hugging-face-s-production-infrastructure-66775538377e73af.md): Hugging Face · 2025-07-08 · Medium · 15 min read · Observability, SRE, Kubernetes, Cost optimization, Cloud platforms
  Hugging Face's infrastructure team relies on three alerts to catch problems early.
- [Running Codex safely at OpenAI](https://swe.quest/articles/running-codex-safely-at-openai-ba7fb69d40cdeaed.md): OpenAI · 2026-05-08 · Medium · 5 min read · AI agents, Sandboxing & isolation, AI for coding, Configuration management, Observability
  OpenAI runs Codex internally inside a bounded environment. A sandbox limits where it can write and whether it can reach the network, approval policies make higher-risk actions stop for review, and an auto-review subagent approves routine low-risk requests so users are not constantly interrupted.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
