feat: typed spec.extensionProviders[] for ext_authz registrations#30
Conversation
Adds a typed surface on IstioStack for registering Istio MeshConfig ExtensionProviders (HTTP + gRPC). Per-namespace oauth2-proxy bridges declare themselves once; AuthorizationPolicy.CUSTOM rules in any consumer namespace reference the registered name. Render fails with actionable messages on missing name, duplicate name, both modes set, or neither mode set. Status surface exposes the configured provider list so consumers can gate AuthorizationPolicy MRs on readiness. End-to-end verified on pat-local: registered smoke-test-ext-authz points at a deny-403 nginx; waypoint Envoy access log shows "302 UAEX ext_authz_denied" via the registered provider. Implements [[tasks/istio-stack-extension-providers]] Pattern: [[specs/platform-public-exposure]]
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Published Crossplane PackageThe following Crossplane package was published as part of this PR: Package: ghcr.io/hops-ops/istio-stack:pr-30-f54205989d91346b16410c203f4bd9d452e68aa6 |
Summary
Adds a typed
spec.extensionProviders[]surface on IstioStack so per-namespace oauth2-proxy bridges (and any future ext_authz consumer) can register themselves with the mesh declaratively. Each entry maps 1:1 onto ameshConfig.extensionProviders[]element rendered into the istiod Helm release. AuthorizationPolicy.CUSTOM rules in any consumer namespace then reference the registered provider name.The render-time validator fails fast with actionable messages on:
nameenvoyExtAuthzHttpandenvoyExtAuthzGrpcset on the same entryStatus surface exposes
status.extensionProviders.{configured[], ready}so consumers can gate their AuthorizationPolicy MRs on readiness (per[[feedback_crossplane_composition_gates]]).This is the prerequisite primitive for
[[tasks/observe-stack-public-exposure]]and the wider[[specs/platform-public-exposure]]pattern.End-to-end verification on pat-local
Built + installed via
hops config install --path .. Addedsmoke-test-ext-authzpointing at a deny-403 nginx, then attached anAuthorizationPolicy.CUSTOM(provider=smoke-test-ext-authz)to a sister Service routed through an ambient Waypoint:Waypoint access log:
403 UAEX ext_authz_denied— the canonical Envoyext_authz_deniedresponse flag, proving the waypoint really called the registered ext_authz upstream.Test plan
make test— 10/10 pass (existing 6 + 4 new: HTTP, gRPC, multiple-in-order, empty-leaves-meshconfig-clean)make validate:*— all 4 examples validatefailwith actionable messages🤖 Generated with Claude Code