openstreetmap / operations

OSMF Operations Working Group issue tracking
https://operations.osmfoundation.org/
98 stars 13 forks source link

Send back error tile for blocked sites #1065

Open grischard opened 2 months ago

grischard commented 2 months ago

Currently, blocked sites get a 403 error, which doesn't get displayed.

We should communicate clearly to sites lacking attribution what the issue is and how they can fix it. In practice, they often don't know what they are doing wrong (did we run into rate limits?) and end up switching to another provider, still with no attribution.

For attribution blocks, we should configure fastly to respond with an uncacheable friendly error image. The HTTP error code needs to be 200 for the image to display in Leaflet.

grischard commented 2 months ago

See also the French inspiration: https://lists.openstreetmap.org/pipermail/talk/2020-March/084299.html

pnorman commented 2 months ago

Blocked on setting up opentofu

grischard commented 1 month ago

@pnorman is this what we need? https://github.com/openstreetmap/opentofu-fastly

pnorman commented 1 month ago

@pnorman is this what we need? https://github.com/openstreetmap/opentofu-fastly

That currently just manages the attribution blocked list, not the config.

Firefishy commented 1 month ago

The opentofu code there is minimal viable product for managing just the attribution blocks. It can and should be expanded. Easiest method is to expand by resource by resource using imports iteratively building up the full linked config dependency "tree".