Skip to content

Close atomic JSON write symlink window - #89

Merged
codeforester merged 1 commit into
mainfrom
enhancement/62-20260804-atomic-write-symlink-window
Aug 5, 2026
Merged

codeforester merged 1 commit into
mainfrom
enhancement/62-20260804-atomic-write-symlink-window

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

Remove the redundant post-replacement permission rewrite from atomic JSON writes. The temporary file is already created with private permissions and synced before replacement, so re-opening the destination by path is unnecessary and could create a symlink-swap window.

Validation

  • .venv/bin/python -m pytest -q tests/test_run_bundle_retention.py tests/test_app_run_metadata.py tests/test_app_log_retention.py
  • git diff --check

Follow-up hardening for #86/#62.

@codeforester
codeforester marked this pull request as ready for review August 5, 2026 00:05
@codeforester
codeforester merged commit 02715e8 into main Aug 5, 2026
32 of 34 checks passed
@codeforester
codeforester deleted the enhancement/62-20260804-atomic-write-symlink-window branch August 5, 2026 00:06
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