Add feature flag to conditionally hide ChatGPT sign-in button

What does this MR do and why?

We wish to co-ordinate a launch with OpenAI see https://gitlab.com/gitlab-org/developer-relations/contributor-success/team-task/-/issues/1211

This MR will allow us to configure the omniauth provider and test it whilst it is hidden

We can flip the feature flag when ready

References

Screenshots or screen recordings

FF disabled:

Screenshot_2026-06-15_at_21.25.03

Querystring:

Screenshot_2026-06-15_at_21.24.51

FF enabled:

Screenshot_2026-06-15_at_21.25.47

How to set up and validate locally

  1. Add the ChatGPT provider to your config/gitlab.yml under development.omniauth.providers:
    development:
      omniauth:
        providers:
          - { name: 'chatgpt',
              app_id: 'YOUR_APP_ID',
              app_secret: 'YOUR_APP_SECRET' }
  2. Restart GDK
  3. Visit the sign-in page (you should not see the button)
  4. Add the querystring param http://gdk.test:3000/users/sign_in?enable_chatgpt=true (the button should appear)
  5. Enable the feature flag and check the button appears

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