Skip to content

Governance ​

As a flag system grows, "who can change what, when, and how do we review it?" matters as much as evaluation. Checkgate layers governance on top of flags without slowing down the common case.

Roles & access control ​

Three roles gate every action — admin, editor, and viewer — applied both at the workspace level and per project. See Core Concepts → Users and Roles for the full matrix. In short: editors manage flags; only admins manage users, environments, SDK keys, and webhooks; viewers are read-only.

Audit log ​

Every flag mutation is recorded — who changed what, when, and the before/after state. The Audit Log page is a searchable history covering create, update, delete, promote, archive, and unarchive actions, filterable by flag key. It's the first place to look during an incident ("what changed right before this broke?"). See the API reference.

Change requests (approvals) ​

Each environment has a require_approval toggle. When it's on, a flag PATCH is not applied immediately — it's captured as a pending change request that a different editor or admin must review (self-approval is blocked). Since 0.2.0 the same goes for creating a flag that would serve anything: an enabled flag, or a disabled one with its own off value, becomes a pending create request, and nothing reaches SDKs until it is approved.

  • Approve applies the original patch atomically against whatever the flag's current state is at approval time — so an approval always lands cleanly on top of the latest data, not a stale snapshot. If the update fails, the request remains pending and can be retried.
  • Approving a creation inserts the flag then; the audit log names the reviewer as actor and keeps the requester. If the key was created in the meantime, approval returns 409 and the request stays pending.
  • Reject / withdraw never touch the flag (a rejected creation leaves no flag at all).
  • It's scoped per environment, so Production can require review while Development stays frictionless.

Replacing an existing flag through POST, deleting a flag, promoting into a protected environment, scheduling a change, and editing segments return 409 Conflict while approval is enabled. Submit a flag PATCH for review instead. Creating an inert flag — disabled, with no disabled_value (it serves the built-in false) — still applies at once, so teams can add a flag and then propose turning it on. Before 0.2.0 any new flag, enabled ones included, applied at once.

This gives you a pull-request-style gate on your highest-risk changes. See the Change Requests API.

A queued request only helps if someone knows it's waiting — wire the environment up to Slack or Teams alerts so change_request.opened lands in the channel your reviewers already watch.

Automation & approvals

If an environment requires approval, programmatic updates (Terraform, the operator, scripts) can't apply synchronously — the change is queued for review. Since 0.2.0 that includes creating a flag that is not inert (the Go client returns ErrApprovalRequired). Point infrastructure-as-code at a non-gated environment, or approve out of band. The Terraform provider surfaces this explicitly rather than hanging.

Scheduled changes ​

Queue a flag change to apply at a future time — a launch at 9am, a rollout bump overnight, a kill-switch flip after a maintenance window. A background worker applies due changes (multi-instance safe). Manage them on the Scheduled page or via the Scheduled Changes API.

Flag lifecycle ​

Keep a growing flag set tidy with dashboard-only metadata that never affects evaluation:

  • Tags — free-form labels for search and filtering.
  • Owner email — who's responsible for the flag.
  • Archival — a reversible soft-delete that hides a flag from the default list with zero evaluation impact: SDKs keep receiving and evaluating an archived flag exactly as before, so archive a flag only once no code reads it (or delete it to stop serving it).

These live on a metadata wrapper and are never sent to SDKs or over SSE.

Cross-environment diff ​

The Compare environments view shows where two environments diverge — flags that exist in only one, or that differ in evaluation-relevant fields (rollout, rules, variants, prerequisites; tags and ownership are ignored). Each difference offers a one-click sync, complementing the per-flag Promote action for keeping Staging and Production aligned.

Personal access tokens ​

For CI/CD, Terraform, and scripts, mint a personal access token. SDK keys are public and can only reach the SDK endpoints (stream, snapshot, reading flags, impressions and events):

  • A token acts as its owning user (same role, same project memberships) and can be capped to read_only, or to propose: reads, plus proposing flag changes that someone else must approve — every edit becomes a pending change request, and the token can never create a flag or approve, reject or apply anything. Use it for AI agents (MCP server).
  • Tokens are SHA-256 hashed at rest, support optional expiry, and are strictly self-service — you can only list, create, and revoke your own.
  • A token cannot mint a more-privileged replacement for itself (read_only < propose < read_write).

Manage tokens under Settings → Personal access tokens (the Settings entry is in the sidebar for admins; other users open /settings directly), or via the Personal Access Tokens API.

See also ​

Released under the Apache License 2.0.