#3810·pangolin

"Country" Match type access rule is not displaying correctly when filtering countries

Author: kmanwar89Created Sep 24, 2026Updated Sep 25, 2026
Labelsbug

Describe the Bug

I'm attempting to create a shared policy for geoblocking access from high-risk countries. When searching in the country box for a specific entry, if I type the full country name (Iran), the box is blank. But, typing the letter "I" (eye) shows "Iran, Islamic Republic Of (IR)". The result is there, but at the very top of the scrollbox. For some reason, the box is scrolling down about a 3rd of the way, hiding all of the specifically-filtered or fuzzy-filtered results beginning with "I" (eye).

This bug request would be to address the filter behavior to respect both a generic filter, and a most-specific filter. In other words, the box should show Iran if Iran is explicitly typed in, not only when it is matching the first letter of the country. The scroll box should also NOT scroll down partially, blocking the actual desirable results.

Environment

  • OS Type & Version: Pangolin is hosted on an Ubuntu Linux 24.04 LTS VPS - this issue is occurring in the UI.
  • Pangolin Version: 1.19.4
  • Edition (Community or Enterprise): Enterprise (Personal use)
  • Gerbil Version: 1.3.0 (static version in docker compose, not sure if I meant this to be intentional or not)
  • Traefik Version: 3.6 in docker compose
  • Newt Version: N/A
  • Client Version: Not sure how to get this version #?

To Reproduce

  1. Open Pangolin UI and login as an admin user
  2. Under "Access control", click Shared policies --> public resources from the sidebar
  3. Scroll down to access rules, click add rule, and change match type to "country"
  4. Under the "value" field, start typing "Iran". Observe how the correct result is not seen unless you scroll up.
  5. Under the same "value" field, start typing the letter I (eye). Observe how the scrollbox is at the very bottom of the list, and no I results show up until you scroll up.
  6. Under the same "value" field, test fuzzy searching by typing "Ir" or "Ira". Observe how Iran still does not appear in the list until you type the entire country name.

AI Disclosure

No AI was used to write this issue.

Expected Behavior

When filtering/fuzzy searching, the results should begin filtering on the first and subsequent letter, not require entering the entire country name before it shows in the list. The scrollbox should also stop defaulting to the bottom of the list.