Skip to content

The image reads its passphrase secrets as root, then hands them on - #33

Merged
andlo merged 1 commit into
mainfrom
secret-as-root
Nov 1, 2026
Merged

andlo merged 1 commit into
mainfrom
secret-as-root

Conversation

@andlo

@andlo andlo commented Nov 1, 2026

Copy link
Copy Markdown
Member

A Docker secret file is mounted as it is on the host - often the host user's, mode 600, as the compose file suggests - so the service's user (uid 10001) could not read it after the start script dropped root, and the server found no passphrase. The start script now copies each secret to /tmp (a tmpfs) for that user while it is still root, and points *_FILE at the copy. Same fix as unseenet/unseenet#866 for the node; tested there with a built image and compose, and here with the start script in a container (read as 10001).

🤖 Generated with Claude Code

https://claude.ai/code/session_018Y3WsD4ydpXACrKhx6jMeW

…nseenet#862)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Y3WsD4ydpXACrKhx6jMeW
@andlo
andlo merged commit ed9ad41 into main Nov 1, 2026
2 checks passed
@andlo
andlo deleted the secret-as-root branch November 1, 2026 17:22
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