Pre-load known environments in secret variable scope dropdown

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

  • Close this issue

Currently, the dropdown for scope in the CI/CD secret variables settings is empty except for 'All environments' option. Users can add new 'wildcard' values for the environment scope, but that's it. Also, the use of the term wildcard here can be confusing if users just want to add a specific environment to the scope.

Screen_Shot_2019-08-22_at_4.19.09_PM

To improve the user experience here, I suggest we treat this dropdown more like the protected branches dropdown. We can preload known environments as well as allow users to add wildcards for yet-to-exist environments. Once you do this, the 'Create wildcard' feature makes a lot more sense.

Screen_Shot_2019-08-22_at_4.21.16_PM

Based on the screenshot above, and how we do it for protected branches, the Scopes dropdown could say, "Select environment or create wildcard"

Zendesk (internal): https://gitlab.zendesk.com/agent/tickets/129192 - For cross-link only. There's no more pertinent info in the ZD ticket that isn't in this issue

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading