mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-29 17:38:02 -05:00
[PR #3296] Allow ALL / AS0 ASN values in public resource policy rules
#34672
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/3296
Author: @Copilot
Created: 6/16/2026
Status: 🔄 Open
Base:
dev← Head:copilot/public-resource-policy-asn-bug-fix📝 Commits (4)
d6fe357Initial plan5e26ceafix: allow ALL ASN values in policy rule validationf3a52e3refactor: normalize ASN validation value once7c15c42test: add normalized ASN validation coverage📊 Changes
3 files changed (+58 additions, -5 deletions)
View changed files
📝
server/lib/validators.test.ts(+41 -1)📝
server/lib/validators.ts(+4 -1)📝
src/components/resource-policy/policy-access-rule-validation.ts(+13 -3)📄 Description
Public resource policies could not be saved when an ASN rule used
ALL ASNs (ALL), because validation only acceptedAS<number>values. This caused both create and edit flows to reject otherwise valid rules.Validation alignment (client + server)
AS<number>(existing behavior)ALL(explicit all-ASN selector)AS0(server-supported alias)trim().toUpperCase()before evaluation so mixed case and whitespace variants are handled consistently.Rule behavior consistency
verifySession) whereALL/AS0are already treated as wildcard ASN values.Focused coverage
ALL,AS0, mixed-case/whitespace variants, and invalid ASN rejection.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.