-
Notifications
You must be signed in to change notification settings - Fork 311
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
Adopt a portion of SRI for our implementation #1826
Merged
Martii
merged 1 commit into
OpenUserJS:master
from
Martii:Issue-259friendlierSRItooltipAndMeta
Jul 21, 2021
Merged
Adopt a portion of SRI for our implementation #1826
Martii
merged 1 commit into
OpenUserJS:master
from
Martii:Issue-259friendlierSRItooltipAndMeta
Jul 21, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* This was already implemented pre W3C recommendation in our form but normalizing to their syntax. * UI and DB remaining non-base64 encoded... semver limitation with extra characters that violate that spec. * Change caching mechanism... unfortunately traffic for a while will be increased while syncing with browsers. Also because spec doesn't use hex, which it probably should, the eTag header value will be bigger. Hashes, so far, are always "hex-able" by design of SHA but that could change in the future... who knows. * Base62 being dropped in favor of Base64 for cache mechanism. Should be okay with extra `+/` in base64 since that falls within ASCII limitations. * Any .user.js utilizing the .meta.json, or other language, will need to modify to check for the `sha512-` prefix and decode the value appropriately. * If .meta.json shows empty `hash` clear browser cache *(weird Fx issue perhaps)* * Bugfix on local copy of metadata script access... non-fatal atm just incorrect live copy referenced. Post OpenUserJS#1076 and applies to OpenUserJS#432 OpenUserJS#249 Ref(s): * https://developer.mozilla.org/docs/Web/HTTP/Headers/ETag * https://developer.mozilla.org/docs/Web/Security/Subresource_Integrity * https://w3c.github.io/webappsec-subresource-integrity/ * https://www.srihash.org/
Martii
added
bug
You've guessed it... this means a bug is reported.
enhancement
Something we do have implemented already but needs improvement upon to the best of knowledge.
UI
Pertains inclusively to the User Interface.
CODE
Some other Code related issue and it should clearly describe what it is affecting in a comment.
labels
Jul 21, 2021
Martii
added a commit
to Martii/OpenUserJS.org
that referenced
this pull request
Jul 21, 2021
* We already have the hex and default for Buffer is `utf`... so coerce it to `hex` * Open up script sending to this methodology. Minification output support may come later but if one relies on the hash and something changes in the backend it can easily foo script installation. Will have to ponder some more. Post OpenUserJS#1826
Martii
added a commit
that referenced
this pull request
Jul 21, 2021
* We already have the hex string and default for Buffer is `utf`... so coerce it to `hex` which makes it "binary" * Open up script sending to this methodology. Minification output support may come later but if one relies on the hash and something changes in the backend it can easily foo script installation. Will have to ponder some more. Post #1826 Auto-merge
Martii
added a commit
to Martii/OpenUserJS.org
that referenced
this pull request
Jul 21, 2021
* Use the "binary" form instead of the string form. Post OpenUserJS#1826
Merged
Martii
added a commit
that referenced
this pull request
Jul 21, 2021
* Use the "binary" form instead of the string form. Post #1826 Auto-merge
Martii
added a commit
to Martii/OpenUserJS.org
that referenced
this pull request
Jul 23, 2021
* Enough testing on main .user.js... seems solid. Post OpenUserJS#1826
Martii
added a commit
that referenced
this pull request
Jul 23, 2021
Martii
added a commit
to Martii/OpenUserJS.org
that referenced
this pull request
Jul 8, 2022
Post OpenUserJS#1076 OpenUserJS#1826 and applies to OpenUserJS#432 OpenUserJS#249 NOTE: * This increases the server load for more frequent accuracy
Martii
added a commit
that referenced
this pull request
Jul 8, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
You've guessed it... this means a bug is reported.
CODE
Some other Code related issue and it should clearly describe what it is affecting in a comment.
enhancement
Something we do have implemented already but needs improvement upon to the best of knowledge.
UI
Pertains inclusively to the User Interface.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
+/
in base64 since that falls within ASCII limitations.sha512-
prefix and decode the value appropriately.hash
clear browser cache (weird Fx issue perhaps)Post #1076 and applies to #432 #249
Ref(s):