Skip to content

Harden local secret file handling - #269

Open
benthecarman wants to merge 2 commits into
lightningdevkit:mainfrom
benthecarman:codex/loupe-secret-files
Open

Harden local secret file handling#269
benthecarman wants to merge 2 commits into
lightningdevkit:mainfrom
benthecarman:codex/loupe-secret-files

Conversation

@benthecarman

Copy link
Copy Markdown
Collaborator

2 small issues found by loupe

  • Create log files with 0600 permissions.
  • Reject existing API key files unless they contain exactly 32 bytes.

Create new log files without group or world access so local users cannot
read node activity under the standard process umask.

This commit was created with assistance from Codex.
Require existing API key files to contain the same 32-byte key material
that the daemon generates. Truncated files must not enable weak HMACs.

This commit was created with assistance from Codex.
@ldk-reviews-bot

ldk-reviews-bot commented Sep 1, 2026

Copy link
Copy Markdown

👋 Thanks for assigning @tankyleo as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

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.

2 participants