Skip to content

Update Docker startup - #15

Closed
r2ckstardev wants to merge 1 commit into
btcpayserver:masterfrom
r2ckstardev:fix/durable-wallet-password-migration
Closed

r2ckstardev wants to merge 1 commit into
btcpayserver:masterfrom
r2ckstardev:fix/durable-wallet-password-migration

Conversation

@r2ckstardev

Copy link
Copy Markdown

Improves Docker startup handling and adds regression coverage.

@r2ckstardev
r2ckstardev force-pushed the fix/durable-wallet-password-migration branch from 7d2a039 to 4b1feac Compare September 14, 2026 05:43
@rockstardev
rockstardev requested a balanced review from Copilot September 14, 2026 05:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Recovery currently depends on an external Docker restart policy and can otherwise leave the container stopped.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Improves Docker recovery from interrupted wallet-password migrations while preserving wallet data and rotating macaroon credentials.

Changes:

  • Adds atomic pending-password persistence and recovery.
  • Recreates macaroon authentication data after interrupted migrations.
  • Adds Docker-based regression scenarios.
File summaries
File Description
docker-initunlocklnd.sh Adds resumable password migration and restart handling.
docker-entrypoint.sh Detects pending migrations and resets macaroon data.
tests/docker-password-migration.sh Tests legacy passwords, interruption recovery, and rotation.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docker-initunlocklnd.sh
Comment on lines +16 to +17
if [[ "${LND_DAEMON_PID:-}" =~ ^[0-9]+$ && "$LND_DAEMON_PID" == "$PPID" ]]; then
kill -TERM "$LND_DAEMON_PID"
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.

3 participants