Skip to content

store: make the SQLite journal mode configurable - #2

Merged
cybersecurity merged 3 commits into
OpenCommunityEdition:mainfrom
l1mey112:store-configurable-journal
Nov 12, 2026
Merged

cybersecurity merged 3 commits into
OpenCommunityEdition:mainfrom
l1mey112:store-configurable-journal

Conversation

@l1mey112

Copy link
Copy Markdown
Contributor

Fleet hardcodes SQLite journal_mode(WAL), which relies on shared-memory and POSIX locking that is unreliable on NFS/SMB and can leave fleet.db malformed after an interrupted write or pod restart.

This adds FLEET_DB_JOURNAL / --db-journal with wal (default, unchanged), delete, truncate and persist; store.Open keeps the WAL default, store.OpenWithJournal validates the mode, and all serve/CLI database opens use it.

@cybersecurity
cybersecurity merged commit 334bc9f into OpenCommunityEdition:main Nov 12, 2026
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