Skip to content

Fix table-scoped data source access - #29

Merged
intraq-dev-ai merged 1 commit into
mainfrom
fix/table-scoped-access
Jul 27, 2026
Merged

Fix table-scoped data source access#29
intraq-dev-ai merged 1 commit into
mainfrom
fix/table-scoped-access

Conversation

@intraq-dev-ai

Copy link
Copy Markdown
Owner

Summary

  • Filter scopedDataSourceForRead() tables through allowedTableIds.
  • Enforce table access inside readDataSourceTableRows() when an access policy is provided.
  • Add smoke regression tests for SQL editor schema, field-values, and direct row reads.

Issues

Fixes #11.
Fixes #12.

Validation

  • npx vitest run tests/smoke/table-scope-access.test.ts
  • npm run type-check --workspace @intraq/api
  • npm test

@intraq-dev-ai
intraq-dev-ai merged commit af26ca0 into main Jul 27, 2026
1 check passed
@intraq-dev-ai
intraq-dev-ai deleted the fix/table-scoped-access branch July 27, 2026 04:06
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.

Field-values APIs can read values outside allowed table scope Table-scoped access leaks hidden table schema in schema APIs

1 participant