Skip to content

providers/scim: fix scim changed detection for nested attributes - #24332

Merged
BeryJu merged 3 commits into
goauthentik:mainfrom
ryanpesek:fix-scim-change-detection
Jul 25, 2026
Merged

BeryJu merged 3 commits into
goauthentik:mainfrom
ryanpesek:fix-scim-change-detection

Conversation

@ryanpesek

Copy link
Copy Markdown
Contributor

Summary

Fix SCIM user and group change detection for nested attributes, including custom schema extensions. The cached remote state is now deep-copied before merging, preventing nested updates from mutating the comparison baseline and being incorrectly skipped.
Adds regression tests for nested updates and corrects the SCIM group connection type annotation.


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

@ryanpesek
ryanpesek requested a review from a team as a code owner July 24, 2026 02:47
@netlify

netlify Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit cce902c
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a637f9ae9c5fe0008c7274b
😎 Deploy Preview https://deploy-preview-24332--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.50%. Comparing base (b321359) to head (cce902c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24332      +/-   ##
==========================================
- Coverage   93.53%   93.50%   -0.04%     
==========================================
  Files        1067     1067              
  Lines       64323    64337      +14     
  Branches      424      424              
==========================================
- Hits        60163    60156       -7     
- Misses       4160     4181      +21     
Flag Coverage Δ
conformance 35.32% <0.00%> (-0.01%) ⬇️
e2e 40.26% <0.00%> (-0.01%) ⬇️
integration 31.39% <0.00%> (-0.48%) ⬇️
rust 0.00% <ø> (ø)
unit 92.72% <100.00%> (+<0.01%) ⬆️
unit-migrate 92.75% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@BeryJu
BeryJu merged commit 328ccaf into goauthentik:main Jul 25, 2026
116 checks passed
@BeryJu BeryJu added backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 labels Jul 28, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #24442

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.2 created: #24443

PeshekDotDev added a commit that referenced this pull request Aug 1, 2026
…rry-pick #24332 to version-2026.5) (#24442)

providers/scim: fix scim changed detection for nested attributes (#24332)

fix scim changed detection for nested attributes

Co-authored-by: Ryan Pesek <[email protected]>
Co-authored-by: Jens L. <[email protected]>
Co-authored-by: Connor Peshek <[email protected]>
BeryJu added a commit that referenced this pull request Aug 3, 2026
…rry-pick #24332 to version-2026.2) (#24443)

providers/scim: fix scim changed detection for nested attributes (#24332)

fix scim changed detection for nested attributes

Co-authored-by: Ryan Pesek <[email protected]>
Co-authored-by: Jens L. <[email protected]>
josegomezr pushed a commit to SUSE/authentik that referenced this pull request Aug 11, 2026
…nested attributes (goauthentik#24332)

fix scim changed detection for nested attributes

Co-authored-by: Jens L. <[email protected]>
josegomezr pushed a commit to SUSE/authentik that referenced this pull request Aug 11, 2026
…uthentik#24332)

fix scim changed detection for nested attributes

Co-authored-by: Jens L. <[email protected]>
(cherry picked from commit 328ccaf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants