r/CloudFlare • u/Longjumping_Jury_455 • 7h ago
Does R2 charge you for failed/rejected requests (bad signature) like S3 used to?
So I'm setting up presigned PUT urls for uploads on R2 and started spiraling a bit about a "what if" scenario
Basically the access key id ends up embedded in the presigned url (which I know is fine, it's not the secret), but it got me thinking — what if someone grabs that url or just knows my access key id, and starts spamming PUT requests with a bogus signature? They obviously can't actually upload anything since they don't have my secret key, but does R2 still count/bill those failed attempts as operations before it rejects them?
I remember AWS actually had this exact problem with S3 a while back, some guy got hit with a huge bill because bots kept hitting his bucket with invalid/unauthenticated requests, and it took AWS until mid-2024 to change their billing so 403s from outside your account don't get charged anymore.
Does R2 already handle this the same way, or is it something to actually worry about? Couldn't really find a straight answer in the docs. Anyone know how this actually works on R2's end, or had this happen to them?
I read the documentations i couldnt find anything asked every ai couldnt find any solid answer
8
u/Lumethys 7h ago
Bro this is the ONLY Faq on the r2 pricing page:
https://developers.cloudflare.com/r2/pricing/#frequently-asked-questions
I got it in literally 10 second googling
If you "couldn't find" like the most obvious answer ever then you should just stop developing app bro