Skip to content

feat(iam-web): last-sync indicator for Directory Sync#5094

Merged
Ino-Bagaric merged 3 commits into
mainfrom
feat/scim-last-sync
Jul 20, 2026
Merged

feat(iam-web): last-sync indicator for Directory Sync#5094
Ino-Bagaric merged 3 commits into
mainfrom
feat/scim-last-sync

Conversation

@Ino-Bagaric

@Ino-Bagaric Ino-Bagaric commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Adds a Last sync activity indicator to the Directory Sync surfaces — the SCIM card's Provisioning health panel and the setup wizard's verify panel.

Kortix is the SCIM server, so the honest signal we own is when the IdP last made an authenticated SCIM call — the backend already stamps last_used_at on every validated request (including no-change reconciliation reads); this surfaces it, computed across active tokens only, polling live.

Since the next sync time isn't knowable from the SP side, the indicator pairs the timestamp with each provider's real cadence (new syncCadenceHint per SCIM guide): Entra's ~40-min scheduled cycle, event-driven pushes for Okta/OneLogin/JumpCloud, PingOne's full-then-incremental. This also replaces the wizard footer that hardcoded Entra copy for every provider. Freshness tint: green <5m / <1h, neutral when quiet (normal for event-driven IdPs), amber only when a token exists but the IdP has never connected.

Also: PUT /scim/v2/accounts/:accountId/Groups/:groupId — Okta pushes group renames as full-resource PUT; only PATCH existed, so those calls 404'd (the exact gap previously closed for Users PUT). Omitted fields are left alone; a present members array (even empty) is authoritative. Route manifest regenerated (+1 route), SCIM-3 flow covers PUT rename + unknown→404.

Tests: pure helpers (scim-sync.test.ts, parseGroupPut) + structural pins; web 79 pass, api 25 pass, coverage gate green, tsc/lint clean.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
suna Ignored Ignored Preview Jul 20, 2026 8:58am

Request Review

@strix-security

strix-security Bot commented Jul 20, 2026

Copy link
Copy Markdown

Strix Security Review

No security issues found.

Updated for 2fe5f9b.


Reviewed by Strix
Re-run review · Configure security review settings

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

QA Report

Open Allure report

Commit: d4e80be00d99f6dd2aab3c55b647a4436dff3db8
Workflow run: https://github.com/kortix-ai/suna/actions/runs/29729681884

@Ino-Bagaric
Ino-Bagaric merged commit 6b61282 into main Jul 20, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant