-
Notifications
You must be signed in to change notification settings - Fork 229
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
Remote settings: add signature verification support #6534
Remote settings: add signature verification support #6534
Conversation
a46bce7
to
20d1058
Compare
ab04265
to
c25a036
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! A few cleanup comments.
I tried to spot if we can have a Signature
struct, and impl
the functions inside signatures.rs
, but maybe that's not needed? I would then maybe change the module/file name to signature_utils.rs
. But just a suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I don't understand all the signature stuff, but I like how it's organized.
I left some suggestions that you can take or leave. My only real concern is with the mock_instant
dependency. If that's helping a lot in the tests, let's keep it, but if not I'd rather remove it and not have to go through the auditing process.
"{0}: apply {1} change(s) locally.", | ||
self.collection_name, | ||
changeset.changes.len() | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, there's also error_reporting::breadcrumb!
which will log, but also set a breadcrumb on any sentry errors. I don't know if this would be useful there, but I just wanted to point it out.
f4c6c9a
to
837f4d1
Compare
837f4d1
to
d713cbc
Compare
.verify_and_get()
which will verify signature before returning cache content --> https://bugzilla.mozilla.org/show_bug.cgi?id=1940908Pull Request checklist
[ci full]
to the PR title.Branch builds: add
[firefox-android: branch-name]
to the PR title.