Gitlab hero border pattern left svg Gitlab hero border pattern right svg

Category Direction - Feature Flags

Feature Flags

Feature Flags can be used as part of software development to enable a feature to be tested even before it is completed and ready for release. A feature flag is used to enable or disable the feature during run time. The unfinished features are hidden (toggled) so they do not appear in the user interface.

Tying into our progressive delivery strategy, this allows many small incremental versions of software to be delivered without the cost of constant branching and merging.

Our ultimate goal is to provide an easy way to configure and monitor feature flags that integrate into the continuous development cycle. Visual ties from feature flags to ongoing issues and merge requests will help understand the state and exposure of each feature and a comprehensive dashboard will allow developers to take action when necessary in order to minimize risk and technical debt.

Feature Flags is built with an Unleash-compatible API, ensuring interoperability with any other compatible tooling, and taking advantage of the various client libraries available for Unleash. Unleash have recently announced that they are spinning up a hosted (paid) option while maintaining their open source offering. We will be monitoring this closely.

While Feature flags are a great tool for incremental delivery, they also introduce technical debt, sometimes feature flags are forgotten and left as stale code.

What's Next & Why

In order to expand the users who can use Feature Flags, we are moving Feature Flags to core via [gitlab#212318]https://gitlab.com/gitlab-org/gitlab/-/issues/212318. We are excited about enabling this for everyone and look forward to hearing your feedback and experience.

Maturity Plan

This category is currently at the "Viable" maturity level, and our next maturity target is Complete (see our definitions of maturity levels).

Our focus at the moment is on using the feature internally to deliver GitLab itself. This will be driving new requirements to the base features that are out there already, and also helping us to ensure the list for complete maturity is accurate. Our plan is for our feature flag solution to compete with other products on the market, such as LaunchDarkly or Rollout. As we work towards complete maturity, we expect that our primary adopters of this feature will be pre-existing GitLab users looking for incremental value. For buyers who are considering replacing other tools, and looking for something that integrates feature flags with issues, we will also provide a valuable solution as we head towards complete maturity.

Key deliverables to achieve this are:

Competitive Landscape

Other feature flag products offer more comprehensive targeting and configuration. The simplicity of our solution is actually a strength compared to this in some cases, but there is some basic functionality still to add. As we are rigorously working to close the gaps with the competitors, our next strategy to tackle will be the ability to configure feature flags based on groups gitlab-ee#13308

A competitor review of LaunchDarkly can be found in gitlab&4102. If you have additional insights or are interested in joining in the conversation, please comment on the issue.

Analyst Landscape

Analysts are recognizing that this sort of capability is becoming more a part of what's fundamentally needed for a continuous delivery platform, in order to minimize blast radius from changes. Often, solutions in this space are complex and hard to get up and running with, and they are not typically bundled or well integrated with CD solutions.

This backs up our desire to not over complicated the solution space here, and highlights the need for guidance. gitlab#9450 introduces new in-product documentation to help development and operations teams learn how to successfully adopt feature flags.

Top Customer Success/Sales Issue(s)

Our top customer success issue, and one that comes up frequently in customer calls is gitlab#8239 which talks about feature flag permissions. This will explicitly give permissions to toggle feature flags on/off based on the environment.

Top Customer Issue(s)

Our most popular customer issue is to open-source Feature Flags via gitlab#212318.

Top Internal Customer Issue(s)

Adding a webhook for feature flag events via gitlab#220898 to trigger pipeline actions and even email/slack notifications in case a flag was toggled. This can be really useful for automation, and to help keep you informed on the feature flag status at all times.

Dogfooding Efforts

We have completed the re-architecture of Feature Flags, adding the ability to support multiple strategies per environment via API and UI (gitlab#204895. Our Fulfillment, Expansion, and Telemetry teams have joined the dogfooding effort for this. The feedback from this process is being tracked in gitlab&3760.

Top Vision Item(s)

One of our main themes in CI/CD is Progressive delivery. Feature flags, by definition, are a form of progressive delivery as they allow you to deploy code incrementally and control the audience that will receive the new code. Our top vision issues are connecting Feature Flags to issues, Merge Requests, and Epics so that our users can benefit from our single application toolchain. This will enable users to better understand the context of a feature flag and their state to the associated plan, release, and deployment.

Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license