[PR #2575] [CLOSED] fix: blueprint overwrites sso-users and sso-roles when empty arrays provided #33202

Closed
opened 2026-06-15 10:41:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/2575
Author: @Fizza-Mukhtar
Created: 3/1/2026
Status: Closed

Base: mainHead: fix/blueprint-overwriting-sso-settings-2197


📝 Commits (1)

  • e607c39 fix: 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-enabled and auto-login-idp but omits sso-users and sso-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 > 0 check before calling syncRoleResources and syncUserResources, consistent with how whitelist-users was already handled.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/pangolin/pull/2575 **Author:** [@Fizza-Mukhtar](https://github.com/Fizza-Mukhtar) **Created:** 3/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/blueprint-overwriting-sso-settings-2197` --- ### 📝 Commits (1) - [`e607c39`](https://github.com/fosrl/pangolin/commit/e607c39b9811036d7018846fcef96b54f3f8ae5e) fix: skip syncing empty sso-roles and sso-users arrays in blueprints ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/lib/blueprints/proxyResources.ts` (+4 -4) </details> ### 📄 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-enabled` and `auto-login-idp` but omits `sso-users` and `sso-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 > 0` check before calling `syncRoleResources` and `syncUserResources`, consistent with how `whitelist-users` was already handled. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-15 10:41:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#33202