mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-14 19:05:26 -05:00
[PR #1248] [CLOSED] Enhancement #906/Add Shared IP Rule Sets, Auto CIDR Handling, and Preserve Match Type #1006
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1248
Author: @Pallavikumarimdb
Created: 8/10/2025
Status: ❌ Closed
Base:
dev← Head:enhancement-#906/IP-Rules-Global-Sets-Usability📝 Commits (8)
58fa9ffShared IP Rule Sets, IP Range and Add rule changes match typefe4281eShared IP Rule Sets, IP Range and Add rule changes match type17c1540update pg schema60db9a7pg schema fixc12c42dAdd IP Set logic into reusable components6194ccffix lint211a9b5add db migration files821392bRefactor IPSet flow and fix continuous re-render issue📊 Changes
29 files changed (+2052 additions, -166 deletions)
View changed files
📝
messages/en-US.json(+54 -1)📝
server/auth/actions.ts(+5 -1)📝
server/db/pg/schema.ts(+25 -5)📝
server/db/sqlite/schema.ts(+17 -3)📝
server/lib/validators.ts(+29 -4)📝
server/middlewares/index.ts(+1 -0)➕
server/middlewares/verifyIpSetsAccess.ts(+64 -0)📝
server/openApi.ts(+1 -0)📝
server/routers/external.ts(+37 -1)➕
server/routers/ipSets/createIPSet.ts(+128 -0)➕
server/routers/ipSets/deleteIPSet.ts(+103 -0)➕
server/routers/ipSets/index.ts(+4 -0)➕
server/routers/ipSets/listIPSets.ts(+133 -0)➕
server/routers/ipSets/updateIPSet.ts(+173 -0)📝
server/routers/resource/createResourceRule.ts(+82 -13)📝
server/routers/resource/listResourceRules.ts(+8 -5)📝
server/routers/resource/updateResourceRule.ts(+78 -21)📝
server/setup/migrationsPg.ts(+3 -1)📝
server/setup/migrationsSqlite.ts(+2 -0)➕
server/setup/scriptsPg/1.10.0.ts(+48 -0)...and 9 more files
📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
1. IP Rules: Global Sets + Usability (Fixes #906 )
1.1 Shared IP Rule Sets (Global Lists)
IP_SET) that can be applied to multiple resources.ipSetId; actual matching is resolved via the IP set contents.ipSetIdfor matching.1.2 Automatic CIDR for Single IPs
"IP"and"CIDR"manually./32or/128.1.3 Preserve Match Type when Adding Rules
This is a sub-issue of #906
How to test?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.