Hide self-hosted beta features banner in non-self-hosted instances

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Description

The self-hosted beta features banner (highlighted in red) is only applicable to self-hosted users and should be hidden for other user types, e.g Duo Pro/Core.

Screenshot_2025-12-09_at_4.06.46_pm

How to reproduce:

  1. Run the following rake task to set up a self-managed Duo Pro account GITLAB_SIMULATE_SAAS=0 bundle exec 'rake gitlab:duo:setup[duo_pro]'

  2. Navigate to instance model selection page and note the banner http://gdk.test:3000/admin/gitlab_duo/self_hosted

Definition of done:

  • Non-self-hosted instances should not see this banner anywhere on the instance model selection page
Edited by 🤖 GitLab Bot 🤖