Repository navigation
fix(privacy): protect private addresses adopted from sync - #489
Merged
Merged
Conversation
Deploying podnotes with
|
| Latest commit: |
3735fe8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c9f8ee82.podnotes.pages.dev |
| Branch Preview URL: | https://fix-protect-adopted-address.podnotes.pages.dev |
This was referenced Oct 15, 2026
This was referenced Oct 15, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Protect raw private feed addresses on disk as soon as PodNotes adopts a synced copy from an older device. The writer now tracks pending protection separately from document equality and queues its normal save, with a fresh read and the existing refusal and readback merge rules.
Fixes #488
Verification
count:writesmatches master for idle time and two settings edits. Both builds record 0, 1, 2 completed writes.npm run lint,npm run format:check,npm run typecheck,npm run build,npm run test,npm run test:tooling, andnpm run docs:buildunder Node 22. The application suite has 2,757 passing tests and tooling has 35.npm run test:e2epassed all 230 tests from a fresh vault on 1.14.4. On 1.13.7, 229 passed and one existing transcript-layout test timed out, then passed alone. Independent final privacy verification passed all 3 tests on 1.14.4. All 3 also passed in the floor suite.npm run sizereports 102,754 gzip bytes, up 47 from the measured master build and 246 below the limit.The local fixture is
http://priv3.supercast.com:<port>/feeds/FIX488_ADOPTED_SENTINEL. Logs, repeatable scripts, reviews and write observations record the full results.Mutation checks
Release impact
No data shape, public API or URI change. Devices still on 2.21.1 can continue writing raw addresses. The existing reference policy allocates a device-local secret on each raw read, so the fresh read adds an unused reference until startup cleanup. Reusing matching addresses is a separate follow-up.
Docs at release
None.
Note
Fix protection of private addresses adopted from synced settings files
DataFileWriter.applyExternalChangein writer.ts schedules that write even when the decoded document equals the in-memory settings, and no longer cancels the save timer while the rewrite is pending.DataFileWriter.writeMergedclears therewritePendingflag only after a successful write, and retries failed or refused writes instead of dropping the rewrite.Macroscope summarized 3735fe8.