docs(service-role): describe RLS bypass; fix copy script for i18n docs.json - #206
Merged
Conversation
…docs.json `asServiceRole` now bypasses entity RLS and field-level security entirely (backend rolled out via the `service-role-bypass-rls` flag). Reword JSDoc on the client and entities module to describe this directly, drop the obsolete "admin role" framing from agents/integrations/functions where the PR did not change behavior, and replace the User-list example comment with one that reflects the new semantics. Also fix `copy-to-local-docs.js` so it works with mintlify-docs's i18n `navigation.languages[].tabs` layout. The previous version crashed at the docs.json update step because it assumed the legacy top-level `tabs`. The new version walks every locale, locates the SDK Reference group by content (pages referencing `/sdk/docs/`), preserves each locale's translated group and subgroup labels, and points every locale at the same English mdx files (matching what the docs site shows in practice). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.34-pr.206.82a825ePrefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.34-pr.206.82a825e"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.34-pr.206.82a825e"
}
}
Preview published to npm registry — try new features instantly! |
cowchimp
approved these changes
Jun 25, 2026
cowchimp
left a comment
Collaborator
There was a problem hiding this comment.
looks good. see comments inline
…ions/functions A synthetic user is still used to process service-role requests; the PR only adds RLS bypass on top, and only for entity CRUD. Reframe these three module descriptions as "service role for backend code that needs elevated permissions" rather than implying there's no user context. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
asServiceRolebehavior: bypasses entity RLS and field-level security entirely (rolled out viaservice-role-bypass-rlsflag, on for all users as of 2026-06-22). Drops the obsolete "admin role" framing.copy-to-local-docs.jsto work with mintlify-docs's i18nnavigation.languages[].tabslayout. The previous version crashed at the docs.json update step because it assumed the legacy top-leveltabs. The new version walks every locale, locates the SDK Reference group structurally (by/sdk/docs/page paths), preserves each locale's translated group and subgroup labels, and points all locales at the same English mdx files.Backend PR that motivated the change: base44/apper#12161.
Paired docs PR: base44-dev/mintlify-docs#service-role-rls-bypass
Test plan
npm run create-docs-localruns cleanly against paired mintlify-docs worktreemintlify dev🤖 Generated with Claude Code