Provide UNLEASH_URL and UNLEASH_INSTANCE_ID as CI/CD pre-defined environment variables

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

  • Work on this issue
  • Close this issue

Problem to solve

GitLab 11.4 introduced feature flags as a project feature, based on Unleash. GitLab provides the Unleash URL and instance ID that clients use to get feature flags.

Projects have to manually copy the URL and instance ID from their feature flag configurations. GitLab CI/CD should provide these and app name as CI/CD variables.

Intended users

  • Sasha (Software Developer)
  • Devon (DevOps Engineer)

Further details

The three main configuration variables for Unleash clients are the url, app name, and client id. They can be specified through environment variables as UNLEASH_URL, UNLEASH_APP_NAME, and UNLEASH_INSTANCE_ID.

Proposal

GitLab CI/CD should provide the Unleash configuration values as pre-defined environment variables. For UNLEASH_APP_NAME, this can be something like the value of CI_ENVIRONMENT_NAME.

Permissions and Security

Documentation

  • GitLab Feature Flags
  • GitLab CI/CD Pre-defined Environment Variables

Testing

What does success look like, and how can we measure that?

Projects can configure Unleash clients during deployments without requiring developers to manually copy out the project's Unleash URL and Client ID.

What is the type of buyer?

GitLab feature flags are available to GitLab Premium and GitLab.com Silver and higher tiers.

Links / references

https://gitlab.my.salesforce.com/0016100000KvacF

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

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