Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guarded Static Assets #1161

Closed
Silic0nS0ldier opened this issue May 11, 2021 · 2 comments
Closed

Guarded Static Assets #1161

Silic0nS0ldier opened this issue May 11, 2021 · 2 comments
Labels
features - miscellaneous Generic feature request

Comments

@Silic0nS0ldier
Copy link
Member

In an authenticated system there is often a need to serve static assets/content that not all audiences should have access to. Not all scenarios have identical requirements, however from a technical standpoint there is a significant degree of overlap.

The common problems to solve for are;

  • Ensuring a high level of performance (as close to standard static file serving as possible)
  • Scaling (static assets are typically numerous, and will more easily overwhelm the server)
  • Maximising code reuse (currently everyone has to invent their own solution)
  • Quick to implement (a quick implementation currently means forgoing performance and scaling issues)
@Silic0nS0ldier Silic0nS0ldier added the features - miscellaneous Generic feature request label May 11, 2021
@lcharette
Copy link
Member

Could a special route guard be enough? I feel it’s one of those rare case scenario that could easily be fixed with the dev adding a custom route for the assets. Said asset would then only be needed to be backlisted from the default asset route?

how would protected assets in the public folder be adressed in production?

@alexweissman
Copy link
Member

In the past I've seen this implemented on FB and other platforms with a temporary copy of the asset in question that expires after a certain time period. Coupled with a long, unguessable filename, it's effectively inaccessible to anyone without the link. I.e. knowledge of the URL functions as a one-time temporary access token.

@lcharette lcharette closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features - miscellaneous Generic feature request
Projects
None yet
Development

No branches or pull requests

3 participants