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

secure/signed URL support #276

Open
pi0 opened this issue May 17, 2021 · 5 comments
Open

secure/signed URL support #276

pi0 opened this issue May 17, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented May 17, 2021

Some providers like imgix (https://docs.imgix.com/setup/securing-images) or Cloudinary (https://cloudinary.com/documentation/control_access_to_media) support signing URLs to disallow an attacker generating an unlimited amount of URLs causing downtimes, unprivileged access, resource abuse, etc.

To properly supporting this, we need a server only mechanism that can sign URLs (if exposing tokens to the client-side, an attacker can still access them to sign!). This can be possible with a serverMiddleware or server-only plugin/runtimeConfig (example idea: #205 (comment)). And introducing new set of usage limitations. (thus needs discussion before trying to implement)

@nathanchase
Copy link
Contributor

Here's ImageKit's signed URL documentation, for your consideration:
https://docs.imagekit.io/features/security/signed-urls#generating-signed-urls-on-your-own

@shadow81627
Copy link
Contributor

Glide signed URL documentation: https://glide.thephpleague.com/2.0/config/security/

@westende
Copy link

@pi0 Why the need to wait for Nuxt 3 as you stated in #385? What are the usage limitations you mention?

@BenjaminOddou
Copy link

@pi0, is it possible to call signed url through Nuxt Image with Imagekit set as provider ?

@everyx
Copy link

everyx commented Aug 31, 2023

@pi0 @danielroe, has there been any recent progress on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants