biscuit
biscuit
pg_biscuit : IAM-LIKE pattern matching with bitmap indexing
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2170 | biscuit | pg_biscuit | 2.2.2 | FTS | MIT | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
--s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | public |
| Requires | plpgsql |
| See Also | hll rum pg_textsearch |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.2.2 | 18 17 16 15 14 | pg_biscuit | plpgsql |
| RPM | PIGSTY | 2.2.2 | 18 17 16 15 14 | pg_biscuit_$v | - |
| DEB | PIGSTY | 2.2.2 | 18 17 16 15 14 | postgresql-$v-biscuit | - |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
el8.x86_64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
el8.aarch64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
el9.x86_64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
el9.aarch64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
el10.x86_64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
el10.aarch64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
d12.x86_64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
d12.aarch64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
d13.x86_64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
d13.aarch64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
u22.x86_64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
u22.aarch64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
u24.x86_64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
u24.aarch64 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | PIGSTY 2.2.2 | MISS | MISS |
Source
pig build pkg pg_biscuit; # build rpm/debInstall
Make sure PGDG and PIGSTY repo available:
pig repo add pgsql -u # add both repo and update cacheInstall this extension with pig:
pig install pg_biscuit; # install via package name, for the active PG version
pig install biscuit; # install by extension name, for the current active PG version
pig install biscuit -v 18; # install for PG 18
pig install biscuit -v 17; # install for PG 17
pig install biscuit -v 16; # install for PG 16Create this extension with:
CREATE EXTENSION biscuit CASCADE; -- requires plpgsqlUsage
biscuit (pg_biscuit) is a PostgreSQL extension that provides IAM-like pattern matching with bitmap indexing. It enables efficient matching of permission-style patterns against text values using a specialized bitmap index.
Features
- IAM-like pattern matching: Supports wildcard pattern matching similar to AWS IAM policy patterns
- Bitmap indexing: Uses bitmap indexes for fast pattern matching queries
- Permission evaluation: Evaluate whether a given action matches a set of permission patterns
Quick Start
CREATE EXTENSION biscuit CASCADE; -- requires plpgsql
-- Create a table with permission patterns
CREATE TABLE permissions (
id serial PRIMARY KEY,
pattern text NOT NULL
);
-- Insert IAM-like patterns
INSERT INTO permissions (pattern) VALUES
('s3:GetObject'),
('s3:*'),
('ec2:Describe*'),
('iam:Create*');Pattern Syntax
Biscuit supports IAM-style wildcard patterns:
*matches any sequence of characters?matches any single character- Exact strings match literally
Notes
- Requires the
plpgsqlextension (installed automatically withCASCADE) - Available for PostgreSQL 16, 17, and 18
- Licensed under MIT
Last updated on