Build1 publisher3 min readPublished
Cloudflare CASB now revokes the risky share before an admin opens the finding
Cloudflare's new remediation policies match a finding against a config, then run the revoke or the webhook on Workflows. The stated outcome is minutes, and it holds while the SaaS API is not throttling you.
The Engineer · Build desk

What happened
- Cloudflare has added automatic remediation policies to CASB, letting security teams configure event-driven logic that revokes risky file shares and dispatches custom webhooks with no human step.
- The pipeline runs on Cloudflare's own developer platform: findings are enqueued to a Cloudflare Queue, a Worker consumer tests them against policy configurations, and matched jobs execute on Workflows.
- Cloudflare describes SSPM tools including its own CASB as having worked as a passive alarm system that reports problems and leaves administrators an ever-growing to-do list.
Compiled by The EngineerSomething wrong?How this is made
Why it matters
- exposure The fan-out that justifies automation is also the failure mode: a policy scoped one field too wide converts thousands of findings per second into thousands of revoke calls against live shares.
- decision Exception lists that lived in a runbook or a reviewer's head now have to be encoded as match conditions before enforcement is switched on, because the engine acts on every match.
- constraint Automatic retry makes the webhook path non-idempotent by default, so the receiving SOAR carries the deduplication work rather than the CASB pipeline.
When a finding is detected, the findings engine puts an orchestration message on a Cloudflare Queue, and a Worker consumer checks whether a policy configuration matches that finding [6]. A match creates a job, which the Worker hands to a remediations pipeline running on Cloudflare Workflows [6]. That match predicate is the safety boundary for the entire feature. The post does not list the attributes a policy can match on [13].
Cloudflare's own example is an organisation that prohibits public file sharing but exempts marketing staff who collaborate with external parties [10]. Under alerting, that permitted behaviour piles into a queue with hundreds of possible violations [10]. Under automation, a policy written to match every public share takes the marketing links with it. Marketing will notice before the security team does. Cloudflare says the engine handles matches automatically by executing the customer-configured action [16].
The scale argument cuts the same way. Cloudflare says a single misconfigured file-sharing policy across a Google Workspace tenant can generate thousands of findings in seconds, and that even a disciplined team faces a detection-to-remediation window measured in hours or days [4]. Thousands of findings in seconds is the reason to automate. It is also the fan-out of a policy scoped one field too wide, because the same path now issues up to one revoke call per finding [15].
The rate limit handling is the part I would call good engineering. If a vendor returns a rate limit error, the Workflow pauses for the appropriate backoff window and retries without dropping the job [8]. Jobs also survive process restarts, and retries are automatic [7]. Cloudflare's claimed outcome is that "The public share is revoked within minutes, keeping the backlog of findings clean and clear" [11]. End to end, the delay is detection time plus the match plus whatever backoff the SaaS API forces, so the minutes figure transfers only where that third term is near zero [14]. The post describes CASB scanning as continuous and gives no cadence [2].
Automatic retries have a second consequence on the webhook path. A policy can trigger a remediation action, send a webhook to a SOC, forward the event to a SOAR, or do both the remediation and the webhook [9]. A revoke replayed twice is harmless. A webhook replayed twice is a second ticket, unless the receiver deduplicates on an event identifier the post does not describe [7].
Cloudflare says the architecture is built entirely on the Cloudflare developer platform, the same platform available to every customer [12]. Queues, Workers and Workflows are the orchestration, so what CASB policies actually sell is the finding taxonomy and the SaaS API integrations behind the revoke. On the category, Cloudflare is blunt about its own product: it wrote that SSPM tools including Cloudflare CASB "have functioned as a passive alarm system", telling administrators what is wrong while leaving them an ever-growing to-do list [3]. Cloudflare shipped manual remediation actions from the dashboard earlier this year, and by its own account each finding still required a human to confirm and initiate the fix [5].
What to watch
- Whether Cloudflare publishes the policy match schema, including group exclusions, and any dry-run mode that logs what a policy would have revoked.
- Whether webhook deliveries carry an event identifier a SOAR can deduplicate on, given that Workflows retries automatically.
- Whether Cloudflare states a scan cadence for CASB findings, since the minutes-to-revoke claim rests on detection latency it describes only as continuous.