Enable the sign-in prompt on SAML instances by default

What does this MR do and why?

Enables the session_expire_modal_on_saml_instances feature flag by default. On instances with SAML configured, users are then prompted to sign in again before an inactive session expires, instead of a page left open silently failing its requests.

The flag history in the account and limit settings docs gains an "Enabled" entry.

Dependencies

Stacked on the series split out from !247910 (closed), and targets MR4:

  1. !257367 (merged) - the session-expiry deadline header
  2. !257368 (merged) - the prompt
  3. !261031 (merged) - remember-me keep-alive, which must merge before the prompt is on by default, so remembered users are not prompted while their cookie is still valid

References

Screenshots or screen recordings

No UI change beyond the flag default. The prompt's screenshots are on !257368 (merged).

How to set up and validate locally

  1. Configure a SAML OmniAuth provider so Gitlab::Auth::Saml::Config.enabled? is true.
  2. Make sure the flag has no stored override, so the default applies: Feature.remove(:session_expire_modal_on_saml_instances).
  3. Confirm Feature.enabled?(:session_expire_modal_on_saml_instances, :instance) returns true.
  4. Sign in and confirm authenticated responses carry the X-Gitlab-Session-Expires-At header.
  5. Admin area > Settings > General > Account and limit: set Session duration to a few minutes, restart GitLab, then idle on a page. The sign-in prompt appears at about the duration.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading
Loading