Enforce L7 HTTP policy in Cilium to allow only specific HTTP methods and paths

domain: docs.cilium.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Write a `CiliumNetworkPolicy` with `toPorts` specifying `protocol: TCP` and `port: 80`
  2. Add an `rules.http` array under the port definition with entries like `{method: GET, path: /api/health}`
  3. Use `fromEndpoints` to scope which source pods the L7 rule applies to
  4. Ensure Envoy proxy is enabled in the Cilium installation (required for L7 enforcement)
  5. Apply the policy and test with `curl` from an allowed pod; verify that disallowed methods return HTTP 403
  6. Inspect policy verdicts with `hubble observe --verdict DROPPED` to confirm enforcement

Known gotchas

Related routes

Write a Cilium L3/L4 NetworkPolicy to restrict pod-to-pod traffic
docs.cilium.io · 5 steps · unrated
Configure a Cilium Tetragon TracingPolicy to observe file opens on sensitive directories using a tracepoint
tetragon.io · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans