You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
slm(settings): User Management 'preferences' and 'security' have no backend — decide where they live, then build and restore them #18733
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.
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.
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.
Activity
mrveiss commentedon Oct 17, 2026
The translated labels of the hidden forms (
settings.admin.userManagementSettings.savePreferences,saveSecuritySettingsand 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.updateSettingsSectionstays, as a working POST client for the served sections.mrveiss commentedon Nov 2, 2026
Maintainer decision:
/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.