Skip to content

Improvement: saving the Enterprise SSO settings leaves no record of what changed in the audit log #5142

Closed

Description

@yannickmonney

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 enabled and maxAssertedRole before 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_configure row 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)

  1. Record the provisioning block before and after on every save that touches it: default role, auto-assign, role rules, team sync, exclusions.
  2. Record every non-secret field of the connection before and after, and each secret only as changed or unchanged.
  3. Record only the names of the fields that changed.
  4. 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.

Related

#5138 (where this came up), #5044 (pilot findings).

Activity

  1. added
    agent-ready
    on Nov 1, 2026
  2. added 2 commits that reference this issue on Nov 1, 2026
    cc69070
    013d96a
  3. added a commit that references this issue on Nov 1, 2026
    92d9cc2
  4. added a commit that references this issue on Nov 2, 2026
    57d1114
  5. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    Collaborator

    Done on the feature line: feature train #5279 landed on release/0.6 by rebase at 2026-11-02 01:30:34 UTC. This issue's change is commit 57d1114d2fc71dd073204e0f9073e155be0c1f4f (feat(platform): record what an SSO settings save changes) on release/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reach main, so the feature-train role closes this one now. Board task: TALE-339.

  6. added 15 commits that reference this issue on Nov 2, 2026
    5a18d09
    5a44885
    4dac470
    ad7ea54
    9958ea1
    adb8942
    ca0a0d9
    6416b9b
    2c3a8ea
    c378ab1
    144cae9
    949fad0
    40190cf
    6135120
    f280312
  7. added a commit that references this issue on Nov 15, 2026
    2ecaae8
  8. added a commit that references this issue on Nov 23, 2026
    155593f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovementpriority: mediumsecurityservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions