Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Needs unseenet 0.6.6 (`unseenet>=0.6.6,<0.7`), which shares.
- **One look-up for all languages**: a check costs the same for nine languages as for
ninety (0.2 ms for an ordinary post).

### Fixed

- **The image reads its passphrase secrets when the files belong to the host's user** (mode
600, as the compose file suggests): the start script copies them for the watchman's user
while it is still root. Before, the watchman found no passphrase (unseenet#862).

## [0.2.0] - 2026-10-30

Needs unseenet 0.6.5 (`unseenet>=0.6.5,<0.7`), which makes the link cards; nodes need no update for it.
Expand Down
14 changes: 14 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ if [ "$(id -u)" = 0 ]; then
chown -R unseenet:unseenet "$DATA"
fi
chmod 700 "$DATA"
# A secret file is mounted as it is on the host (often root's, mode 600), so the
# watchman's user may not read it: hand a copy on in /tmp (a tmpfs), readable by it only.
for s in UNSEENET_VAULT_PASSPHRASE:unseenet_vault_passphrase; do
var=${s%%:*} name=${s#*:}
eval "f=\${${var}_FILE:-}"
for f in "$f" "/run/secrets/$name"; do
if [ -n "$f" ] && [ -r "$f" ]; then
(umask 077 && cat "$f" > "/tmp/$name")
chown unseenet:unseenet "/tmp/$name"
export "${var}_FILE=/tmp/$name"
break
fi
done
done
exec su-exec unseenet "$0" "$@"
fi
export HOME="$DATA"
Expand Down
Loading