Skip to content

rls_oso

PoC postgres plugin to use oso authorization in row level security policies

rls_oso · PoC postgres plugin to use oso authorization in row level security policies

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101751rls_osorls_oso0.0.0SECUnknownRust

Usage

Sources:

rls_oso — Plugin to use Oso authorization library in postgres’ row level security policies. Use it when implementing the corresponding security, audit, or access-control workflow. Upstream describes it as a proof of concept.

Core Workflow

CREATE EXTENSION rls_oso;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • oso_configure_rls is an extension function.
  • oso_is_allowed is an extension function.
  • oso_reload() is an extension function.

Requirements and Caveats

  • The catalog records version 0.0.0.
  • The control file marks the extension as non-relocatable.
  • The control file does not require superuser-only installation.
  • Upstream describes the project as a proof of concept.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader