Skip to content

Haproxy soon#655

Open
Kyrremann wants to merge 22 commits intomasterfrom
haproxy
Open

Haproxy soon#655
Kyrremann wants to merge 22 commits intomasterfrom
haproxy

Conversation

@Kyrremann
Copy link
Copy Markdown
Member

@Kyrremann Kyrremann commented Mar 13, 2026

Vil bare presisere at dette ikke er utrulling av HAProxy, men kun tilrettelegger for å ha flere ingressClass per domene.

Kyrremann and others added 6 commits March 13, 2026 12:36
Co-authored-by: @x10an14-nav <christian.chavez@nav.no>
Må ha treff på lengste domene, ikke bare et oppslag.

Co-authored-by: @x10an14-nav <christian.chavez@nav.no>
Co-authored-by: @x10an14-nav <christian.chavez@nav.no>
@Kyrremann Kyrremann requested a review from a team as a code owner March 13, 2026 13:09
@Kyrremann Kyrremann changed the title Haproxy Haproxy soon Mar 13, 2026
Copy link
Copy Markdown
Contributor

@jhrv jhrv left a comment

Choose a reason for hiding this comment

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

LGTM

Kyrremann and others added 9 commits March 16, 2026 10:27
Co-authored-by: Sten Røkke <sten.ivar.rokke@nav.no>
Co-authored-by: Sten Røkke <sten.ivar.rokke@nav.no>
Co-authored-by: Sten Røkke <sten.ivar.rokke@nav.no>
Co-authored-by: Sten Røkke <sten.ivar.rokke@nav.no>
Co-authored-by: @x10an14-nav <christian.chavez@nav.no>
Co-authored-by: Sten Røkke <sten.ivar.rokke@nav.no>
Co-authored-by: @x10an14-nav <christian.chavez@nav.no>
Co-authored-by: @x10an14-nav <christian.chavez@nav.no>
Co-authored-by: Sten Røkke <sten.ivar.rokke@nav.no>
The 1:1 mapping (`"rewrite-target": "path-rewrite"`) broke on three fronts:
- capture group syntax differs (`$1` vs `\1`)
- absolute URLs are 302 redirects in nginx (not path rewrites)
- and `$arg_*` variables have no `path-rewrite` equivalent

HAProxy's `request-redirect` only supports host substitution — it hardcodes `%[capture.req.uri]`, so redirects that change the path cannot use it.
`REQ_REDIRECT` also fires before `REQ_PATH_REWRITE` in HAProxy's rule ordering, making the two annotations impossible to combine.
Complex cases fall through to `backend-config-snippet`.

`regexSuffix` is now only appended for nginx paths, since HAProxy's `PathTypePrefix` handles subpath matching natively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants