dcg

Google Apigee

apigateway.apigee

Protects against destructive Google Apigee CLI and apigeecli operations.

  • 14blocking rules
  • 24safe patterns
  • 4Critical
  • 9High
  • 1Medium
~/.config/dcg/config.toml
[packs]
enabled = ["apigateway.apigee"]

Evaluated when a command contains apigee, apigeecli.

Blocking rules

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

  1. apigeecli-envs-delete

    Critical

    apigeecli envs delete removes an Apigee environment.

    Explanation
    Deleting an environment removes all deployed proxies, target servers, and configurations. This breaks all API traffic through that environment. Safer alternatives: - apigeecli envs list: Review environments before deletion - Export all environment resources before deletion - Undeploy all APIs first to verify nothing is in use
  2. apigeecli-orgs-delete

    Critical

    apigeecli orgs delete removes an entire Apigee organization.

    Explanation
    Deleting an organization permanently removes ALL resources: environments, APIs, products, developers, apps, and analytics. This is completely irreversible. Safer alternatives: - Export all configurations before deletion - Delete individual resources first to verify impact - Contact support if you need to preserve any data
  3. gcloud-apigee-environments-delete

    Critical

    gcloud apigee environments delete removes an Apigee environment.

    Explanation
    Deleting an environment removes all deployed API proxies, target servers, key-value maps, and caches within it. This is irreversible and will break all API traffic routed through this environment. Safer alternatives: - gcloud apigee environments describe: Review environment contents - Undeploy all APIs from the environment first - Export environment configuration and resources before deletion
  4. gcloud-apigee-organizations-delete

    Critical

    gcloud apigee organizations delete removes an entire Apigee organization.

    Explanation
    Deleting an organization permanently removes ALL environments, API proxies, products, developers, apps, and analytics data. This is irreversible and will completely destroy your API management infrastructure. Safer alternatives: - Export all configurations and proxy bundles before deletion - Delete individual resources to verify nothing is still in use - Consider disabling billing instead if just reducing costs
  5. apigeecli-apis-delete

    High

    apigeecli apis delete removes an API proxy from Apigee.

    Explanation
    Deleting an API proxy removes all its revisions and deployment history. Any applications relying on this API will immediately receive errors. Safer alternatives: - apigeecli apis list: Review APIs before deletion - apigeecli apis export: Export the proxy bundle for backup - Undeploy from all environments first to verify impact
  6. apigeecli-apps-delete

    High

    apigeecli apps delete removes a developer app from Apigee.

    Explanation
    Deleting an app revokes all its API keys and credentials. Any systems using those keys will immediately lose API access. Safer alternatives: - apigeecli apps list: Review apps before deletion - Revoke individual credentials instead of deleting the app - Set app status to revoked to disable without deleting
  7. apigeecli-developers-delete

    High

    apigeecli developers delete removes a developer from Apigee.

    Explanation
    Deleting a developer also deletes all their apps and API keys. Applications using those keys will immediately lose access. Safer alternatives: - apigeecli developers list: Review developers before deletion - apigeecli apps list: Check developer's apps first - Set developer status to inactive instead of deleting
  8. apigeecli-keyvaluemaps-delete

    High

    apigeecli keyvaluemaps delete removes a key-value map from Apigee.

    Explanation
    Deleting a KVM removes all stored key-value pairs. API proxies reading from this KVM will fail or return errors. Configuration data stored in the KVM is permanently lost. Safer alternatives: - apigeecli keyvaluemaps list: Review KVMs before deletion - Export KVM entries before deletion - Check which proxies reference this KVM first
  9. apigeecli-products-delete

    High

    apigeecli products delete removes an API product from Apigee.

    Explanation
    Deleting an API product immediately revokes access for all subscribed apps. Quota settings and rate limits are permanently lost. Safer alternatives: - apigeecli products list: Review products before deletion - apigeecli products get: Check which apps are using the product - Remove apps from the product first to verify impact
  10. apigeecli-targetservers-delete

    High

    apigeecli targetservers delete removes a target server from Apigee.

    Explanation
    Deleting a target server breaks all API proxies that route traffic to it. Requests will fail until proxies are updated to use a different target. Safer alternatives: - apigeecli targetservers list: Review targets before deletion - Update API proxies to use a different target first - Set the target server to disabled to test impact
  11. gcloud-apigee-apis-delete

    High

    gcloud apigee apis delete removes an API proxy from Apigee.

    Explanation
    Deleting an API proxy removes all its revisions and deployment history. Any applications relying on this API will immediately receive errors. API keys and quotas associated with products referencing this API may be affected. Safer alternatives: - gcloud apigee apis list: Review APIs before deletion - gcloud apigee deployments undeploy: Undeploy first to verify impact - Export the API proxy bundle before deletion for backup
  12. gcloud-apigee-developers-delete

    High

    gcloud apigee developers delete removes a developer from Apigee.

    Explanation
    Deleting a developer also deletes all their apps and associated API keys. Any applications using those keys will immediately lose API access. Developer analytics and usage history are also removed. Safer alternatives: - gcloud apigee developers describe: Review developer details - Revoke individual app credentials instead of deleting the developer - Set developer status to inactive rather than deleting
  13. gcloud-apigee-products-delete

    High

    gcloud apigee products delete removes an API product from Apigee.

    Explanation
    Deleting an API product immediately revokes access for all apps subscribed to it. Quota settings, rate limits, and access controls defined in the product are lost. Apps will need to be re-subscribed to a different product. Safer alternatives: - gcloud apigee products describe: Review product configuration - Remove individual apps from the product instead - Set product access to private before deletion to verify impact
  14. gcloud-apigee-deployments-undeploy

    Medium

    gcloud apigee deployments undeploy removes an API deployment.

    Explanation
    Undeploying an API proxy stops all traffic processing for that API in the specified environment. Clients will receive errors until the API is redeployed. This is reversible by redeploying the proxy. Safer alternatives: - gcloud apigee deployments list: Review current deployments - Test in a non-production environment first - Deploy a new revision instead of undeploying

Safe patterns

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

  • gcloud-apigee-apis-list
  • gcloud-apigee-apis-describe
  • gcloud-apigee-environments-list
  • gcloud-apigee-environments-describe
  • gcloud-apigee-developers-list
  • gcloud-apigee-developers-describe
  • gcloud-apigee-products-list
  • gcloud-apigee-products-describe
  • gcloud-apigee-organizations-list
  • gcloud-apigee-organizations-describe
  • gcloud-apigee-deployments-list
  • gcloud-apigee-deployments-describe
  • apigeecli-apis-list
  • apigeecli-apis-get
  • apigeecli-products-list
  • apigeecli-products-get
  • apigeecli-developers-list
  • apigeecli-developers-get
  • apigeecli-envs-list
  • apigeecli-envs-get
  • apigeecli-orgs-list
  • apigeecli-orgs-get
  • gcloud-apigee-help
  • apigeecli-help