Skip to content

Close atomic JSON write symlink window - #88

Closed
codeforester wants to merge 1 commit into
mainfrom
security/62-20260804-atomic-write-symlink-window
Closed

codeforester wants to merge 1 commit into
mainfrom
security/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:04
@codeforester

Copy link
Copy Markdown
Contributor Author

Recreating on the issue's enhancement branch category so branch policy matches #62.

@codeforester
codeforester deleted the security/62-20260804-atomic-write-symlink-window branch August 5, 2026 00:05
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