Add enable duo banner for self-managed
What does this MR do and why?
Related to #536440
Add the enable duo banner for self-managed instances
dot com version here: !188312 (merged)
References
Screenshots or screen recordings
| Admin dashboard | Admin Duo setting |
|---|---|
![]() |
![]() |
| Dismissing one doesn't affect the other banner | Enabling Duo Core dismisses both banners |
|---|---|
| Screen_Recording_2025-04-28_at_3.15.13_PM | Screen_Recording_2025-04-28_at_3.15.30_PM |
How to set up and validate locally
- Make sure your local GDK has a license and not simulating SaaS: https://gitlab.com/gitlab-org/customers-gitlab-com/-/blob/main/doc/setup/gitlab.md#adding-a-license-from-staging-customers-portal-to-your-gdk
- Comment out the date condition by applying this diff:
Click to expand
diff --git a/ee/app/helpers/ee/users/callouts_helper.rb b/ee/app/helpers/ee/users/callouts_helper.rb
index b585a78c9860..0ad1938e6914 100644
--- a/ee/app/helpers/ee/users/callouts_helper.rb
+++ b/ee/app/helpers/ee/users/callouts_helper.rb
@@ -74,8 +74,8 @@ def show_transition_to_jihu_callout?
end
def show_enable_duo_banner_sm?(callouts_feature_name)
- Date.current >= DUO_CORE_RELEASE_DATE &&
- ::Feature.enabled?(:allow_duo_base_access, :instance) &&
+ # Date.current >= DUO_CORE_RELEASE_DATE &&
+ ::Feature.enabled?(:allow_duo_base_access, :instance) &&
::Feature.enabled?(:show_enable_duo_banner_sm, :instance) &&
current_user.can_admin_all_resources? &&
License.duo_core_features_available? &&
- Enable feature flag in rails console:
Feature.enable(:allow_duo_base_access) - Sign in as admin
- Visit
/adminand/admin/gitlab_duoto see the banners.
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.
Edited by Roy Liu

