-
Notifications
You must be signed in to change notification settings - Fork 12
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
Change canonisation method from minimsation to something less intrusive #16
Comments
I fully agree. I understand JS might be slow in crypto so minizing then verifying signature seams easier, but come one, just do a hash of content, and then sign it. No minimizing required.
I was reading. everything before, and it was all nice, until this part. WTF. It imposes huge burden on development setup, build tools, and is going to break when the page and extensions are using different versions https://github.com/Swaagie/minimize that change output format slightly. Which is very likely to happen. |
Actually not really with the Web Crypto API, which is natively implemented in browsers and which I think this extension, uses. |
As mentioned in the README and in #15 (comment), this is not possible. You can't take the DOM content in a consistent manner across browsers. I don't remember the exact inconsistencies I got, but they were plentiful. I could maybe do some less aggressive, home-made, canonisation. I think the differences were not that crazy and I can probably play this cat-and-mouse game with browsers, I just hope it won't break on browsers I'm not testing on. I'm leaving this one open, but going to change the title a bit. |
From #15:
Once it's out in Chromium we can completely drop it, yes. At the moment it's also done for Firefox because the paged is only signed with one signature. The moment the whole versioning scheme described in #13 and #15 is implemented, we can just have two signatures. Original and minimised so we can also support old browsers (on the signed page side), or to be honest, we can probably just drop old version support at the moment because signed-pages is not yet widely used. |
Indeed drop old browser-support. BTW don't know how old the browsers actually are you support, but they have to support SRI, at least. And here is the issue link, again: https://bugs.chromium.org/p/chromium/issues/detail?id=487422 |
BTW why do you need that at all? Can't you just take the DOM content literally and that's it?
The text was updated successfully, but these errors were encountered: