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

How to support images/image styles #11

Open
dawehner opened this issue Jun 1, 2016 · 1 comment
Open

How to support images/image styles #11

dawehner opened this issue Jun 1, 2016 · 1 comment

Comments

@dawehner
Copy link
Contributor

dawehner commented Jun 1, 2016

Let's talk about how / whether we want to support images and image styles.

Images should just work, as they aren't conceptually that different to private files.

Current challenge with image styles

When rendering an actual image style, styles prefix the URL like the following:
encryption://styles/$image_style/$schema/test/$destination/file.jpg
This leads to a couple of issues:

@dawehner
Copy link
Contributor Author

dawehner commented Jun 7, 2016

Maybe our entire approach to put the encryption profile into the path is broken.
An alternative could be to register one scheme per configured encryption profile:

  • encrypt_test
  • encrypt_aes2

Then every existing path based logic will simply work without any further workaround. One tricky question will be, is it actually possible to provide dynamic file schemes.

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

No branches or pull requests

1 participant