Skip to content

[v7] Switch to forked httprouter and enable UseRawPath option (#11068)#12109

Merged
Tener merged 3 commits into
branch/v7from
tener/v7/backport-11068
Apr 21, 2022
Merged

[v7] Switch to forked httprouter and enable UseRawPath option (#11068)#12109
Tener merged 3 commits into
branch/v7from
tener/v7/backport-11068

Conversation

@Tener

@Tener Tener commented Apr 20, 2022

Copy link
Copy Markdown
Contributor

Backport to v7: #11068


  • Use forked httprouter with RawPath fix: gravitational/httprouter

  • Enable UseRawPath everywhere.

  • Test: allow MFA devices with / in names to be deleted

Co-authored-by: Przemko Robakowski przemko.robakowski@goteleport.com

Tener and others added 2 commits April 20, 2022 11:31
* Use forked httprouter with RawPath fix: gravitational/httprouter

* Enable UseRawPath everywhere.

* Test: allow MFA devices with `/` in names to be deleted

Co-authored-by: Przemko Robakowski <przemko.robakowski@goteleport.com>
@Tener Tener merged commit 393dcc2 into branch/v7 Apr 21, 2022
@Tener Tener deleted the tener/v7/backport-11068 branch April 21, 2022 07:42
atikhono added a commit to joomcode/Burrow that referenced this pull request Aug 7, 2024
Our kafka entities (e.g. consumer group names) contain unsafe symbols,
such as forward slash and colon. This change forces Burrow (httprouter)
to use encoded paths in URLs (Burrow plugin for Telegraf has always used
PathEscape from "net/url" to form Burrow URLs). With raw path support,
we do not loose metrics for groups with unsafe symbols in name.

Original pull request to support raw path in httprouter:
julienschmidt/httprouter#209, waiting for merge
since 2017. Looks like httprouter was abandoned around 2019.

The author switched to their own fork:
gravitational/teleport#12109. Let's do the same.
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.

4 participants