Skip to main content

How can I troubleshoot and resolve MFA test failures in Drata for GitLab users?

How to Troubleshoot and Resolve MFA Test Failures in Drata for GitLab Users

When using Drata to monitor MFA enforcement on GitLab, you may encounter test failures for certain users. These failures often stem from configuration issues, such as exclusion lists or group memberships. Below, we outline common causes and provide step-by-step solutions to resolve these issues.

Overview of MFA Enforcement in GitLab and Drata

Drata’s "MFA on Version Control System" test checks whether MFA is enabled for all users in your GitLab instance. However, certain configurations, such as SSO/IdP-enforced MFA or group membership structures, can lead to discrepancies in test results.

Common Issues and Troubleshooting Steps

1. Users Not Added to the Exclusion List

If MFA is enforced via your SSO/IdP (e.g., Google Workspace or Okta) or network/VPN controls, GitLab-native MFA may be redundant. Drata allows you to exclude such users from the MFA test. However, newly added users might not yet be included in this exclusion list, causing the test to flag them.

Steps to Resolve:

  1. Add the affected user to the exclusion list for the "MFA on Version Control System" test in Drata. Include a note indicating that MFA is enforced via SSO/IdP.

  2. Re-run a version control sync in Drata.

  3. Re-run the MFA test to verify that the issue is resolved.

  4. As a best practice, ensure that new users relying on SSO-enforced MFA are added to the exclusion list during onboarding.

2. Group or Subgroup Membership in GitLab

GitLab’s API may report MFA as disabled for users with direct subgroup memberships, even if MFA is enforced at the parent group level. This can result in unexpected test failures in Drata.

Steps to Resolve:

  1. In GitLab, locate the user and check for any direct subgroup memberships.

  2. Remove the user’s direct subgroup membership so that access is inherited from the parent group, or ensure that MFA is enabled for the subgroup.

  3. In Drata, run a version control sync.

  4. Re-run the MFA test to refresh the results.

Best Practices for Maintaining Accurate MFA Configurations

  • Regularly review and update the exclusion list in Drata to include all users relying on SSO/IdP-enforced MFA.

  • Audit group and subgroup memberships in GitLab to ensure consistent MFA enforcement.

  • Schedule periodic version control syncs in Drata to keep test results up-to-date.

By following these steps and best practices, you can ensure accurate MFA test results in Drata and maintain compliance with your security policies.

Did this answer your question?