Skip to content

Secure Keeper Persistence Files with Restricted File Permissions - #691

Open
Damilorlar wants to merge 3 commits into
Sub-Rosa-Issue:mainfrom
Damilorlar:feature/issue-681-permissions
Open

Damilorlar wants to merge 3 commits into
Sub-Rosa-Issue:mainfrom
Damilorlar:feature/issue-681-permissions

Conversation

@Damilorlar

Copy link
Copy Markdown
Contributor

#closes #681

Keeper persistence files may contain sensitive operational state that should not be accessible to other users on the host. This project aims to improve file security by restricting access to checkpoint, queue, and store files.

Newly created files should use restrictive permissions, while existing files should have their permissions tightened when safely opened. Windows-specific behavior should also be documented and covered by tests.

Acceptance Criteria:
- Create new checkpoint, queue, and store files with 0600 permissions.
- Tighten permissions on existing files when safely opened.
- Document and test Windows-specific behavior.
- Add permission-focused tests.

@drips-wave

drips-wave Bot commented Nov 25, 2026

Copy link
Copy Markdown

@Damilorlar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…with execSync to fix ENOENT errors

The test was failing with spawnSync node ENOENT errors because the
import.meta.url path resolution didn't work correctly in the vitest
environment. Changed to use a simple relative path with process.cwd()
and execSync, which reliably executes the script directly.
@Damilorlar
Damilorlar force-pushed the feature/issue-681-permissions branch from 202e2c3 to 6b59b81 Compare November 25, 2026 06:52
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.

keeper(high/easy): create checkpoint and queue files with owner-only permissions

1 participant