mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-17 07:04:36 -05:00
[PR #3295] Fix default IdP validation for resource policies in global identity-provider mode #34671
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/3295
Author: @Copilot
Created: 6/16/2026
Status: 🔄 Open
Base:
dependabot/npm_and_yarn/dev-minor-updates-4bbcce3681← Head:copilot/fix-default-identity-provider📝 Commits (3)
fec0feaInitial planad1c811fix: allow default IdP validation in global mode policies3b68139fix: clarify IdP validation messages across policy flows📊 Changes
3 files changed (+66 additions, -16 deletions)
View changed files
📝
server/lib/blueprints/resourcePolicies.ts(+21 -8)📝
server/private/routers/policy/createResourcePolicy.ts(+24 -3)📝
server/routers/policy/setResourcePolicyAccessControl.ts(+21 -5)📄 Description
After 1.19.x resource-policy migration, saving a default identity provider could fail with
Identity provider not found in this organizationeven when the IdP was valid in global mode. This PR aligns policy IdP validation withIDENTITY_PROVIDER_MODEsemantics so global IdPs are accepted where appropriate.Validation semantics update (policy access-control + policy creation)
idp.idpIdexistence.idpOrg(orgId)linkage whenIDENTITY_PROVIDER_MODE === "org".Blueprint parity
auto-login-idp) to keep import/update behavior consistent with API routes.Error-path clarity
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.