gofractally / psibase

Open source protocol enabling communities to easily self-host web applications
https://docs.psibase.io
MIT License
28 stars 7 forks source link

Prevent uploading overshadowed artifacts #784

Closed James-Mart closed 2 months ago

James-Mart commented 4 months ago

If a service has a registered http server, then it should upload artifacts to its own server, rather than to the default sites server. Any artifacts uploaded to sites will never be served since requests will already be proxied to the registered server.

Therefore, this PR updates the sites HTTP server to assert if it detects that the user is trying to upload such overshadowed artifacts.

CC @cool-ant

swatanabe commented 4 months ago

I though we were planning to do the opposite and always use sites for static content, so we can have a single unified file manager.