Skip to content

feat(chart): Gateway API and ingress guides #397

Closed

Description

@uniqueg

Problem

The foca-common library chart and the deployment docs support two ways to expose an app: an Ingress, tuned for ingress-nginx (body size limit, TLS redirect and rate limit annotations, NetworkPolicy peers for the ingress-nginx namespace), and an OpenShift Route. ingressClassName can be set, but nothing else is covered:

  • ingress-nginx is retired: Kubernetes SIG Network and the Security Response Committee announced best-effort maintenance only until March 2026 and no releases or security fixes after that, and recommend migrating to the Gateway API (announcement, statement of January 2026).
  • The chart has no Gateway API HTTPRoute.
  • Common controllers such as Traefik (the default on k3s and Rancher) and the cloud providers' load balancers get no guidance: the ingress-nginx annotations do nothing there, so the body size limit, HTTPS redirect and rate limits silently don't apply, and the default NetworkPolicy peers don't match their pods.

Ease of deployment drives adoption, so FOCA apps should deploy cleanly on the common setups.

Expected

  • foca-common: optional Gateway API support: an HTTPRoute (gateway.networking.k8s.io/v1) for the app's host and paths, attached to an existing Gateway (parentRefs from values), with the same path rules as the Ingress (e.g., blocked admin paths). Ingress, Route and HTTPRoute stay mutually exclusive; schema, template tests and the kind install test cover it (kind can run a Gateway API implementation, e.g., Envoy Gateway, if feasible; otherwise template tests).
  • Body size limits and HTTPS redirects for the HTTPRoute where the Gateway API offers them; otherwise documented, and the app's own max_content_length stays the enforcing limit.
  • NetworkPolicy peers configurable for any controller, with documented values for ingress-nginx, Traefik, the OpenShift router and a Gateway implementation.
  • Docs (deployment guide / chart docs): a short section per setup: Gateway API (recommended for new clusters), ingress-nginx (retired; migration note), Traefik, OpenShift, cloud load balancers (pointers only), each with the values and annotations for body size, TLS/HTTPS redirect, rate limiting and NetworkPolicy.
  • A chart version bump (minor) and release notes.

Apps using the chart (cloud-registry, proTES) document their app-specific bits only and link here.

Activity

  1. added
    priority: high
    status: triage
    type: delivery
    type: feature
    workload: days
    on Oct 22, 2026
  2. uniqueg commented on Oct 22, 2026

    @uniqueg
    MemberAuthor

    Done in #404.

  3. removed
    status: triage
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: deliverytype: featureworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions