Skip to content

security: restrict request-statistics writer privileges - #3171

Merged
shizn merged 1 commit into
mainfrom
codex/ossinsight-statistics-access-20261108
Nov 8, 2026
Merged

shizn merged 1 commit into
mainfrom
codex/ossinsight-statistics-access-20261108

Conversation

@shizn

@shizn shizn commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

The request-statistics writer only inserts rows, but the database fixture also grants it UPDATE and DELETE. Restrict the fixture to SELECT/INSERT, move fixture cleanup to the disposable database's maintenance connection, and verify that the runtime account cannot update/delete existing records or alter/truncate/drop the table. The actual recorder and collection aggregation continue to run under the restricted grant.

Add an operations procedure for applying the equivalent targeted revoke to verified deployment principals, checking inherited grants and shared consumers, and validating new connections. Document the separate historical-data decision, partition boundaries, resumable work and backup/recovery requirements. This does not apply production grants, set a retention period or remove historical data, and does not claim an immutable audit store.

Validation: Node 24.22.1 / pnpm 10.29.3; API, pipeline, prefetch and shared builds pass; 589 security tests and nine real TiDB/Redis/CLI tests pass. Production access checks were read-only and returned metadata only.

Advances #3164. Keep it open for production privilege rollout and the historical-data/backup work.

@vercel

vercel Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ossinsight-docs Ready Ready Preview Nov 8, 2026 3:16pm UTC
ossinsight-web Ready Ready Preview Nov 8, 2026 3:16pm UTC

Request Review

@shizn
shizn marked this pull request as ready for review November 8, 2026 15:24
@shizn
shizn merged commit 7753800 into main Nov 8, 2026
5 checks passed
@shizn
shizn deleted the codex/ossinsight-statistics-access-20261108 branch November 8, 2026 15:24

This branch was successfully deployed

2 active deployments
Preview – ossinsight-web — e3bfe9e2 Deployed Nov 8, 2026 by vercel[bot]
Preview – ossinsight-docs — e3bfe9e2 Deployed Nov 8, 2026 by vercel[bot]
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