Add duo_remote_flows_enabled cascading setting
What does this MR do and why?
This code change adds a new feature called "Duo Flow" settings to GitLab's AI configuration interface. The main changes include:
New Feature Addition: A new setting called "Allow flow execution" has been added to the GitLab Duo AI settings pages, allowing administrators to control whether AI agents can execute automated workflows (called "flows").
User Interface Updates: The changes create a new settings component with a checkbox that lets users enable or disable flow execution, complete with help text explaining what flows are and links to documentation.
Data Flow Integration: The new setting is connected throughout the application - from the user interface forms down to the backend data storage, ensuring the setting can be saved and retrieved properly.
Administrative Control: The feature is integrated into both group-level and instance-level AI settings, giving administrators granular control over this functionality.
Visual Improvements: Some minor styling adjustments were made to improve the layout of the settings interface.
The overall purpose is to give GitLab administrators more control over AI-powered automation features, specifically the ability to allow or prevent AI agents from executing predefined workflows within their GitLab instance or groups.
References
Screenshots or screen recordings
Disabling instance setting
Screen Recording 2025-09-05 at 13.31.05.mov
Disabling Group setting
Screen Recording 2025-09-05 at 13.34.22.mov
Disabling project setting
Screen Recording 2025-09-05 at 13.37.03.mov
How to set up and validate locally
- Make sure you have AI features enabled https://docs.gitlab.com/development/ai_features/
- Turn on two feature flags:
duo_workflow
andduo_workflow_in_ci
- Make sure your project has experimental ai features turned on
- Pull this Branch down and checkout to it
- rebase / cherry-pick commits from !202745 (merged)
- Navigate to an issue
- Notice the generate MR from issue button
- Go to the admin settings => GitLab Duo
- Configure
- Turn off the flow feature
- Navigate to any sub group with ai features
- Go to the general settings => gitlab duo
- Notice the flow setting is locked
- Navigate to an issue of this group
- Notice the generate MR from issue button is gone
- Turn back on the instance setting
- Go to an issue
- Notice the button is shown
- Turn off the flow setting in a group
- in a sub project, check an issue
- Notice the button is not shown
- Turn on the group setting
- Go to an issue
- Notice the button is shown
- Go to a project
- Turn off the flow settings
- go to an issue
- notice the button is not shown
- Turn on the project
- Go to an issue
- Notice the button is shown
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.