Skip to content

Commit 7f5ffb9

Browse files
authored
Dictionary (New Word): Row-Level Security (RLS) (#119)
# Word #### Row-Level Security (RLS) # Meaning/Definition Row-Level Security (RLS) is a database feature that controls access to specific rows in a table based on the attributes of the user making the query. It allows fine-grained access control, ensuring that users can only view or manipulate data they are authorized to access. RLS is commonly used in databases to enforce security policies dynamically. Instead of creating multiple tables or views for different users or roles, RLS applies rules or filters at the row level to restrict access. This is achieved by associating security policies with the table, which are evaluated for each query. For example, in a multi-tenant application, RLS can ensure that users only access the rows corresponding to their organization or tenant. Similarly, in an employee database, RLS can restrict employees to only view their own records.
1 parent 391ce92 commit 7f5ffb9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: ../../layouts/word.astro
3+
title: "Row-Level Security (RLS)"
4+
---
5+
Row-Level Security (RLS) is a database feature that controls access to specific rows in a table based on the attributes of the user making the query. It allows fine-grained access control, ensuring that users can only view or manipulate data they are authorized to access.
6+
7+
RLS is commonly used in databases to enforce security policies dynamically. Instead of creating multiple tables or views for different users or roles, RLS applies rules or filters at the row level to restrict access. This is achieved by associating security policies with the table, which are evaluated for each query.
8+
9+
For example, in a multi-tenant application, RLS can ensure that users only access the rows corresponding to their organization or tenant. Similarly, in an employee database, RLS can restrict employees to only view their own records.

0 commit comments

Comments
 (0)