Files
probo/pkg/iam
Aurélien Sibiril f15936dcdf Preserve shared connector on SCIM disconnect
DeleteSCIMConfiguration unconditionally deleted the underlying OAuth2
connector together with the SCIM bridge and config. When the same
connector was also referenced from access_sources -- which happens
when Google Workspace is used for both SCIM and access reviews -- the
access_sources.connector_id foreign key (NO ACTION) rejected the
DELETE, aborting the whole transaction. Nothing was deleted and the
resolver returned an INTERNAL error.

Check the access_sources reference count before deleting the connector
and skip the connector delete when it is still in use. The bridge's
own connector_id FK is ON DELETE SET NULL, so dropping the bridge
alone is sufficient to unbind SCIM; leaving the connector untouched
keeps the access source working.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
2026-04-16 16:27:30 +02:00
..
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00