/plushcap/analysis/hasura/row-level-security-with-postgres-via-hasura-authz

Row Level Security with Postgres (via Hasura AuthZ)

What's this blog post about?

This article discusses the basics of Postgres Row-level Security (RLS) and how Hasura handles permission rules. RLS allows developers to control access to rows in a database table based on rules evaluated during query execution. To enable RLS, use the ALTER TABLE ... ENABLE ROW LEVEL SECURITY command. Policies are created using USING or WITH CHECK expressions, which return boolean values representing if permission is granted. Hasura's authorization system (AuthZ) provides a more efficient solution for handling permissions across multiple data sources and supports role-based access control rules for every field in the GraphQL schema.

Company
Hasura

Date published
Dec. 2, 2022

Author(s)
Arjun Yelamanchili

Word count
826

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.