Skip to content

Commit 7d41d13

Browse files
committed
Update rls.mdx
1 parent 38ea40a commit 7d41d13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlite-cloud/platform/rls.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Callout from "@commons-components/Information/Callout.astro";
1111
Row-Level Security (RLS) allows you to define fine-grained access control policies that determine which rows in a table a user can access. This ensures that users can only view or modify data they are authorized to see, enhancing data security and privacy.
1212

1313
<Callout type="note" title="RLS Scope">
14-
RLS rules only affect users who are authenticated using tokens. Admins, APIKEYs, or other non-token users are not restricted by RLS.
14+
RLS rules only affect users who are authenticated using [Access Tokens](/docs/access-tokens). Admins, APIKEYs, or other non-token users are not restricted by RLS.
1515
</Callout>
1616

1717
RLS is a powerful feature for building secure, multi-tenant applications. When combined with [SQLite Sync](https://github.com/sqliteai/sqlite-sync), it enables you to create robust **local-first apps** where user data is stored on the device for offline availability and superior performance.
@@ -213,7 +213,7 @@ This policy uses the `OLD` reference to check the value of the `status` column *
213213

214214
When using RLS in conjunction with [SQLite Sync](https://github.com/sqliteai/sqlite-sync), it's important to understand how they interact. The Sync protocol applies changes on a column-by-column basis, which can affect how `INSERT` and `UPDATE` policies are evaluated.
215215

216-
To accommodate this, SQLite Cloud offers two modes for handling RLS during sync operations, configurable via the `rls_mode` server setting.
216+
To accommodate this, SQLite Cloud offers two modes for handling RLS during sync operations, configurable via the `rls_mode` server setting using the SQLite Cloud builtin command `SET KEY rls_mode TO <value>`.
217217

218218
#### Default Mode (`rls_mode = 1`)
219219

0 commit comments

Comments
 (0)