Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 21, 2022

Conversation

Tener
Copy link
Contributor

@Tener Tener commented Apr 20, 2022

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