Loading
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:
- !257367 (merged) - the session-expiry deadline header
- !257368 (merged) - the prompt
- !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
- Rollout issue: #628118
- Related to #607513 (closed)
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
- Configure a SAML OmniAuth provider so
Gitlab::Auth::Saml::Config.enabled?is true. - Make sure the flag has no stored override, so the default applies:
Feature.remove(:session_expire_modal_on_saml_instances). - Confirm
Feature.enabled?(:session_expire_modal_on_saml_instances, :instance)returnstrue. - Sign in and confirm authenticated responses carry the
X-Gitlab-Session-Expires-Atheader. - 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.