Skip to content

slm(settings): User Management 'preferences' and 'security' have no backend — decide where they live, then build and restore them #18733

Open

Description

@mrveiss

The SLM's UserManagementSettings.vue had Save preferences (notifications, autosave, theme, language) and Save security settings (session timeout, require re-auth).

  • Both saved through useAutobotApi.updateSettingsSection, as PUT /api/settings/{preferences|security} on the main backend. The main backend serves no such route; its settings routes are /api/settings/{backend,config,settings,telemetry,...}, all POST.
  • Nothing loaded the values back. The forms showed hard-coded defaults, so every save failed and every load lied.

Owner ruling (2026-10-17): hide both now (#15536), and decide and build here.

Decision needed

  • Preferences: are they per user (the main backend's /api/users/me/preferences) or SLM-wide? Which app do they apply to?
  • Security: session timeout and re-auth are a policy. Which service enforces them (the SLM's auth, the main backend's, or both), and where are they stored?

Acceptance criteria

  • The decision is recorded on this issue.
  • A served GET and a save route exist for each section, with the store named via store_authority.
  • The SLM loads the current values before showing the form (no hard-coded defaults), and saves through the served route.
  • Each setting has an enforcement test: a timeout actually expires a session, and a theme actually applies.

Refs #15536, #18717.

Activity

  1. mrveiss commented on Oct 17, 2026

    @mrveiss
    OwnerAuthor

    The translated labels of the hidden forms (settings.admin.userManagementSettings.savePreferences, saveSecuritySettings and their field labels) stay in all locales for the forms' return. Only the template sections, their state and their save functions were removed in #15536. useAutobotApi.updateSettingsSection stays, as a working POST client for the served sections.

  2. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    Maintainer decision:

    • Security (session timeout, require re-auth): set in the SLM and enforced by each app, the SLM and the main app. The main app keeps the last policy it received, so that policy still applies if the SLM is unreachable.
    • Preferences (notifications, autosave, theme, language): per person, so they belong in the main app, on /api/users/me/preferences. The hidden SLM form does not come back.

    The ACs still stand: served routes with a named store, values loaded before the form shows, and an enforcement test for each setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions