Docker label rules[].value for path matchers is translated to capital letters #760

Closed
opened 2025-11-13 12:10:13 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @Quantum1337 on GitHub (Nov 4, 2025).

Describe the Bug

Hello,

I´m using the blueprint feature together with docker labels. I´m encountering a problem with v1.12.1. The Labels are
translated to capital letters:

Image Image

It seems that the rules are somehow case sensitive. It doesn´t work correctly for the capital lettters. When I´m changing it to lower case manually, everything works as expected.

Thank you for your work !

Environment

  • OS Type & Version: Ubuntu 22.04
  • Pangolin Version: 1.12.1
  • Gerbil Version: 1.2.2
  • Traefik Version: 3.5
  • Newt Version: 1.6.0

To Reproduce

Write a rule with lower case pathes

Expected Behavior

The path is exactly translated -> lower case

Originally created by @Quantum1337 on GitHub (Nov 4, 2025). ### Describe the Bug Hello, I´m using the blueprint feature together with docker labels. I´m encountering a problem with v1.12.1. The Labels are translated to capital letters: <img width="523" height="62" alt="Image" src="https://github.com/user-attachments/assets/b9c72178-0ba0-40a5-ab28-503bb469bc39" /> <img width="1867" height="78" alt="Image" src="https://github.com/user-attachments/assets/7df555cc-ddd9-42ff-884f-a87a36abd36e" /> It seems that the rules are somehow case sensitive. It doesn´t work correctly for the capital lettters. When I´m changing it to lower case manually, everything works as expected. Thank you for your work ! ### Environment - OS Type & Version: Ubuntu 22.04 - Pangolin Version: 1.12.1 - Gerbil Version: 1.2.2 - Traefik Version: 3.5 - Newt Version: 1.6.0 ### To Reproduce Write a rule with lower case pathes ### Expected Behavior The path is exactly translated -> lower case
Author
Owner

@radokristof commented on GitHub (Nov 5, 2025):

I have the same issue. It seemed correct before upgrading to 1.12.1 (from 1.11.x)

@radokristof commented on GitHub (Nov 5, 2025): I have the same issue. It seemed correct before upgrading to 1.12.1 (from 1.11.x)
Author
Owner

@tullisar commented on GitHub (Nov 5, 2025):

Yeah this breaks the path matching rules defined in the blueprint. I can workaround it temporarily by changing the rules in the Pangolin UI, but as soon as I restart the affected service the paths revert to all caps.

@tullisar commented on GitHub (Nov 5, 2025): Yeah this breaks the path matching rules defined in the blueprint. I can workaround it temporarily by changing the rules in the Pangolin UI, but as soon as I restart the affected service the paths revert to all caps.
Author
Owner

@Quantum1337 commented on GitHub (Nov 5, 2025):

Depending how the priority of your rules is, this might be a also a security issue, without noticing:

  1. "Some/path" to auth
  2. Everything other no auth

=> "Some/path" is now exposed, as it translates to "SOME/PATH" and so it does not match anymore.

@Quantum1337 commented on GitHub (Nov 5, 2025): Depending how the priority of your rules is, this might be a also a security issue, without noticing: 1. "Some/path" to auth 2. Everything other no auth => "Some/path" is now exposed, as it translates to "SOME/PATH" and so it does not match anymore.
Author
Owner

@tullisar commented on GitHub (Nov 5, 2025):

It also seems to revert on its own after a bit (presumably there's a mechanism for refreshing the blueprint even without a container restart).

@tullisar commented on GitHub (Nov 5, 2025): It also seems to revert on its own after a bit (presumably there's a mechanism for refreshing the blueprint even without a container restart).
Author
Owner

@tullisar commented on GitHub (Nov 6, 2025):

This commit: 5940bbd498

Seems to be the culprit? The commit message "Uppercase" is pretty vague as to the reason for this change.

@tullisar commented on GitHub (Nov 6, 2025): This commit: https://github.com/fosrl/pangolin/commit/5940bbd49876812faaa7c5c3b2565ba87c62fd50 Seems to be the culprit? The commit message "Uppercase" is pretty vague as to the reason for this change.
Author
Owner

@oschwartz10612 commented on GitHub (Nov 8, 2025):

This will be fixed in the next patch. The issue was I was trying to fix people entering in lower case country codes but forgot about the other match types 😅. It should not only uppercase it if it is a country match type.

@oschwartz10612 commented on GitHub (Nov 8, 2025): This will be fixed in the next patch. The issue was I was trying to fix people entering in lower case country codes but forgot about the other match types 😅. It should not only uppercase it if it is a country match type.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#760