mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 06:08:33 -05:00
[PR #2575] [CLOSED] fix: blueprint overwrites sso-users and sso-roles when empty arrays provided #30961
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/2575
Author: @Fizza-Mukhtar
Created: 3/1/2026
Status: ❌ Closed
Base:
main← Head:fix/blueprint-overwriting-sso-settings-2197📝 Commits (1)
e607c39fix: skip syncing empty sso-roles and sso-users arrays in blueprints📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
server/lib/blueprints/proxyResources.ts(+4 -4)📄 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.
Fixes #2197
Problem
When a blueprint defines
sso-enabledandauto-login-idpbut omitssso-usersandsso-roles, the sync functions were being called with empty arrays, causing all existing users and roles to be cleared on every redeploy.Fix
Added
.length > 0check before callingsyncRoleResourcesandsyncUserResources, consistent with howwhitelist-userswas already handled.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.