mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-12 09:54:16 -05:00
[PR #185] [MERGED] Rules #799
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/185
Author: @oschwartz10612
Created: 2/11/2025
Status: ✅ Merged
Merged: 2/11/2025
Merged by: @miloschwartz
Base:
dev← Head:rules📝 Commits (10+)
befdc3aAdd tableb926396Add applyRules to resources2f49be6Initial pass at rules3cd20caMerge branch 'dev' into rulesda3c882rename to resource rules and add api endpoints8f96d07Add update4a6da91API and rule screen working42434caAdd validation874c673Adjust rule processing9694261Add enable rules toggle📊 Changes
17 files changed (+1401 additions, -28 deletions)
View changed files
📝
Makefile(+0 -3)📝
server/auth/actions.ts(+11 -7)📝
server/db/schema.ts(+13 -1)📝
server/lib/consts.ts(+1 -1)📝
server/routers/badger/verifySession.ts(+114 -1)📝
server/routers/external.ts(+27 -0)➕
server/routers/resource/createResourceRule.ts(+101 -0)➕
server/routers/resource/deleteResourceRule.ts(+71 -0)📝
server/routers/resource/index.ts(+4 -0)➕
server/routers/resource/listResourceRules.ts(+132 -0)📝
server/routers/resource/updateResource.ts(+2 -1)➕
server/routers/resource/updateResourceRule.ts(+130 -0)📝
server/setup/migrations.ts(+3 -1)➕
server/setup/scripts/1.0.0-beta13.ts(+29 -0)📝
src/app/[orgId]/settings/resources/[resourceId]/connectivity/page.tsx(+28 -13)📝
src/app/[orgId]/settings/resources/[resourceId]/layout.tsx(+5 -0)➕
src/app/[orgId]/settings/resources/[resourceId]/rules/page.tsx(+730 -0)📄 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
Rules allow you to control access to your resource based on a set of criteria. You can create rules to allow or deny access based on IP address or URL path. Deny rules take precedence over allow rules. If a request matches both an allow and a deny rule, the deny rule will be applied.
Actions
Always Allow: Bypass all authentication methods
Matching Criteria
Closes #141
Closes #143
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.