Skip to content

Commit 28709b1

Browse files
committed
docs(SDB): add documentation on Row-Level Security MTA-5093
1 parent 02daafa commit 28709b1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

serverless/sql-databases/how-to/use-row-level-security.md renamed to serverless/sql-databases/how-to/use-row-level-security.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ categories:
1313
- serverless
1414
---
1515

16-
Row Level Security can be actived with Serverless SQL Database for a maximum 2 different roles having both read and write permissions. This can be useful to restrict access to subset of users with frameworks or tools such as [PostgREST](https://docs.postgrest.org/en/v12/).
17-
This requires setting up different [IAM permissions sets](https://www.scaleway.com/en/docs/identity-and-access-management/iam/reference-content/permission-sets/) for each role (**ServerlessSQLDatabaseFullAccess** or **ServerlessSQLDatabaseReadWrite** for one role, and **ServerlessSQLDatabaseDataReadWrite** for the other).
16+
Row-Level Security is a database security mechanism that allows access only to specific rows of a table to a user.
17+
18+
Row Level Security can be actived with Serverless SQL Database for a maximum 2 different roles having both read and write permissions. This can be used to restrict access to a subset of users with frameworks or tools such as [PostgREST](https://docs.postgrest.org/en/v12/).
19+
This requires setting up different [IAM permissions sets](/identity-and-access-management/iam/reference-content/permission-sets/) for each role (**ServerlessSQLDatabaseFullAccess** or **ServerlessSQLDatabaseReadWrite** for one role, and **ServerlessSQLDatabaseDataReadWrite** for the other).
1820

1921
<Macro id="requirements" />
2022

@@ -25,7 +27,7 @@ This requires setting up different [IAM permissions sets](https://www.scaleway.c
2527

2628
## Add sample data and create PostgreSQL Row Level Security
2729

28-
1. [Connect to your Serverless SQL Database](https://www.scaleway.com/en/docs/serverless/sql-databases/quickstart/#how-to-connect-to-a-database) with a PostgreSQLclient. For instance with psql:
30+
1. [Connect to your Serverless SQL Database](/serverless/sql-databases/quickstart/#how-to-connect-to-a-database) with a PostgreSQL client such as `psql`:
2931
```bash
3032
psql "postgres://[user-or-application-id]:[api-secret-key]@[database-hostname]:5432/[database-name]?sslmode=require"
3133
```

0 commit comments

Comments
 (0)