[GH-ISSUE #3226] New Resource Policies - Validation error: Invalid option: expected one of "CIDR"|"IP"|"PATH" at "rules[0].match" #30170

Open
opened 2026-06-13 10:42:20 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @DrDrrae on GitHub (Jun 7, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/3226

Describe the Bug

New Resource Rules is missing "ASN" and "Country" match types.

Validation error: Invalid option: expected one of "CIDR"|"IP"|"PATH" at "rules[0].match"

Image Image

Environment

  • OS Type & Version: Ubuntu 24.04.4 LTS
  • Pangolin Version: 1.19.0-rc.1
  • Edition (Community or Enterprise): Enterprise
  • Gerbil Version: 1.3.0
  • Traefik Version: 3.6.19
  • Newt Version: 1.13.0-rc.0
  • Client Version: n/a

To Reproduce

  1. Go to Polices -> Resources
  2. Create new polict
  3. Select ASN or Country in Match Type
  4. Select ASN or Country in Value
  5. Save

Expected Behavior

It's expected to be able to save resource rules configuration with ASN and country match types.

Originally created by @DrDrrae on GitHub (Jun 7, 2026). Original GitHub issue: https://github.com/fosrl/pangolin/issues/3226 ### Describe the Bug New Resource Rules is missing "ASN" and "Country" match types. `Validation error: Invalid option: expected one of "CIDR"|"IP"|"PATH" at "rules[0].match"` <img width="1250" height="734" alt="Image" src="https://github.com/user-attachments/assets/a4e9034d-5dd3-4ff3-b280-2f3e1008273d" /> <img width="1313" height="703" alt="Image" src="https://github.com/user-attachments/assets/2af283d9-4efd-4217-8db1-e7bafa67949c" /> ### Environment - OS Type & Version: Ubuntu 24.04.4 LTS - Pangolin Version: 1.19.0-rc.1 - Edition (Community or Enterprise): Enterprise - Gerbil Version: 1.3.0 - Traefik Version: 3.6.19 - Newt Version: 1.13.0-rc.0 - Client Version: n/a ### To Reproduce 1. Go to Polices -> Resources 2. Create new polict 3. Select ASN or Country in Match Type 4. Select ASN or Country in Value 5. Save ### Expected Behavior It's expected to be able to save resource rules configuration with ASN and country match types.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#30170