Skip to content

pulse-memory: keep the store at 0600 on init and every open - #77

Merged
p10ns11y merged 2 commits into
mainfrom
ksp268-pulse-store-600
Nov 9, 2026
Merged

p10ns11y merged 2 commits into
mainfrom
ksp268-pulse-store-600

Conversation

@p10ns11y

@p10ns11y p10ns11y commented Nov 9, 2026

Copy link
Copy Markdown
Owner

KSP-268. The live pulse store was mode 644 (created before init set 0600, and open never narrowed it).

  • secure_store(path) in pulse_common: narrows the store and its -wal, -shm, -journal to 0600 when wider; never widens; rows untouched.
  • connect() (admit, retrieve, backfill, rank) and pulse_init_db.py call it.
  • tstack-state open does the same for an existing store, since it is the other admit path.
  • Tests: a 644 store with 644 sidecars is narrowed by admit and by init, rows and hashes unchanged; a 0400 store stays 0400; tstack-state narrows an existing 644 store. New tests fail on main.

@p10ns11y
p10ns11y force-pushed the ksp268-pulse-store-600 branch from f0172d2 to 260d8b7 Compare November 9, 2026 23:48
@p10ns11y
p10ns11y merged commit e372508 into main Nov 9, 2026
2 checks passed
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