Skip to content

Newbie question on the security of signing the url #621

Answered by DarthSim
Tokenyet asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

  1. It's highly recommended to put your imgproxy behind a cache or CDN so it will process each URL only once. When you sign your URLs, you don't allow an attacker to change the URL and bypass your cache. Also, it doesn't allow an attacker to change your URL to request a random image with random parameters, even if you don't use a cache.
  2. Signing the URLs on the front-end side is absolutely meaningless. Everything available to the browser available to an attacker. If you have a list of presets you're going to use, you can use a combination of IMGPROXY_ONLY_PRESETS + IMGPROXY_ALLOWED_SOURCES to somehow secure your imgproxy, but it's less secure than using signatures anyway.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@depoulo
Comment options

@DarthSim
Comment options

@depoulo
Comment options

@yob-yob
Comment options

Answer selected by Tokenyet
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants