Skip to content

fix(coderd/httpmw): normalize repeated slashes before CSRF exemption check (#29798) - #30034

Merged
denisra merged 4 commits into
release/2.29from
backport/29798-to-2.29
Nov 20, 2026
Merged

denisra merged 4 commits into
release/2.29from
backport/29798-to-2.29

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #29798

Original PR: #29798 — fix(coderd/httpmw): normalize repeated slashes before CSRF exemption check
Merge commit: 6372f67
Requested by: @jdomeracki-coder

The automatic cherry-pick of 6372f67 to release/2.29 had conflicts.
Please cherry-pick manually:

    git cherry-pick -x -m1 6372f67
@github-actions github-actions Bot added the backport/v2.29 Backport PR targeting release/2.29 label Sep 28, 2026
@jdomeracki-coder

Copy link
Copy Markdown
Contributor

2.29 is no longer the supported ESR

@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026
@Lisa-Fiander Lisa-Fiander reopened this Nov 12, 2026
…check

Backport of #29798 to release/2.29. Release 2.29 only enforces CSRF on
/api routes, so only the /api test cases apply. Define
repeatedSlashesRe in csrf.go, because the definition in cors.go comes
from #29143, which is not on release/2.29.
@Lisa-Fiander Lisa-Fiander changed the title fix(coderd/httpmw): normalize repeated slashes before CSRF exemption check (#29798) (conflicts) fix(coderd/httpmw): normalize repeated slashes before CSRF exemption check (#29798) Nov 13, 2026
@denisra
denisra merged commit 504cdf0 into release/2.29 Nov 20, 2026
47 of 49 checks passed
@denisra
denisra deleted the backport/29798-to-2.29 branch November 20, 2026 19:26

This branch had an error being deployed

1 failed deployment
docs-preview — 47c4a232 Deployed Nov 20, 2026 by denisra via cleanup #307
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/v2.29 Backport PR targeting release/2.29

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants