Skip to content

Review fixes: rights in the write batch, login limit per /48, GitHub tokens scrubbed, a cut batch, Has, dead code, docs DevFo-OSS/17 - #15

Merged
srelon merged 7 commits into
mainfrom
review-fixes
Dec 4, 2026
Merged

srelon merged 7 commits into
mainfrom
review-fixes

Conversation

@srelon

@srelon srelon commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Closes the open items of the review audit:

  • Changes of another user (reset password, delete, end session, unlink Google, disconnect agent, update) are checked in their write batch against the user as stored.
  • The login limit counts an IPv6 /48 (50) and, once its table is full, lets new networks and emails share one count (100) instead of refusing them.
  • GitHub tokens (ghp_, gho_, ghu_, ghs_, ghr_, github_pat_) are scrubbed at ingest and redacted in agent prompts, also after a %XX escape.
  • A batch cut at shutdown while written one envelope at a time counts as dropped only what it did not store.
  • Collection.Has reads one key (the Bloom filter) and sees its batch's own writes.
  • Dropped the code for cleanup runs and backfills of databases this format cannot open.
  • SECRET_KEY, TRUSTED_PROXIES and MAX_DATABASE_SIZE described as the code has them.

Each fix has a test that fails without it; checked live on the dev server.

@srelon
srelon added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 91f0ac5 Dec 4, 2026
3 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.

1 participant