dcg

Doppler CLI

secrets.doppler

Protects against destructive Doppler CLI operations like deleting secrets, configs, environments, or projects.

  • 4blocking rules
  • 8safe patterns
  • 1Critical
  • 3High
~/.config/dcg/config.toml
[packs]
enabled = ["secrets.doppler"]

Evaluated when a command contains doppler.

Blocking rules

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

  1. doppler-projects-delete

    Critical

    doppler projects delete removes a project.

    Explanation
    Deleting a Doppler project removes all environments, configs, and secrets within it. All applications referencing this project will lose access to their secrets. This action cannot be undone. Safer alternatives: - doppler secrets download: Export all secrets first - Review active integrations and service tokens - Archive the project configuration for recovery
  2. doppler-configs-delete

    High

    doppler configs delete removes a config.

    Explanation
    Deleting a Doppler config removes all secret values specific to that config. Branch configs and inheriting configs may also be affected. Applications using this config will fail to start or authenticate. Safer alternatives: - doppler secrets download --config=X: Export config secrets - doppler configs list: Understand config hierarchy - Migrate secrets to a new config before deletion
  3. doppler-environments-delete

    High

    doppler environments delete removes an environment.

    Explanation
    Deleting a Doppler environment removes all configs within that environment. Applications targeting this environment (dev, staging, prod) will fail to retrieve secrets. Inherited configurations are also lost. Safer alternatives: - doppler secrets download: Export environment secrets - doppler configs list: Review all configs in environment - Ensure no active deployments use this environment
  4. doppler-secrets-delete

    High

    doppler secrets delete removes secrets.

    Explanation
    Deleting a secret removes configuration data that applications depend on. Services using 'doppler run' or synced secrets will fail when the secret is not found. Deleted secrets cannot be recovered. Safer alternatives: - doppler secrets get: Export secret value first - doppler secrets set: Update value instead of deleting - Verify which environments/configs reference the secret

Safe patterns

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

  • doppler-secrets-get
  • doppler-secrets-list
  • doppler-run
  • doppler-configure
  • doppler-setup
  • doppler-projects-list
  • doppler-environments-list
  • doppler-configs-list