feat(hh): random room password by default; join.sh syncs before connect

- lets-hack.sh: default PW is now `openssl rand -hex 12` (printed in the
  summary for sharing) instead of the well-known hardcoded `malware-bless`
- join.sh: drop the hardcoded password (uses $HH_PASSWORD or a no-echo
  prompt), and fast-forward pull from gitea+origin then `cargo build`
  before connecting so joiners run the latest code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
leetcrypt
2026-06-06 14:42:12 -07:00
parent 2c4a4f9a22
commit 70245cbd9d
2 changed files with 29 additions and 3 deletions
+5 -2
View File
@@ -53,7 +53,7 @@ environment (override any default):
SESSION tmux session name (default: hh-test)
HOST server bind host (default: 127.0.0.1)
PORT server port (default: 4173)
PW shared room password (default: malware-bless)
PW shared room password (default: random, openssl-generated)
THEME theme name (church | neon | crypt)
examples:
@@ -79,7 +79,9 @@ DEMO_WT="${HH_DEMO_WORKTREE:-/tmp/hh-demo-$DEMO_BRANCH}"
SESSION="${SESSION:-hh-test}"
HOST="${HOST:-127.0.0.1}"
PORT="${PORT:-4173}"
PW="${PW:-malware-bless}"
# Default room password: a fresh random secret per run (openssl), not a
# well-known hardcoded one. Set PW=... to pin a chosen/reproducible password.
PW="${PW:-$(openssl rand -hex 12)}"
SRV_LOG="/tmp/hh-${SESSION}-server.log"
SRV_PIDFILE="/tmp/hh-${SESSION}-server.pid"
THEMES_DIR="$HERE/themes"
@@ -224,6 +226,7 @@ done
tmux select-layout -t "$SESSION" tiled >/dev/null
echo "clergy: ${USERS[*]} · session: $SESSION · $HOST:$PORT · vestments: ${THEME:-church (default)}"
echo "room password: $PW (share with anyone joining; pin it with PW=... to reuse)"
echo "tear down later with: $0 --kill"
# 4. land in the clergy. From a plain shell we replace this process with `attach`.