[FF] session_expire_modal_on_saml_instances -- warn on SAML instances when a session expires from inactivity

Summary

Roll out the feature currently behind the session_expire_modal_on_saml_instances feature flag.

Note

Process and guidance live in the docs — this issue is just the commands and a place to track the rollout. "Rolling out" means incrementally enabling the flag on GitLab.com to validate stability — it is not the same as releasing the feature, which happens when the flag is removed. Feature flag controls · Feature flag lifecycle

What could go wrong?

On instances with SAML configured, the flag makes the existing "Your session has expired" modal appear when a session expires from inactivity, not only from time-of-sign-in. The blast radius is small: a client-side modal plus a response header (X-Gitlab-Session-Expires-At). No data is written and no keep-alive request is manufactured. The reported deadline is computed to be early rather than late, so the worst case is a modal shown slightly before the real expiry. Watch the Rails and Redis session dashboards on https://dashboards.gitlab.net during rollout.

Rollout

Run all production /chatops in #production and cross-post the results to #g_authentication. Background: incremental rollout process, feature actors.

Non-production

/chatops gitlab run feature set session_expire_modal_on_saml_instances 50 --actors --dev --pre --staging --staging-ref
/chatops gitlab run feature set session_expire_modal_on_saml_instances true --dev --pre --staging --staging-ref

Production — percentage rollout (wait ≥15 min between steps, watch dashboards):

/chatops gitlab run feature set session_expire_modal_on_saml_instances <percentage> --actors

Or target specific actors instead:

/chatops gitlab run feature set --project=gitlab-org/gitlab,gitlab-org/gitlab-foss session_expire_modal_on_saml_instances true
/chatops gitlab run feature set --group=gitlab-org,gitlab-com session_expire_modal_on_saml_instances true
/chatops gitlab run feature set --user=eduardosanz session_expire_modal_on_saml_instances true

Before global rollout

Confirm the relevant gotchas before going to 100% — see enabling a feature for GitLab.com:

Cleanup

Remove the flag once deemed stable — see cleaning up. Track it here, or open a follow-up Feature Flag Cleanup issue. Remove the flag and its YAML definition from the codebase, then:

/chatops gitlab run release check <merge-request-url> <milestone>
/chatops gitlab run feature delete session_expire_modal_on_saml_instances --dev --pre --staging --staging-ref --production

Rollback

/chatops gitlab run feature set session_expire_modal_on_saml_instances false                                         # production
/chatops gitlab run feature set session_expire_modal_on_saml_instances false --dev --pre --staging --staging-ref     # non-production
/chatops gitlab run feature delete session_expire_modal_on_saml_instances --dev --pre --staging --staging-ref --production  # remove entirely