dcg

Fastly CDN

cdn.fastly

Protects against destructive Fastly CLI operations like service, domain, backend, and VCL deletion.

  • 11blocking rules
  • 14safe patterns
  • 2Critical
  • 7High
  • 2Medium
~/.config/dcg/config.toml
[packs]
enabled = ["cdn.fastly"]

Evaluated when a command contains fastly.

Blocking rules

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

  1. fastly-compute-delete

    Critical

    fastly compute delete removes compute package.

    Explanation
    Deleting a Compute@Edge package removes your WASM application from the service. All serverless edge compute functionality stops immediately. The package must be rebuilt and redeployed to restore functionality. Safer alternatives: - Keep package source in version control - Deploy replacement package before deleting - Use fastly compute describe to review current state
  2. fastly-service-delete

    Critical

    fastly service delete removes a Fastly service entirely.

    Explanation
    Deleting a Fastly service removes ALL associated domains, backends, VCL, dictionaries, ACLs, and logging configurations. All traffic to this service will immediately fail. Service IDs cannot be reused after deletion. Safer alternatives: - fastly service describe: Review service configuration first - Export VCL and configuration for backup - Remove domains before deleting to confirm no active traffic
  3. fastly-acl-delete

    High

    fastly acl delete removes an access control list.

    Explanation
    Deleting an ACL removes IP allowlist or blocklist configuration. Security rules referencing this ACL will no longer match, potentially exposing protected resources or breaking geo-restriction logic. Safer alternatives: - fastly acl-entry list: Export ACL entries first - Update VCL to remove ACL references - Create replacement ACL before deleting
  4. fastly-backend-delete

    High

    fastly backend delete removes a backend origin server.

    Explanation
    Deleting a backend removes an origin server from the service. If VCL or routing rules reference this backend, requests will fail with 503 errors. Health checks and shield configuration are also removed. Safer alternatives: - fastly backend describe: Review backend configuration - Update VCL to stop routing to this backend first - Add replacement backend before removing the old one
  5. fastly-dictionary-delete

    High

    fastly dictionary delete removes an edge dictionary.

    Explanation
    Deleting an edge dictionary removes key-value configuration data used by VCL. If VCL references this dictionary for routing, feature flags, or blocklists, those lookups will fail causing request errors. Safer alternatives: - fastly dictionary-item list: Export dictionary contents - Update VCL to remove dictionary references first - Create replacement dictionary before deleting
  6. fastly-domain-delete

    High

    fastly domain delete removes a domain from a service.

    Explanation
    Removing a domain from a Fastly service immediately stops CDN handling for that domain. Traffic will either fail or fall back to the origin directly, bypassing caching and edge features. Safer alternatives: - fastly domain list: Review all domains on the service - Update DNS before removing from Fastly - Test with a staging domain first
  7. fastly-logging-delete

    High

    fastly logging delete removes logging endpoints.

    Explanation
    Deleting a logging endpoint stops log delivery to that destination. You will lose visibility into edge traffic, errors, and security events. Compliance and debugging capabilities are affected. Safer alternatives: - Ensure alternative logging is configured - Export endpoint configuration for backup - Disable endpoint before full deletion
  8. fastly-vcl-delete

    High

    fastly vcl delete removes VCL configuration.

    Explanation
    Deleting VCL removes custom edge logic including routing, caching rules, header manipulation, and security policies. The service may fall back to default behavior or fail if the deleted VCL was the main configuration. Safer alternatives: - fastly vcl describe: Download VCL content first - Keep VCL in version control - Create new version before deleting from old
  9. fastly-version-activate

    High

    fastly service version activate can cause service disruption if misconfigured.

    Explanation
    Activating a service version immediately deploys that configuration to all edge nodes. Misconfigured VCL, missing backends, or broken routing rules will cause immediate outages affecting all traffic. Safer alternatives: - fastly vcl validate: Validate VCL syntax first - Use fastly diff to compare with current active version - Test in a staging service before production activation
  10. fastly-acl-entry-delete

    Medium

    fastly acl-entry delete removes ACL entries.

    Explanation
    Removing ACL entries changes IP matching behavior. Removing an IP from a blocklist allows that IP to access the service. Removing from an allowlist blocks that IP. Safer alternatives: - Review the ACL purpose (allow vs block list) - Verify the entry change with the security team - Document why the entry is being removed
  11. fastly-dictionary-item-delete

    Medium

    fastly dictionary-item delete removes dictionary entries.

    Explanation
    Deleting dictionary items removes edge configuration values. VCL lookups for deleted keys will return empty strings, potentially affecting routing, redirects, or feature flag logic. Safer alternatives: - Review which VCL snippets use this dictionary - Set values to empty instead of deleting if VCL expects the key - Back up dictionary contents before modifications

Safe patterns

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

  • fastly-service-list
  • fastly-service-describe
  • fastly-service-search
  • fastly-domain-list
  • fastly-domain-describe
  • fastly-backend-list
  • fastly-backend-describe
  • fastly-vcl-list
  • fastly-vcl-describe
  • fastly-version-list
  • fastly-whoami
  • fastly-profile
  • fastly-version
  • fastly-help