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

Encrypting source URL (and filters) #1618

Open
allantatter opened this issue Nov 8, 2023 · 3 comments
Open

Encrypting source URL (and filters) #1618

allantatter opened this issue Nov 8, 2023 · 3 comments

Comments

@allantatter
Copy link

I have a valid Thumbor URL that works: https://thumbor.arvutitark.ee/xIPGHvXZ8VkGc8JPgCW0SqQ_imI=/trim/fit-in/800x800/filters:format(webp)/https%3A%2F%2Fstorage.googleapis.com%2Farvutitark-prod%2Fpublic%2Fmedia-hub-olev%2F2022%2F11%2F251940%2Forigina.jpg

Can the source URL be hidden by using the same SECURITY_KEY for encryption? So the URL would be smth like this instead: https://thumbor.arvutitark.ee/xIPGHvXZ8VkGc8JPgCW0SqQ_imI=/trim/fit-in/800x800/filters:format(webp)/xxxxxxxxxxx, where xxxxxxxxxxx is encrypted. Or even the entire path after the hash could be encrypted: https://thumbor.arvutitark.ee/xIPGHvXZ8VkGc8JPgCW0SqQ_imI=/xxxxxxxxxxx.

@OndrejIT
Copy link
Contributor

OndrejIT commented Mar 2, 2024

Hello, I've written a fully encrypted Thumbor-crypto handler by pycryptodome library. Url seems like this: http://127.0.0.1:8888/320x320/media/some-image-1094090107.jpg?tKLJtnWvsPqLJIi_fjBg0oDsK51zfGwWUBYHKf_5MREiG_MdLf4qHl_db2kYIaiY3f8E7DxlauwqqVbkw7SyBHHt9NkE

Currently, I use it for my project. If there is interest, I will write documentation on how to use it.

@mylselgan
Copy link

this will be a nice feature preventing misuse of the source image URL.

@rookiexxk
Copy link

I think you can resolve by nginx rewrite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants