Repository navigation
Description
Summary
Every save of Settings › Enterprise SSO writes one audit row, and that row does not say what changed. It names the protocol, and at most the provider. It never records the default role, Auto-assign roles from the IdP, the role rules, Sync IdP groups to teams or Exclude groups, and no save records a previous state. So the audit log can show that someone saved the SSO settings and when, but not what they changed.
This came up in #5138. The pilot could not tell from the log whether team sync was already off before a new group became a team. The Trusted headers card on the same page, and every governance policy save, do record their values before and after. This issue records what each save writes. It states no preference.
What the repository says (main at b2560c2d7)
One helper writes every row for the SSO settings: category security, resource type sso, an optional newState, and never a previousState (services/platform/backend/domains/sso/admin.ts:99-121).
| Save | Route (services/platform/backend/domains/sso/admin-routes.ts) |
Action | State recorded |
|---|---|---|---|
OIDC or OAuth2 connection, provisioning included: the settings form's save (services/platform/app/features/settings/enterprise-sso/components/enterprise-sso-form.tsx:529) |
PUT /config/oidc (:117) |
sso_configure |
{ protocol, providerId } (admin.ts:252-255) |
SAML connection, provisioning included (enterprise-sso-form.tsx:554) |
PUT /config/saml (:148) |
sso_configure |
{ protocol: 'saml' } (admin.ts:325-327) |
| Provisioning only | PUT /config/provisioning (:175) |
sso_configure |
{ provisioning: true } (admin.ts:349-351) |
| Turn SSO sign-in on or off | POST /config/enabled (:188) |
sso_enabled or sso_disabled |
none (admin.ts:366-371); the action itself says which |
| Remove the connection | DELETE /config (:208) |
sso_removed |
none (admin.ts:382) |
Saves that do record values.
- The Trusted headers card on the same page records
enabledandmaxAssertedRolebefore and after (services/platform/backend/domains/trusted_headers/service.ts:153-177). - A governance policy save records the previous and the new config (
services/platform/backend/domains/governance/policy-writer.ts:311-326).
Docs, spec and tests.
- The audit log's detail view shows "Available previous/new state, changed fields, metadata, and error information. Not every event has every field." (
docs/en/platform/admin/governance/audit-logs.md:34). No page promises more for SSO. - The SSO domain spec lists setting up a connection under Not yet (
services/platform/backend/domains/sso/spec.md:198-201). - No backend test asserts what an
sso_configurerow holds.
Why it matters
These settings decide which role and which teams a person gets at every SSO sign-in. Adding a rule that maps a group to Admin, changing the default role and turning team sync off all leave the same trace: an sso_configure row naming the protocol.
Constraints any change must respect
- Secrets never reach the log. The client secret and the SP private key are secrets, and the client ID is stored with them and shown only on request (
admin.ts:385-393). - Role rules can be long. The audit log's own size limits on a state object were not examined.
Options (no preference stated)
- Record the provisioning block before and after on every save that touches it: default role, auto-assign, role rules, team sync, exclusions.
- Record every non-secret field of the connection before and after, and each secret only as changed or unchanged.
- Record only the names of the fields that changed.
- Give provisioning changes an action of their own (for example
sso_provisioning_updated), so the log's filters can find them apart from connection edits.
Activity
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
tale-code-bot commentedon Nov 2, 2026
Done on the feature line: feature train #5279 landed on
release/0.6by rebase at 2026-11-02 01:30:34 UTC. This issue's change is commit57d1114d2fc71dd073204e0f9073e155be0c1f4f(feat(platform): record what an SSO settings save changes) onrelease/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reachmain, so the feature-train role closes this one now. Board task: TALE-339.feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes
feat(platform): record what an SSO settings save changes