Ownership challenge FAQ
Last updated Oct 22, 2026 The ownership challenge is a one-time verification that proves you have read access to a destination bucket before Cloudflare pushes logs to it. This mechanism prevents you from accidentally configuring a Logpush job that pushes data to a bucket you do not control.
How it works
When you create a Logpush job to a storage destination, Cloudflare requires you to prove ownership of that destination:
- You request an ownership challenge for your
destination_conf. - Cloudflare writes an encrypted JWT to an
ownership-challenge-<RANDOM>.txtfile in your bucket. - You read the token from your bucket and submit it with your job creation request.
- Cloudflare validates the token and creates the job.
For step-by-step instructions, refer to Manage Logpush with cURL.
What the challenge protects against
The ownership challenge primarily protects you from accidental misconfiguration. Without this verification, you could inadvertently configure a job to push to a bucket you did not intend—for example, pushing to a bucket that is actually owned by someone else.
The challenge also prevents malicious scenarios where someone could:
- Point a Logpush job at another customer's bucket
- Push bogus or malicious log data to that bucket
- Pollute or corrupt the victim's log storage
Note
You may find the ownership challenge cumbersome because it is unusual and difficult to script via Terraform. However, it exists to prevent costly mistakes.
Challenge token structure
The ownership challenge is an encrypted JSON Web Token (JWT) containing claims that bind it to a specific context. The token includes:
- Object type - Whether the job is zone-scoped, account-scoped, or tenant-scoped
- Object ID - The specific zone or account identifier
- Destination fingerprint - A hash of the bucket name and path, plus the endpoint for S3-compatible destinations
- Expiration - The token expires after 7 days
When you submit the challenge token, Cloudflare validates that all claims match your job creation request. This prevents the token from being reused for a different account, zone, or destination.
Security considerations
Can a compromised token be exploited?
In practice, an attack using a compromised ownership challenge token is extremely unlikely. An attacker would need:
- Access to your Cloudflare account (to match the object ID in the token)
- Knowledge of the exact bucket name and paths/prefixes (to match the destination fingerprint)
- To act within 7 days (before the challenge expires)
Your bucket's IAM/access controls and Cloudflare account security are the primary security layers, not the ownership challenge token.
Best practices
- Delete the challenge file after job creation - Once your Logpush job is created, you can safely delete the
ownership-challenge-<RANDOM>.txtfile from your bucket. - Restrict bucket permissions - Grant write access only to Cloudflare's service accounts. For AWS S3, grant
PutObjectpermission toarn:aws:iam::391854517948:user/cloudflare-logpush, or use an IAM role in your AWS account. For GCS, grantStorage Object Admintologpush@cloudflare-data.iam.gserviceaccount.com. - Monitor your Logpush jobs - Use the Logpush health dashboards to monitor job status and detect anomalies.
Which destinations require an ownership challenge?
| Destination | Ownership challenge required |
|---|---|
| AWS S3 | Yes (or use access key/secret key) |
| Google Cloud Storage | Yes |
| Azure Blob Storage | Yes |
| Sumo Logic | Yes |
| S3-compatible storage | No |
| HTTP endpoints | No |
| Datadog | No |
| Splunk | No |
| New Relic | No |
For destinations that do not require an ownership challenge, Cloudflare uses alternative authentication methods such as API keys or tokens.
Related resources
- API configuration
- Manage Logpush with cURL
- Logpush permissions
- Enable AWS S3 destination
- Enable GCS destination
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/logs/logpush/logpush-job/logpush-ownership-challenge/#page","headline":"Ownership challenge FAQ","description":"Understand the Logpush destination ownership challenge.","url":"https://developers.cloudflare.com/logs/logpush/logpush-job/logpush-ownership-challenge/","inLanguage":"en","image":"https://developers.cloudflare.com/logs/logpush/logpush-job/logpush-ownership-challenge/og.png?v=ce91f91db9eb5a6b","dateModified":"2026-10-22","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Control how Worker subrequests appear in Logpush. title: Subrequests image: https://developers.cloudflare.com/logs/logpush/logpush-job/subrequests/og.png?v=3450c57b7d8a965c
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/logs/llms.txt
Use this file to discover all available pages before exploring further.
Docs