dcg

Flipt

featureflags.flipt

Protects against destructive Flipt CLI and API operations.

  • 8blocking rules
  • 18safe patterns
  • 2Critical
  • 4High
  • 2Medium
~/.config/dcg/config.toml
[packs]
enabled = ["featureflags.flipt"]

Evaluated when a command contains flipt.

Blocking rules

Each rule ID is featureflags.flipt:<name>. Use it in allowlists and [policy.rules].

  1. flipt-flag-delete

    Critical

    flipt flag delete permanently removes a feature flag. This cannot be undone.

    Explanation
    Deleting a Flipt feature flag immediately removes it from evaluation. All applications checking this flag will receive default values or errors. Rules, variants, and distributions associated with the flag are also removed. Safer alternatives: - flipt flag get: Review flag configuration first - Disable the flag instead of deleting - Export flag configuration before deletion
  2. flipt-namespace-delete

    Critical

    flipt namespace delete removes a namespace and all its flags, segments, and rules.

    Explanation
    Deleting a namespace removes ALL flags, segments, rules, and constraints within it. This is a complete wipe of that feature flag environment. All applications using this namespace will lose flag evaluations. Safer alternatives: - flipt namespace get: Review namespace contents - Export all flags and segments before deletion - Migrate resources to another namespace first
  3. flipt-api-delete

    High

    DELETE request to Flipt API can remove flags, segments, or rules.

    Explanation
    Direct API DELETE calls to Flipt can remove flags, segments, rules, or namespaces without CLI confirmation prompts. API deletions take effect immediately across all connected applications. Safer alternatives: - Use the Flipt CLI for better confirmation prompts - GET the resource first to verify what will be deleted - Use the Flipt UI for visibility into dependencies
  4. flipt-rule-delete

    High

    flipt rule delete removes a targeting rule from a flag.

    Explanation
    Deleting a rule changes how the flag evaluates for targeted users. Users previously matching this rule will fall through to other rules or receive the default variant. Safer alternatives: - flipt rule get: Review rule configuration - Disable the rule instead of deleting - Verify other rules handle affected users
  5. flipt-segment-delete

    High

    flipt segment delete removes a segment and its constraints.

    Explanation
    Deleting a segment removes user grouping rules. Any flags using this segment for targeting will lose that targeting logic, potentially changing which users receive which variants. Safer alternatives: - flipt segment get: Review segment configuration - Check which flags reference this segment - Update flags to use different segments first
  6. flipt-variant-delete

    High

    flipt variant delete removes a variant from a flag.

    Explanation
    Deleting a variant removes a possible flag value. Rules distributing traffic to this variant will fail or need adjustment. Applications expecting this variant value may break. Safer alternatives: - Check which rules reference this variant - Update distributions before deleting - Zero out traffic to this variant first
  7. flipt-constraint-delete

    Medium

    flipt constraint delete removes a constraint from a segment.

    Explanation
    Removing a constraint changes segment membership. Users previously excluded or included by this constraint will now match or not match the segment differently. Safer alternatives: - Review segment membership before and after - Test constraint changes in a staging namespace - Document why the constraint is being removed
  8. flipt-distribution-delete

    Medium

    flipt distribution delete removes a distribution from a rule.

    Explanation
    Removing a distribution changes traffic allocation within a rule. The affected variant will no longer receive traffic from this rule, shifting all traffic to remaining distributions. Safer alternatives: - Review current traffic allocation - Adjust percentages instead of deleting - Verify other distributions handle the traffic

Safe patterns

Checked first. A command that matches one is never blocked by this pack.

  • flipt-flag-list
  • flipt-flag-get
  • flipt-flag-create
  • flipt-flag-update
  • flipt-segment-list
  • flipt-segment-get
  • flipt-segment-create
  • flipt-namespace-list
  • flipt-namespace-get
  • flipt-namespace-create
  • flipt-rule-list
  • flipt-rule-get
  • flipt-rule-create
  • flipt-evaluate
  • flipt-help
  • flipt-version
  • flipt-server
  • flipt-config