[GH-ISSUE #1075] Feature Request: Rule type path regex #6545

Closed
opened 2026-04-25 15:26:45 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @K33k0 on GitHub (Jul 17, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1075

Originally assigned to: @jackrosenberg on GitHub.

I'm trying to set up a rule that would do something like protect / but leave any further path unprotected. I believe in traefik you could do PathRegex('^/(?!$).*') However, in pangolin there is not currently an option. I was thinking, maybe it could be added in the below interface.

Image
Originally created by @K33k0 on GitHub (Jul 17, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/1075 Originally assigned to: @jackrosenberg on GitHub. I'm trying to set up a rule that would do something like protect `/` but leave any further path unprotected. I believe in traefik you could do `PathRegex('^/(?!$).*')` However, in pangolin there is not currently an option. I was thinking, maybe it could be added in the below interface. <img width="1182" height="382" alt="Image" src="https://github.com/user-attachments/assets/5c702a39-aa2f-4dce-bdc7-48dbf17a37a0" />
Author
Owner

@jackrosenberg commented on GitHub (Jul 17, 2025):

I think I can PR this!

<!-- gh-comment-id:3085617817 --> @jackrosenberg commented on GitHub (Jul 17, 2025): I think I can PR this!
Author
Owner

@oschwartz10612 commented on GitHub (Jul 18, 2025):

Go for it @jackrosenberg let me know if you have any questions! Thanks!

<!-- gh-comment-id:3086449647 --> @oschwartz10612 commented on GitHub (Jul 18, 2025): Go for it @jackrosenberg let me know if you have any questions! Thanks!
Author
Owner

@afunworm commented on GitHub (Jul 18, 2025):

Same request with #1059 . Just commenting to follow.

<!-- gh-comment-id:3091267455 --> @afunworm commented on GitHub (Jul 18, 2025): Same request with #1059 . Just commenting to follow.
Author
Owner

@jackrosenberg commented on GitHub (Aug 10, 2025):

Hello all, the NixOS side of things is picking up speed again, and this item has stalled out on my todo list. In order to not hold up development someone else is welcome to take a shot at this!

<!-- gh-comment-id:3172577693 --> @jackrosenberg commented on GitHub (Aug 10, 2025): Hello all, the NixOS side of things is picking up speed again, and this item has stalled out on my todo list. In order to not hold up development someone else is welcome to take a shot at this!
Author
Owner

@adrianeastles commented on GitHub (Aug 10, 2025):

I'm more than happy to tackle this, I should do it after this PR #1231. That way I don't create more work for myself. Thoughts @oschwartz10612?

<!-- gh-comment-id:3172593758 --> @adrianeastles commented on GitHub (Aug 10, 2025): I'm more than happy to tackle this, I should do it after this PR #1231. That way I don't create more work for myself. Thoughts @oschwartz10612?
Author
Owner

@miloschwartz commented on GitHub (Sep 27, 2025):

Converting this to a discussion thread so others can upvote and participate

<!-- gh-comment-id:3342083057 --> @miloschwartz commented on GitHub (Sep 27, 2025): Converting this to a discussion thread so others can upvote and participate
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#6545