Skip to content

Remote Settings: keep signature verification atomic - #7582

Open
srkyn wants to merge 1 commit into
mozilla:mainfrom
srkyn:research/remote-settings-integrity
Open

Remote Settings: keep signature verification atomic#7582
srkyn wants to merge 1 commit into
mozilla:mainfrom
srkyn:research/remote-settings-integrity

Conversation

@srkyn

@srkyn srkyn commented Sep 4, 2026

Copy link
Copy Markdown

RemoteSettingsClient::sync() previously released the client lock between inserting fetched records and verifying the collection signature. A concurrent reader could therefore observe the new records before synchronization had finished.

This keeps the existing client lock through insertion, signature verification, reset, and retry. The regression test starts a reader while synchronization is in progress and confirms that records are not exposed before the operation completes.

Validation:

  • cargo test --locked -p remote_settings --features signatures
  • ./automation/tests.py changes

The repository automation completed successfully, including tests, clippy, formatting, and the changelog check. This does not change the public API or add dependencies.

Signed-off-by: David Sarkisyan <david@srkyn.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant