This product is not supported for your selected
Datadog site. (
).
Overview
Approvals help you control what changes are made to feature flags and by whom. In addition to granular access control, you can require approvals for changes to certain flags or production environments before those changes take effect.
Require approvals on an environment
- Navigate to Feature Flags > Settings > Environments.
- Select the environment you want to configure.
- If it is not already a production environment, mark it as a production environment.
- Enable the option to require approvals.
After you enable approvals, subsequent changes that impact application behavior in that environment require approval before they can be applied. The changes must be approved by another user with write access on the flag. Examples include:
- Enabling or disabling a flag
- Modifying targeting rules
- Archiving a flag
Require approvals on a feature flag
New flag
When creating a flag, toggle Require approval on changes to this flag for all production environments to enable approvals for that flag in every production environment.
Existing flag
Enabling approvals on an existing flag requires
Feature Flag Config Write and Contributor or Editor access to the flag. Disabling approvals also requires
Feature Flag Approvals Override. That permission also lets an authorized user override the approval workflow. For more information, see
Override approvals.
- Navigate to your flag’s details page.
- Open Settings > Approvals.
- Toggle Require approval on changes to this flag for all production environments.
Approval workflow
Submit changes for review
When you make a change that requires approval, a Submit Changes For Review modal appears. The modal prompts you to:
- Enter a description of the change
- Select a notification channel (for example, Slack or Microsoft Teams) for the approval request
To modify a pending change after submission, delete it and submit a new one.
Approve, reject, or apply
Approvers see a diff, a description of the change, and the affected environment. From the approval request, they can:
- Reject the change suggestion
- Approve the change suggestion without applying it
- Approve & apply the change in one step
Approving a change suggestion does not apply it. The approved change remains visible on the flag, and you can apply it at any time after approval.
If the change includes a scheduled rollout start time that has already passed by the time a reviewer acts on it, the rollout does not start automatically. The reviewer sees a warning banner, and approving the change opens a confirmation modal with Cancel and Start Now options instead of approving immediately.
Apply approved changes
After a change is approved, apply it when you are ready for it to take effect in the affected environment. You do not need to submit the change for review again.
Override approvals
The Feature Flag Approvals Override organization permission serves two purposes:
- Existing flags: Required to disable approvals on a flag, in addition to Feature Flag Config Write and Contributor or Editor access.
- Workflow bypass: Allows holders to bypass the approvals workflow where that option is available, so changes can proceed without the usual review and approval steps.
Treat this permission as highly sensitive: assign it only to people who may need to change approval requirements or make exceptions to governance. Organization permissions are granted through Datadog roles. For related Feature Flags permissions, see Permissions and Access Control.
Experiment approvals
Experiments that use Datadog Feature Flags follow the approval requirements on the flag and its environment. Request approval to start an experiment, increase traffic, roll out a winner, or cancel. Submitting or approving a request without applying it leaves traffic unchanged. See Experiment Approvals for supported configurations, permissions, and instructions.
Configure flag approval requirements before linking an experiment. A linked experiment prevents changes to the flag’s approval setting.
Find flags with pending approvals
On the Feature Flags search page, toggle the Pending Approvals filter to view flags with changes awaiting approval.
Further reading
Additional helpful documentation, links, and articles: