-
Notifications
You must be signed in to change notification settings - Fork 152
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
use canonical json form for signed responses #1112
Comments
Kindly assign this task to me |
Hi, please feel free to work on the issue and open a PR when you feel it is ready. |
Could I have more info about this issue ? @bhearsum @gabrielBusta |
This issue boils down to the fact that the JSON responses we return are not deterministic: it is possible that we may return exactly the same data but in a different order for different requests. Fixing it requires ensuring the |
Currently, we don't have any guarantees that our JSON responses will be bit-for-bit the same for the same request. This means that any time the response format changes, we'll have to generate additional, possibly unnecessary, signatures (because we use the hashed, dumped-to-a-string, json as our cache key).
Something like https://github.com/Kinto/kinto-signer/blob/master/kinto_signer/canonicaljson.py or https://pypi.org/project/canonicaljson/.
Thanks to glasserc for the idea and pointers.
(Imported from https://bugzilla.mozilla.org/show_bug.cgi?id=1590609)
The text was updated successfully, but these errors were encountered: