Split.io
featureflags.split
Protects against destructive Split.io CLI and API operations.
- 10blocking rules
- 17safe patterns
- 6Critical
- 4High
[packs]
enabled = ["featureflags.split"]Evaluated when a command contains split, api.split.io.
Blocking rules
Each rule ID is featureflags.split:<name>. Use it in allowlists and [policy.rules].
Criticalsplit-api-delete-environmentsDELETE request to Split.io API removes environments.
Explanation
API DELETE calls to environments invalidate all API keys and remove all split configurations for that environment. Applications will lose all feature flag evaluations. Safer alternatives: - Use the Split CLI for better confirmation - Export environment configuration first - Rotate API keys before deletion
Criticalsplit-api-delete-splitsDELETE request to Split.io API removes split definitions.
Explanation
API DELETE calls to splits permanently remove feature flags without CLI confirmation. All targeting rules and treatments are lost immediately. Safer alternatives: - Use the Split CLI for confirmation prompts - GET the split configuration first - Use the Split UI for visibility into impact
Criticalsplit-environments-deletesplit environments delete removes an environment and all its configurations.
Explanation
Deleting an environment removes all split configurations, targeting rules, and API keys for that environment. Applications using this environment will receive default treatments for all splits. Safer alternatives: - Export environment configuration - Rotate API keys before deletion - Kill all splits in the environment first
Criticalsplit-splits-deletesplit splits delete permanently removes a split definition. This cannot be undone.
Explanation
Deleting a split permanently removes the feature flag definition and all its targeting rules. SDKs will return control treatment for this split. Historical data and metrics are preserved but the split cannot be recovered. Safer alternatives: - split splits kill: Stop traffic without deleting - Archive the split in the UI - Export split configuration first
Criticalsplit-traffic-types-deletesplit traffic-types delete removes a traffic type. This affects all splits using it.
Explanation
Deleting a traffic type affects ALL splits configured for that traffic type. SDKs sending this traffic type will no longer match any splits, returning control treatment for all evaluations. Safer alternatives: - Review all splits using this traffic type - Migrate splits to a different traffic type - Ensure no SDKs are sending this traffic type
Criticalsplit-workspaces-deletesplit workspaces delete removes a workspace and all its resources.
Explanation
Deleting a workspace removes ALL splits, segments, environments, and API keys within it. This is the most destructive operation and affects all applications using any resource in this workspace. Safer alternatives: - Export complete workspace configuration - Migrate critical splits to another workspace - Contact Split.io support for assistance
Highsplit-api-delete-genericDELETE request to Split.io API can remove resources.
Explanation
Generic DELETE requests to the Split.io API can remove various resources. Review the specific endpoint to understand what will be deleted. Safer alternatives: - Verify the exact resource being deleted - Use the Split CLI or UI for better visibility - GET the resource first to confirm
Highsplit-api-delete-segmentsDELETE request to Split.io API removes segments.
Explanation
API DELETE calls to segments remove user groupings. Splits using this segment will lose targeting rules, changing treatment assignment for affected users. Safer alternatives: - Check segment dependencies first - Update split targeting before deletion - Export segment membership data
Highsplit-segments-deletesplit segments delete removes a segment and its targeting rules.
Explanation
Deleting a segment removes user grouping definitions. Splits targeting this segment will lose that targeting rule, changing which users receive which treatments. Safer alternatives: - Check which splits use this segment - Update split targeting before deletion - Export segment membership
Highsplit-splits-killsplit splits kill terminates a split, stopping all traffic to treatments.
Explanation
Killing a split immediately stops all treatment assignment and returns the default treatment to all users. Unlike delete, the split can be reactivated, but all users will see behavior change immediately. Safer alternatives: - Gradually ramp down traffic percentages first - Verify the default treatment behavior - Communicate the change to stakeholders
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
split-splits-listsplit-splits-getsplit-splits-createsplit-splits-updatesplit-environments-listsplit-environments-getsplit-environments-createsplit-segments-listsplit-segments-getsplit-segments-createsplit-traffic-types-listsplit-traffic-types-getsplit-workspaces-listsplit-workspaces-getsplit-helpsplit-versionsplit-api-get