ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข3mo agoโ€ข
4 replies
Andri Sig.

R2 S3 API returns 403 Access Denied for all operations

๐ŸŒCDNโš”๏ธSecurity
I cannot access my R2 bucket via the S3 API. All operations return 403 Access Denied.

What works:

Uploading files via the Cloudflare dashboard UI
Public bucket URL serves files correctly

What fails:

All S3 API operations (ListBuckets, PutObject, GetObject, HeadBucket)
Tested with boto3, s3cmd, and rclone - all return Access Denied
Created multiple new tokens with fresh credentials - same result

The credentials are valid (no InvalidAccessKeyId error), but every operation returns AccessDenied.

Please advise.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cloudflare R2 suddenly returns 403
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
API support for creating R2 S3 credentials
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
R2 S3 API Custom Domain
Cloudflare DevelopersCDCloudflare Developers / general-help
17mo ago
Keep getting access denied on s3
Cloudflare DevelopersCDCloudflare Developers / general-help
11mo ago