News for hackers. Stuff that matters.
Re:Run JavaScript on Cloudflare with Workers by sitepodmatt on Tuesday March 13, 2018 @09:51AM (#16576048)
This is awesome.

I guess the uses are endless. Debug some webhook endpoints by duplicating the request to a private requestbin - granted this isn't the right level to do this but sometimes we're working with legacy setups. Add missing json fields that an API broke for some client - again not ideally level to handle but sometimes we bandaid it. Send an API auth spammer gigs of random garbage because chances are their shitty client doesn't have any limitations - granted after 14.9 seconds you'd need to subrequest to your own garbage generating origin - or a 10gb garbage file somewhere

My uses would mainly be live debugging where we don't have a perfect stack (i.e. nearly all the time).

Re:Run JavaScript on Cloudflare with Workers by zackbloom on Tuesday March 13, 2018 @10:55AM (#16576597)
I hate to say this, but you can send more garbage than that. Subrequests have to be begun within 15 seconds, but they themselves can stream data for far longer. We actually support the TransformStream API to allow you to stream your garbage back and not keep it in memory as well.

Beyond that, we support the WebCrypto API, so you are welcome to generate a near infinite amount of cryptographically secure random garbage, and we'll even help out with some from our lava lamps [1].

1- https://www.fastcodesign.com/90137157/the-hardest-working-of...

Re:Run JavaScript on Cloudflare with Workers by StudentStuff on Tuesday March 13, 2018 @03:06PM (#16578831)
I can't even load the page, so your miles ahead of me!

If anyone at Cloudflare cares to take a look, here's what I get:

> Server Error

> Our network is literally on fire

> Ray ID: 3fb0bf524995797f

> Your IP address: 172.58.40.122

> Error reference number: 502

> Cloudflare Location: Seattle

2nd try had an Error reference number of 524, with everything else being the same.

Shenanigans like this are why I stopped using Cloudflare on my websites, better to have something I can debug and avoid a party MitM all my connections, than to gain a fleeting bit of "reliability" or "security" that Cloudflare supposedly offers.

Re:Run JavaScript on Cloudflare with Workers by kentonv on Tuesday March 13, 2018 @03:28PM (#16578997)
I believe "Our network is literally on fire" is an error from Ghost.io, the platform we use to host our blog.
Re:Run JavaScript on Cloudflare with Workers by StudentStuff on Friday March 16, 2018 @07:09PM (#16604637)
Shouldn't your edge be caching this static article? I don't see why each page needs to be custom generated...
Re:Run JavaScript on Cloudflare with Workers by kentonv on Friday March 16, 2018 @10:31PM (#16605313)
It does cache, yes. But there's a TTL on the cache since we want to be able to make updates to the page if needed.