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

Add named assets and SRI hashes to assets #5720

Open
wants to merge 8 commits into
base: next
Choose a base branch
from
Open

Add named assets and SRI hashes to assets #5720

wants to merge 8 commits into from

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Nov 21, 2024

WHY

BEFORE - What was wrong? What was happening before this PR?

Previously backpack downloaded the assets without validating if the files had the correct hash. This has the potential issue that if the files where somewhat manipulated on the cdn servers, we didn't had a way to validate their integrity.
In addition to that, assets are now mapped. This allow us to push update to assets without having to change the files.

AFTER - What is happening after this PR?

All assets are mapped to corresponding strings, and contain a SRI hash for file integrity validation

Is it a breaking change?

No, since the previous @basset(url) still work as before.

@pxpm pxpm added the v7 label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants