cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

EW-8589: Add documentation for allow_custom_ports workers compatibility flag

Open danlapid opened this issue 1 year ago • 6 comments

Summary

Add documentation for allow_custom_ports workers compatibility flag image

danlapid avatar Aug 12 '24 15:08 danlapid

@irvinebroque hopefully a little better now, for convenience I added a screenshot to the PR description and I'll keep it updated with the CR.

danlapid avatar Aug 12 '24 15:08 danlapid

It looks like there's currently no flag to disable this, once it becomes default? We should always define a disable flag. (Admittedly it's hard to imagine why someone would want to disable this one but we should probably be consistent.)

kentonv avatar Aug 12 '24 16:08 kentonv

It looks like there's currently no flag to disable this, once it becomes default? We should always define a disable flag. (Admittedly it's hard to imagine why someone would want to disable this one but we should probably be consistent.)

Well this is confusing, according to https://github.com/cloudflare/workerd/blob/main/src/workerd/io/compatibility-date.capnp#L60-L61 "Most features should not have a disable-flag defined unless we get requests from customers."

Also, I was of the impression we want to phase out the previous behaviour as it was confusing and have everyone eventually move over the to more logical behaviour where their custom ports are respected.

danlapid avatar Aug 12 '24 16:08 danlapid

Well this is confusing, according to https://github.com/cloudflare/workerd/blob/main/src/workerd/io/compatibility-date.capnp#L60-L61 "Most features should not have a disable-flag defined unless we get requests from customers."

Oh... huh... I'm surprised by that comment... but I probably wrote it. :sweat_smile:

It looks like the comment is very old and in practice we have been assigning disable flags to everything.

kentonv avatar Aug 12 '24 16:08 kentonv

Should have disable flag

irvinebroque avatar Aug 12 '24 17:08 irvinebroque

https://github.com/cloudflare/workerd/pull/2521 added a disable flag, this PR is updated accordingly.

danlapid avatar Aug 12 '24 17:08 danlapid

@cloudflare/pcx-technical-writing is there anything missing here to merge this?

danlapid avatar Aug 19 '24 09:08 danlapid