Skip to content

Limit Explorer profile reads to an explicit public projection - #3199

Open
shizn wants to merge 2 commits into
mainfrom
fix/limit-explorer-user-columns
Open

shizn wants to merge 2 commits into
mainfrom
fix/limit-explorer-user-columns

Conversation

@shizn

@shizn shizn commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Expose the profile fields documented for Explorer through a dedicated read-only projection. Existing SQL can reference github_users with its original qualifiers, aliases, joins and CTEs. The API, worker and web checks reject a direct grant on the underlying profile table.

Install the view with a durable definer and provision an analytics reader with SELECT on the view before switching each service. Review existing cached and published results during rollout. The change affects new executions and does not rewrite historical results.

Verified the shared package build, 591 API security tests, 41 web tests, and an isolated TiDB integration test with the actual reader account. The integration verifies its grants, all ten wildcard output fields and a nested query.

Integration update (63eabe4): both ordinary and account-filtered playground queries read the public profile view. An isolated TiDB 8.5.1 reader with SELECT on that view and no grant on the underlying user table returned only the ten projected columns and only visible accounts. Both TiDB integration suites, 662 API security tests and 91 web security tests passed. Install the definer view and grants before rollout.

@vercel

vercel Bot commented Nov 28, 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 29, 2026 5:00pm UTC
ossinsight-web Ready Ready Preview Nov 29, 2026 5:00pm UTC

Request Review

This branch was successfully deployed

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