-
Notifications
You must be signed in to change notification settings - Fork 155
gateway: dedicated error type for denylists #591
Copy link
Copy link
Open
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps updif/mediumPrior experience is likely helpfulPrior experience is likely helpfulkind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featuretopic/gatewayIssues related to HTTP GatewayIssues related to HTTP Gateway
Metadata
Metadata
Assignees
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps updif/mediumPrior experience is likely helpfulPrior experience is likely helpfulkind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featuretopic/gatewayIssues related to HTTP GatewayIssues related to HTTP Gateway
Right now we don't use proper error types to convey that some content requested by a gateway was blocked. Instead we have this string based checking tied to nopfs
boxo/gateway/errors.go
Lines 211 to 216 in b101ba0
@MichaelMure recently let me know that:
So it seems to me like this should be bundled into boxo tooling.
@MichaelMure let me know if there's any context I missed.
cc @lidel