AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 20 Bitcoin

db: support mode where we don't want to create the db.

Public commit record

What the developer wrote

Authored by Rusty Russell

85/100 · Strong
db: support mode where we don't want to create the db.

And gracefully fail for this case.

There's no such thing for Postgres, but that's because dbs need to be
set up by the admin.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit adds a new 'create' flag to Core Lightning's database-opening code. When create is false, the code tries to open an existing database but refuses to create a new one if it is missing, returning an error instead of crashing. This is a defensive change that makes the wallet startup behavior safer in some situations, but it does not by itself fix a known exploitable bug.

Recommended action

No immediate action required. Treat as a hardening/refactoring commit. If a future commit exposes the create=false mode to users, review that wiring for correct error handling and privilege assumptions.

Security signals we found

01

Adds defensive fail-closed mode for missing database

02

Removes unconditional database creation during open

03

Fixes sqlite3 connection leak on open error

04

No user-controlled create=false path introduced in this commit

Risk score

Why this scored 20/100

Our methodology →
Potential impact 3/30
Exploitability 2/25
Stealth signal 2/15
Affected reach 3/15
Confidence 7/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.