Skip to content

fix(config): fail gracefully on malformed startup config#129

Merged
barrydeen merged 2 commits into
barrydeen:masterfrom
Letdown2491:fix/config-startup-panics
Jun 18, 2026
Merged

fix(config): fail gracefully on malformed startup config#129
barrydeen merged 2 commits into
barrydeen:masterfrom
Letdown2491:fix/config-startup-panics

Conversation

@Letdown2491

Copy link
Copy Markdown
Contributor

Replace raw panics in the env-parsing helpers and nPubToPubkey with log.Fatalf, so a mistyped config value exits 1 with an actionable, key-named message instead of a status-2 panic crash-loop under a supervisor (StartOS/systemd/Docker).

Also reject non-npub bech32 in npub fields and redact malformed secret-looking values from logs.

Letdown2491 and others added 2 commits June 14, 2026 21:34
Replace raw panics in the env-parsing helpers and nPubToPubkey with
log.Fatalf, so a mistyped config value exits 1 with an actionable,
key-named message instead of a status-2 panic crash-loop under a
supervisor (StartOS/systemd/Docker).

Also reject non-npub bech32 in npub fields (e.g. a pasted nsec) and
redact malformed secret-looking values from logs.
@barrydeen barrydeen merged commit 8d26f9e into barrydeen:master Jun 18, 2026
1 check passed
@Letdown2491 Letdown2491 deleted the fix/config-startup-panics branch June 18, 2026 23:57
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