GeoIP Country Block rules prevent application of configured Authentication Methods #753

Closed
opened 2026-04-05 17:39:05 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @grizzlycode on 10/19/2025

Describe the Bug

When a resource is successfully protected by a standard authentication method and the new GeoIP Country Block rules are simultaneously enabled for that same resource, the existing authentication method ceases to function or appears to be completely bypassed.

The resource becomes accessible without the required authentication check, or the authentication flow simply fails when the GeoIP rules are active. Disabling the GeoIP rules immediately restores the expected authentication functionality, strongly suggesting a conflict or an incorrect priority sequencing between the GeoIP middleware and the authentication middleware.

This issue was observed using a simple GeoIP rule configuration: Allow traffic from the United States (US) and Block all other countries.

Environment

  • OS Type & Version: Ubuntu 24.04
  • Pangolin Version: 1.11.0
  • Gerbil Version: 1.2.2
  • Traefik Version: 3.5.3
  • Newt Version: 1.5.2

To Reproduce

Steps to reproduce the observed behavior:

Prerequisite: Configure a resource to use a standard authentication method. Verify that access to the resource is successfully gated by this authentication.

Navigate to the Rules tab configuration panel for this specific, authenticated resource.

Enable the rules

Configure a simple rule set (e.g., Allow US and Block All Others).

Save and apply the settings.

Attempt to access the protected resource.

Observed Result: While the country blocking works. The previously functional authentication methods are now disabled or bypassed, allowing unauthorized access or failing the intended auth flow.

Expected Behavior

The GeoIP Country Block rules should apply before or in conjunction with the configured authentication methods. Enabling the GeoIP rules should not interfere with or disable existing applied security features like authentication. All security features should work simultaneously and correctly when rules are enabled.

*Originally created by @grizzlycode on 10/19/2025* ### Describe the Bug When a resource is successfully protected by a standard authentication method and the new GeoIP Country Block rules are simultaneously enabled for that same resource, the existing authentication method ceases to function or appears to be completely bypassed. The resource becomes accessible without the required authentication check, or the authentication flow simply fails when the GeoIP rules are active. Disabling the GeoIP rules immediately restores the expected authentication functionality, strongly suggesting a conflict or an incorrect priority sequencing between the GeoIP middleware and the authentication middleware. This issue was observed using a simple GeoIP rule configuration: Allow traffic from the United States (US) and Block all other countries. ### Environment - OS Type & Version: Ubuntu 24.04 - Pangolin Version: 1.11.0 - Gerbil Version: 1.2.2 - Traefik Version: 3.5.3 - Newt Version: 1.5.2 ### To Reproduce Steps to reproduce the observed behavior: Prerequisite: Configure a resource to use a standard authentication method. Verify that access to the resource is successfully gated by this authentication. Navigate to the Rules tab configuration panel for this specific, authenticated resource. Enable the rules Configure a simple rule set (e.g., Allow US and Block All Others). Save and apply the settings. Attempt to access the protected resource. Observed Result: While the country blocking works. The previously functional authentication methods are now disabled or bypassed, allowing unauthorized access or failing the intended auth flow. ### Expected Behavior The GeoIP Country Block rules should apply before or in conjunction with the configured authentication methods. Enabling the GeoIP rules should not interfere with or disable existing applied security features like authentication. All security features should work simultaneously and correctly when rules are enabled.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#753