- Flag configuration (enabled/disabled, rules, default value)
- API keys (server and client)
- Edge cache snapshot (synced on every config change)
Protected environments
A protected environment requires all flag changes to go through a change proposal workflow instead of being applied directly. No flag version can be created on a protected environment without an approved proposal. This is a Pro/Enterprise feature. Enabling it requires settingprotected: true via Update Environment.
Change proposal flow
- A proposer calls Create Proposal with the new
FlagConfig. - The proposal sits in
pendingstate. - A reviewer (a different actor than the proposer) calls Approve or Reject.
- On approval, a new flag version is created and the edge cache is synced automatically.
Self-approval is forbidden — the same API key or user that created the proposal cannot approve it.
This enforces a four-eyes principle.