Why GitLab SSO is harder than enabling a login button
The identity team needs to decide who can reach self-managed GitLab, which directory or identity provider is the source of truth for that decision, and which GitLab role each person lands in once they arrive. Enabling a sign-in button answers only the first part. Sign-in, group sync, provisioning, deprovisioning and multi-factor authentication are separate decisions that interact. A user can authenticate through SAML while their group membership still comes from LDAP, a contractor can be removed from the identity provider while their GitLab account stays active, and a second factor enforced at the identity provider may not be enforced for Git over SSH or personal access tokens. Each choice has to be made on purpose and tested against the others.
Each identity source fails in its own way. LDAP and Active Directory group sync depends on search filters, bind credentials and the group objects a directory admin renames or nests, so a working login can still leave people with the wrong access. SAML and OpenID Connect via OmniAuth depend on attribute mapping, the NameID or claim GitLab uses to match an existing account, and on what happens when an email address changes at the provider. SCIM provisioning adds a further channel that can create, update or deactivate accounts independently of sign-in. Kerberos and smart card options bring their own keytab, certificate and client configuration. The reader should ask the identity team which source owns each attribute, which system is authoritative when two disagree, and how a leaver's access is removed in every path, then confirm those answers against the GitLab authentication documentation for the release they run.
This page covers the identity decisions and their integration with GitLab, which is different from the sibling topics on GitLab security hardening and on the initial implementation plan. Hardening covers the wider instance, such as sign-up restrictions, token policies and audit events, and the implementation plan covers scoping and sizing. Here the focus is narrower: who is allowed in, how their identity is matched and kept current, and what role they receive. Plan the identity design before the first production user signs in, because changing the matching attribute or the authoritative source later means reconciling existing accounts.
Which identity methods GitLab Self-Managed supports
GitLab Self-Managed supports several identity methods, and they do different jobs. Some handle sign-in, some sync groups, some provision accounts and some authenticate with certificates or tickets. Map each method to a specific requirement before you choose, because a sign-in method alone rarely covers group sync or account removal.
LDAP and Active Directory
LDAP connects GitLab sign-in to a directory such as Active Directory, and it can sync directory groups to GitLab groups. Sign-in and group sync are the main functions. Confirm which attributes your directory exposes, how group membership maps to GitLab roles, and whether removing a user from the directory is enough to block access, since GitLab's directory sync and SCIM provisioning are separate mechanisms. Check the tier requirements for group sync in the authentication documentation.
Authentication docsSAML single sign-on
SAML sends users to your identity provider for sign-in and returns an assertion that GitLab accepts. It handles authentication and can carry group attributes, but it does not create or remove accounts on its own. Confirm the attribute names your identity provider sends, the certificate rotation process, and whether assertion-based group mapping is available in your tier.
OmniAuth and generic OAuth 2.0
OmniAuth providers and generic OAuth 2.0 let GitLab sign users in through external identity services, including OpenID Connect-style providers. They cover sign-in only. Provisioning, group sync and account deactivation need a separate method, so confirm each one against your provider before assuming parity with SAML or LDAP.
Kerberos
Kerberos provides ticket-based sign-in for environments that already run a Kerberos realm, typically alongside Active Directory. It authenticates users and does not provision accounts or sync groups. Confirm the service principal setup, keytab handling and whether the Kerberos option is enabled for your edition before planning it as the primary sign-in path.
Smart card authentication
Smart card authentication uses client certificates from a hardware token to sign users in, which suits environments with strong physical credential requirements. It proves possession of the card and does not manage user lifecycle or groups. Confirm certificate chain validation, revocation checking and the fallback sign-in path for users without cards.
JWT and SCIM provisioning
JWT authentication lets a trusted external system present signed tokens to GitLab, and SCIM user provisioning lets an identity provider create, update and deactivate GitLab users. SCIM covers the account lifecycle, while JWT is a sign-in path. Confirm the token issuer and signing keys for JWT, and confirm which SCIM attributes your identity provider sends and how deprovisioning is tested.
Choosing between LDAP, SAML, OpenID Connect and SCIM
This table compares the main ways to connect GitLab to a directory, by when each fits, what it costs to run and how much it depends on your directory structure. Read the first four rows to pick a sign-in method, then the last rows to decide whether SCIM belongs alongside it and how existing accounts are handled.
| Option | When it fits | Operational cost | Directory dependency |
|---|---|---|---|
| LDAP or Active Directory with group sync | Active Directory estates where group membership drives access and the team already runs LDAP bind accounts | Ongoing care of the bind account, TLS settings and sync schedules; confirm sync behavior in your version | High: user and group object layout, attribute names and nested groups all shape what GitLab sees |
| SAML | Enterprises with an existing SAML identity provider and a need for group attributes passed at sign-in | Certificate and metadata renewal with the identity provider; attribute mapping to maintain | Medium: depends on the claims the identity provider sends, not on directory layout |
| OpenID Connect via OmniAuth | Organizations standardized on an OpenID Connect provider, or those needing a modern sign-in flow with a client secret | Client secret rotation and redirect URI upkeep; confirm supported provider settings for your release | Low to medium: relies on token claims and the identity provider's configuration |
| SCIM provisioning | Organizations that want accounts created, updated and deactivated automatically from the identity provider | Token rotation and sync monitoring; needs an owner for failed provisioning events | Medium: depends on how the identity provider maps users and groups to SCIM attributes |
| Kerberos or smart cards | Sites with Windows single sign-on or government smart card rules that require hardware-backed sign-in | Keytab or certificate lifecycle, client configuration and help desk procedures for lost cards | High: needs domain configuration and matching hostnames, and fails if DNS or realm settings drift |
| Pairing SCIM with a sign-in method | When joiners, movers and leavers must flow from the directory without manual GitLab admin work | Adds a second integration to test and monitor; sign-in and provisioning can disagree if mappings differ | Depends on both: the sign-in method identifies users, SCIM keeps their accounts current |
| Existing accounts before SSO is enabled | Any instance that already has local or imported users when SSO is switched on | Requires an account matching plan: confirm emails, usernames and any duplicate identities before cutover | High: matching often depends on email or username consistency in the directory |
How to build GitLab SSO in sequence
This sequence moves a self-managed GitLab instance from local accounts to identity provider sign-in, with group-based roles, automated provisioning and enforced two-factor authentication. Each step closes with a check so problems surface before users depend on the integration.
Confirm the identity provider's group model
Before touching GitLab, document how your identity provider (Active Directory, Entra ID, Okta or another directory) structures users and groups. List the attribute names GitLab will read, such as the username, email and group membership claims, and decide which directory groups map to which GitLab access levels. Confirm these names with the directory team, because a mismatch here is the most common reason logins succeed but roles come out wrong. Done when you have a written mapping table signed off by the identity owner and the GitLab administrator.
Choose the sign-in method
Select the protocol that matches your directory and policy: LDAP or Active Directory with group sync, SAML or OpenID Connect through OmniAuth, or Kerberos or smart card authentication where your environment requires them. GitLab's authentication documentation lists the supported options. Record the reason for the choice, including whether group sync and SCIM provisioning will be needed later, since that affects which method is practical. Done when the chosen method and its dependencies are approved and the directory team confirms the service account or application registration they will create.
Configure the provider in settings and gitlab.rb
The GitLab administrator enters the provider settings in the instance configuration, using the values from the identity provider: endpoints, certificates or client secrets, and attribute mappings. Settings that live in the configuration file, such as gitlab.rb, are applied with a reconfigure, and secrets should be stored outside shared repositories. Confirm the callback or assertion URL in the identity provider matches the GitLab hostname exactly. Done when GitLab restarts cleanly and the sign-in button for the provider appears on the sign-in page.
Test with a pilot group
Enable the new sign-in method for a small pilot group of non-admin users drawn from two or three directory groups. Ask each pilot user to sign in through the provider and report which account and access level they received. Keep a local administrator account available and confirm it still works, so a misconfiguration cannot lock everyone out. Done when a non-admin pilot user signs in successfully, lands in the correct project or group, and cannot reach administrator areas.
Enable group sync and role mapping
Turn on group synchronization so that directory group membership creates or updates GitLab group membership with the access level agreed in step one. Test a user who moves between two directory groups and confirm the old membership is removed and the new one appears with the right level. Check that users outside the mapped groups receive no access by default. Done when a group membership appears in GitLab with the expected access level after a directory change, and the sync log shows no unexpected removals.
Add SCIM provisioning and deprovisioning
Configure SCIM provisioning from the identity provider so that user creation, attribute updates and deactivation are pushed to GitLab without waiting for a login. Confirm which attributes the provider sends and that they match the mapping from step one. Test deprovisioning deliberately with a disposable pilot account. Done when a disabled directory account loses access to GitLab in the expected window, and the change is visible in the GitLab audit records.
Enforce two-factor authentication
After sign-in and provisioning are stable, set two-factor authentication as required for all users, and confirm which methods are allowed under the instance settings. Ask a pilot user to enroll and sign in again, then confirm the instance blocks access for an account without a second factor. Coordinate with the identity provider's own MFA policy so users are not prompted twice without reason. Done when a test account without a second factor is prompted to enroll and cannot proceed until it does.
How identity setup changes by deployment model
A single Linux package node is the simplest case. GitLab, PostgreSQL, Redis and Sidekiq run on one host, so the identity provider settings live in one configuration file, and the external URL that the identity provider redirects back to must match the address users type into the browser. Most of the work is getting that address, the certificate chain and the provider metadata right the first time.
- Callback URL: The redirect or callback URL registered with the provider must match
external_urlingitlab.rbexactly, including scheme and port. A mismatch is the most common cause of failed sign-in. - Certificates: The host certificate must be trusted by the identity provider and by any LDAP or SAML endpoint GitLab calls. Private certificate authorities need to be added to the trust store used by GitLab.
- Secrets: Client secrets and bind passwords are stored in
gitlab.rbor the secrets file, so file permissions and backups need to cover them. - Proxy headers: If a reverse proxy or load balancer sits in front of the node, confirm forwarded protocol and host headers so GitLab builds correct URLs.
- Group sync: Directory group sync runs from this one node, so check its schedule and service account permissions.
Before go-live, confirm each value against the installation documentation for the Linux package and the authentication guide for your chosen provider.
In a multi-node or high availability layout, GitLab application nodes sit behind a load balancer and share stateful services. Every application node must present the same external URL, use the same identity provider configuration and hold the same secrets, or sign-in will succeed on some nodes and fail on others. The load balancer becomes part of the identity path, not just traffic distribution.
- Shared secrets: The secrets file must be identical on every application node, so provider credentials and encryption keys cannot drift between hosts.
- Load balancer headers: Forwarded protocol, host and client address headers must reach GitLab unchanged so that callback URLs and audit entries are accurate.
- Session affinity: Confirm with the reference architecture documentation how sessions and sign-in state are handled across nodes behind the load balancer.
- Certificate rotation: Renewing a certificate on the load balancer alone is not enough if any component still presents the old chain to the identity provider.
- Group sync scope: Scheduled sync should run from one designated component so that the same directory is not queried in parallel from several nodes.
Review the reference architecture and high availability guidance for your user count, then test sign-in through every entry point the load balancer exposes.
On Kubernetes, the Helm chart or GitLab Operator deploys the stateless components as workloads, while the identity configuration is supplied through Kubernetes objects instead of gitlab.rb. Ingress, certificates and secrets become cluster resources, which changes who owns each setting and how it is rotated. The reference architecture documentation states that stateful components such as PostgreSQL and Redis are not supported inside Kubernetes, so identity dependencies on external services must be planned separately.
- Ingress and callback URLs: The external hostname on the ingress must match the callback URL registered with the identity provider, and TLS termination point must be known.
- Certificates: Cluster-issued certificates and private certificate authorities must be mounted or trusted by the pods that talk to the identity provider.
- Secrets: Provider credentials should be stored as Kubernetes secrets or pulled from an external secret manager, not written into values files kept in source control.
- Forwarded headers: Confirm that the ingress controller passes the headers GitLab expects, since default settings vary by controller.
- Chart version alignment: Chart and application versions change together, so identity settings should be retested after each upgrade.
Confirm the exact keys and secret names in the chart or Operator documentation for your version before writing values files.
On an isolated network, GitLab cannot reach public identity services, so the identity provider, its directory and any certificate revocation endpoints must sit inside the same isolated boundary. The usual outcome is that the provider runs on the internal network and the GitLab instance is configured to reach it directly. Connectivity, certificate trust and time synchronization become the main risks, because nothing can be fetched from outside to fix them later.
- Reachability: Confirm that LDAP, SAML or OpenID Connect endpoints are reachable from GitLab over the internal network, and that firewall rules allow only the required ports.
- Private certificate authority: Internal certificate authorities must be trusted by GitLab and by the provider, and their renewal dates should be tracked because renewal cannot depend on external services.
- Metadata and keys: SAML metadata and signing certificates are copied in by hand, so record their versions and update them through the same change process as other offline artifacts.
- Time sources: Token and assertion validation depends on accurate clocks, so the internal time source must be reliable.
- Offline references: Follow the offline environment guidance for transferring packages and confirming which features need network access.
Check each protocol against the offline environment documentation and your provider's own offline guidance before the isolated network goes live.
Access control and secrets in the identity layer
Every identity integration adds credentials that GitLab must hold to talk to your directory or identity provider, and those credentials become the easiest path into the instance if they leak. The cards below cover the bind accounts, certificates, client secrets, keytabs and break-glass accounts that sit under single sign-on, and what to check for each one.
LDAP bind account scope
GitLab's LDAP integration uses a bind account to search the directory for users and groups. Give this account read-only access to the search base and the attributes GitLab needs, and nothing that allows writes or password resets. Confirm who can read its password in the gitlab.rb configuration, and rotate it on a schedule that your directory team already follows, since a rotation that breaks sign-in is often discovered only at the next login attempt.
SAML signing and encryption certificates
SAML integrations depend on certificates that GitLab uses to verify assertions from your identity provider, and in some setups to encrypt them. Record the expiry date of each certificate and the owner who renews it, because an expired certificate stops all SAML sign-ins at once. Check that the private key for any service provider certificate is stored with restricted file permissions and is not copied into tickets, chat or shared drives during setup.
OIDC client secrets
OpenID Connect providers configured through OmniAuth issue a client ID and client secret that GitLab presents when it exchanges tokens. The secret grants the ability to act as the GitLab application at the provider, so treat it like a password. Confirm that only the GitLab administrators who maintain the configuration can view it, and plan a rotation step that updates both the provider and the GitLab configuration in one change window.
Kerberos keytab handling
A Kerberos keytab holds long-term keys for the GitLab service principal and must be readable by the service that uses it and by no one else. Store it outside shared directories, restrict its ownership to the GitLab service account, and record which key version is current. Losing track of key versions after a directory change is a common cause of failed Kerberos logins, so confirm the procedure with your directory administrators before go-live.
Break-glass administrator accounts
Keep at least one local administrator account that does not depend on LDAP, SAML or OIDC, so that administrators can recover the instance when the identity provider or directory is unavailable. Store its password and any recovery codes in a sealed, audited location, and test that the account signs in without using the identity provider. Verify that its two-factor method is not tied to a phone or device held by someone who has left the organization.
Sign-up limits and 2FA fallbacks
Restricting sign-up and enforcing two-factor authentication change which paths remain open when the primary provider fails. A user who is locked out of SSO may be unable to use a password-based fallback if sign-up limits or 2FA requirements block it, and that is the intended outcome, but the people who must recover access need a documented route. Walk through each fallback path with your security team and record who may approve a manual recovery. Hardening settings for these controls are covered in the GitLab security hardening topic.
How directory groups map to GitLab roles
The role a directory group grants in GitLab decides what its members can change, so the mapping is the access decision itself. When you link a directory group to a GitLab group, you choose a role. The three roles that matter most here are owner, maintainer and developer. Owners manage group membership and settings, maintainers handle most project administration, and developers write code and open merge requests. Confirm the exact permission matrix for your version in the GitLab documentation before you assign anything. Give the highest role only to the smallest group of people who need it, and treat any mapping that yields owner as a change that needs a named approver.
Mapping most often over-grants access in three places. The first is nested groups. Membership in a parent group generally carries down to subgroups and their projects, so a broad directory group linked high in the hierarchy reaches everything below it. The second is instance-level rights. Administrator access is separate from group membership, so confirm which directory groups, if any, can ever confer instance administration. The third is removal. A user dropped from a directory group may keep GitLab access until the next sync, or indefinitely if the link is one-way or the sync job fails. Confirm how sync frequency, removal and failed syncs behave in your version, and test a removal before you rely on it.
Agree the directory model before any configuration starts. Write down which directory groups exist, which ones grant access and which are only for notifications or reporting, the GitLab group each one maps to, the role it receives and whether that access should flow into subgroups. Then test with a few pilot accounts on a non-production instance. Check each user's effective access on the group members page, add and remove a test user from a directory group, and confirm the result matches the plan. Repeat these checks after every directory reorganization. The GitLab authentication and authorization documentation is the right reference for the configuration steps behind this model.
How a login and provisioning request flows through GitLab
A login starts in the browser and reaches the GitLab instance, which hands the user to the chosen identity provider, either a directory over LDAP or Active Directory or a SAML or OpenID Connect provider through OmniAuth. The identity provider returns an assertion or token, and GitLab creates the session and applies group sync and role mapping. Provisioning runs on a separate path: the identity provider pushes user and group changes to GitLab over SCIM. Check where the load balancer terminates TLS and which network segment each arrow crosses, since those are the trust boundaries to review.
Login redirect, session creation, group sync and SCIM provisioning paths in one GitLab instance.
How to test SSO before users depend on it
Test every login path before any user depends on it. Build a test matrix with one row per identity source you plan to enable, such as LDAP or Active Directory, a SAML provider, an OpenID Connect provider through OmniAuth, Kerberos or smart card where used. For each row, run a successful login with a test account from the intended group, confirm the user lands in the expected GitLab account, and check that the account's email, username and group memberships match what the identity provider holds. Then run the negative cases: a disabled account, an account outside the sync scope, and an account in a group that should receive no GitLab access. Each of these must be refused, and the refusal should appear in the audit events the instance records. Record the results so the same matrix can be rerun after every upgrade or configuration change.
Test the behavior that changes over time, not only the first login. Move a test user between mapped groups and confirm the GitLab role changes on the next sync or login, not only in the identity provider. Remove the user from the identity provider or disable the account, then measure how long GitLab takes to block sessions and whether SCIM deprovisioning or group sync removes access as your design assumes. Write the observed timing down, because it sets the real exposure window for leavers. Also test two-factor enforcement in both states: a user without an enrolled factor should be pushed to enroll, and a user with an enrolled factor should pass. Confirm whether two-factor enforcement applies to SSO sign-ins in your configured version, since the answer depends on how the identity provider handles MFA, so verify it against the GitLab authentication documentation for your release.
Test failure modes deliberately. Stop or block the identity provider in a staging environment and confirm what users see, whether local accounts still work where policy allows them, and how long an administrator must wait before access is restored. Most importantly, verify a break-glass route: a named administrator account with a strong, separately stored credential and a second factor kept offline, whose login is tested quarterly and documented in the runbook with the steps to use it. Confirm that this route still works when the identity provider is unreachable, and that its use triggers an alert. Keep the backup and restore procedures in the same review, because a restored instance with stale user mappings can lock out users. Ask your team and any implementation partner to confirm the exact break-glass steps for your chosen sign-in methods before go-live.
What to monitor, back up and document after go-live
This table lists the recurring identity tasks after GitLab sign-in goes live, with what each task protects and what evidence to keep. Read each row as a standing duty with an owner, a trigger and a check you can repeat. The main takeaway is that sign-in usually breaks through expiring credentials, changed identity provider settings or an upgrade, not through the initial setup.
| Area | What to do | Evidence to keep | Where it usually fails |
|---|---|---|---|
| Authentication logs and failed-login alerts | Forward GitLab sign-in events and identity provider sign-in logs to your central log system. Alert on spikes in failed logins, LDAP bind failures and blocked sign-ins for admin accounts. | Alert rules, sample alert records and the named on-call owner | Logs stay on the GitLab host, or alerts fire to a mailbox nobody reads |
| Certificate and client secret expiry | Record the expiry date of every SAML signing or encryption certificate, OpenID Connect client secret and LDAP TLS certificate. Set reminders well ahead of each date and confirm the renewal in a test sign-in. | Expiry register with owners and renewal dates | A certificate or client secret expires and sign-in stops for all users at once |
| Identity provider metadata changes | Review the SAML metadata URL, OIDC discovery document and issuer values after any change on the identity provider side. Re-test sign-in and group claims after each change. | Change tickets linking the provider change to a GitLab test | Endpoint, entity ID or claim name changes silently and users are redirected or lose group roles |
| Directory service account password rotation | Rotate the bind account password used for LDAP group sync and user lookup on a fixed schedule. Update the GitLab configuration and confirm sync runs before the old password is retired. | Rotation record, sync test result and vault entry update | Password rotated in the directory but not in GitLab, so sync and sign-in quietly fail |
| Backup of configuration and secrets | Save the configuration files that hold identity settings, along with the secrets files that GitLab needs to decrypt stored values. Store them separately from the main data backup and check that a restore brings back working sign-in. | Backup inventory, storage location, last restore test date | Backups contain data but not the secrets needed to decrypt it, so restored sign-in cannot work |
| Re-testing after each GitLab upgrade | After every minor or patch upgrade, test SSO sign-in, group sync, SCIM and two-factor enforcement in a staging instance first. For required upgrade stops, plan a longer test window and confirm identity settings in each intermediate version. | Test script, results per version and sign-off before production | Upgrade changes an authentication setting or a provider library, and the failure is found by users |
| Runbook for adding or removing an identity source | Document the steps to add or retire an LDAP, SAML, OIDC or SCIM source, including who approves it, how users and group roles are migrated and how local admin access is kept during the change. | Approved runbook, change log and a dated test of the break-glass account | Removing an old source leaves users without a path to sign in or orphans their accounts and permissions |
Questions teams ask before building GitLab SSO
What drives the cost and effort of GitLab SSO work?
The biggest drivers are how many identity sources you must connect, how complex your directory and group structure is, and how many role and permission rules you need to map. A single SAML or OpenID Connect provider with a clear group model is far smaller work than LDAP or Active Directory with nested groups, several sign-in paths, and SCIM provisioning. Costs are mostly labor: someone must design the group-to-role mapping, configure the instance, test sign-in and deprovisioning, and document the result. Ask any partner for a quote that lists each identity source, each sync or provisioning feature, the test cases, and who on your side supplies directory access. Tier choice also matters because the GitLab pricing page shows that all three tiers are available for self-managed installations, so the feature set you need affects licensing as well as configuration.
How long does GitLab SSO integration take?
Duration depends mostly on the identity provider and the directory model, not on GitLab alone. An OpenID Connect or SAML sign-in with a single group set can be configured and tested quickly once the identity provider team is available. LDAP or Active Directory with group sync, Kerberos, smart card authentication, or SCIM provisioning adds directory design, service account setup, and more test cases, and each of those depends on people outside the GitLab team. Schedule time for approvals of service accounts and certificates, because those often run longer than the configuration itself. Ask for a timeline that separates the identity provider work, the GitLab configuration, and the test and rollback steps.
What does our internal team need to supply for GitLab SSO?
Your team needs to supply directory or identity provider administrators, certificates or metadata for SAML, client registration details for OpenID Connect, and a service account with the right read permissions for LDAP or Active Directory. You also need a group design: which directory groups map to GitLab roles, which groups control access to projects, and who approves changes. Someone must own the two-factor enforcement policy and decide how existing local accounts are handled. Confirm these owners before work starts, because a missing approver or an unclear group model is the most common source of delay. The GitLab authentication documentation covers the providers and mechanisms available in GitLab Self-Managed, which is a useful checklist for the questions to ask your identity team.
Can our own team set up GitLab SSO without a partner?
Yes, a team with identity and GitLab administration skills can configure sign-in without a partner, especially for a single provider with simple groups. The harder parts are usually the ones that are easy to skip: testing failed sign-ins, confirming that removed users lose access, checking that group-to-role mapping behaves as intended, and documenting the setup for the next administrator. If your team has no one who has configured LDAP group sync or SCIM before, a fixed-scope engagement can cover those steps with written deliverables. Whichever route you choose, keep a recovery path with an administrator account that does not depend on the new provider.
How is SCIM provisioning different from signing in with SSO?
Sign-in decides whether a person can authenticate to GitLab at a given moment, while SCIM provisioning decides which accounts exist in GitLab and how their attributes and group memberships change over time. Without provisioning, a user can be disabled in the identity provider but still hold an active GitLab account until someone removes it manually. The GitLab authentication documentation lists SCIM user provisioning alongside SAML and LDAP as separate capabilities, so they must be planned and tested separately. Ask your team to verify both paths: a new hire gets access, and a leaver is blocked from sign-in and loses project access in a documented time.
How do GitLab upgrades affect identity settings?
Identity settings are part of the instance configuration, so they must be checked at every upgrade rather than assumed to survive it. GitLab requires upgrades to pass through required upgrade stops, and the GitLab upgrade paths documentation lists the stops that apply to your version, so an identity change tested on one release should be retested after moving to the next. Keep a copy of the authentication configuration in your change record, and include sign-in, group sync, and provisioning tests in each upgrade checklist. Patch releases are also relevant, because security fixes are backported to recent monthly releases according to the GitLab maintenance policy.
Should we enforce two-factor authentication at the identity provider or in GitLab?
Enforce it where your identity provider can apply it to every sign-in path, then confirm that GitLab does not allow a bypass through another method. Teams often enforce two-factor authentication in one place and forget service accounts, API tokens, or local fallback accounts. Write down which sign-in methods remain enabled and who can change them, because a sign-in method you forget about becomes a second entry point. Test the policy with a real account before you rely on it, and record the result as evidence for your security review.
How DeployOpen works on this
DeployOpen plans, implements, documents and supports self-hosted GitLab inside your own infrastructure, including its identity integration. Each engagement starts from a written scope that names the identity sources, group mappings and login methods your GitLab instance will use.
How we scope
- Inventory your identity sources, such as Active Directory domains, existing SAML or OpenID Connect providers and HR-driven group membership.
- Agree which login methods, LDAP group sync, SCIM provisioning and two-factor rules are in scope before any configuration changes.
- Record group-to-role mappings, administrator access and break-glass accounts in the written scope, with engagements fixed-scope and quoted from that document.
How we build
- Configure each identity method in a non-production GitLab instance first, then test sign-in, group sync and deprovisioning with pilot accounts.
- Validate SAML assertions, OmniAuth callback settings and LDAP bind accounts against your identity provider's documented behavior before enabling them broadly.
- Test failure paths, including a disabled upstream account, a removed group membership and an expired smart card, and record how GitLab responds to each.
How we hand over
- Deliver configuration records for gitlab.rb settings, identity provider metadata, group mapping tables and the sign-in method for each user population.
- Provide an operations runbook covering certificate and secret rotation, adding new groups, and recovering access when the identity provider is unavailable.
- Walk your identity, security and GitLab administration teams through the evidence for access control, audit logging and two-factor enforcement.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so identity settings are rechecked after each required GitLab upgrade stop.
- Retesting covers sign-in methods and group sync after changes to your identity provider, certificates or GitLab version.
- Ask any provider to confirm in writing which identity features your GitLab tier includes, since those details vary by edition and release.

