Skip to content

chore: extend securitypolicy with backendRef attribute#420

Open
andibeuge wants to merge 5 commits intomainfrom
chore/extend-securitypolicy-with-backend-refs
Open

chore: extend securitypolicy with backendRef attribute#420
andibeuge wants to merge 5 commits intomainfrom
chore/extend-securitypolicy-with-backend-refs

Conversation

@andibeuge
Copy link
Contributor

For securityPolicies OIDC counter parts we can use internal traffic, if the system is run within the same cluster. If not set, gateway tries to derive the backend dynamically from the url which might not work depending on the loadbalancer being used for the auth system.

@andibeuge andibeuge requested a review from a team as a code owner March 6, 2026 16:56
Copilot AI review requested due to automatic review settings March 6, 2026 16:56
@andibeuge andibeuge requested a review from a team as a code owner March 6, 2026 16:56
@github-actions github-actions bot added the yaml label Mar 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for explicitly configuring backendRefs on Envoy Gateway SecurityPolicy resources so OIDC and JWT JWKS retrieval can be routed to an in-cluster IdP service instead of relying on URL-based backend derivation.

Changes:

  • Introduces envoy.security.backendRefs (global) and envoy.security.policies[].backendRefs (per-policy override) in example values.
  • Renders backendRefs into spec.oidc.provider and spec.jwt.providers[].remoteJWKS when configured.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
parcellab/monolith/values.yaml Documents global and per-policy backendRefs configuration in the monolith chart values.
parcellab/microservice/values.yaml Documents global and per-policy backendRefs configuration in the microservice chart values.
parcellab/common/templates/_securitypolicies.tpl Implements templating to emit backendRefs in OIDC provider and JWT remoteJWKS blocks.

andibeuge and others added 4 commits March 9, 2026 09:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants