Skip to content

Conversation

@Dakuan
Copy link
Contributor

@Dakuan Dakuan commented Dec 19, 2025

Summary by cubic

Guarded the row fetch endpoint so only builders can access internal dev-only tables. Non-builders now get a 404 in production instead of seeing dev-only tables. External tables are unaffected.

  • Bug Fixes
    • Check workspace DB for the table; if missing and user isn’t a builder, return 404.
    • Added test: BASIC role receives 404 when fetching a dev-only internal table in prod.

Written for commit f6b5b15. Summary will update on new commits.

@Dakuan
Copy link
Contributor Author

Dakuan commented Dec 19, 2025

@cubic-dev-ai review this pull request

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Dec 19, 2025

@cubic-dev-ai review this pull request

@Dakuan I have started the AI code review. It will take a few minutes to complete.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@Dakuan Dakuan marked this pull request as ready for review December 19, 2025 13:58
@Dakuan Dakuan requested a review from a team as a code owner December 19, 2025 13:58
@Dakuan Dakuan requested review from adrinr and removed request for a team December 19, 2025 13:58
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files


export async function fetch(ctx: UserCtx<void, FetchRowsResponse>) {
const { tableId } = utils.getSourceId(ctx)
if (!isExternalTableID(tableId)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be done in the internal.ts implementation, not here.

Copy link
Contributor Author

@Dakuan Dakuan Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm i did consider that, but felt authy concerns should be nearer the API boundary, lets chat monday!

@github-actions github-actions bot added the stale label Dec 26, 2025
@github-actions github-actions bot removed the stale label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants