Skip to content

authz: use `INT[]` to store permissions

Administrator requested to merge jc/perms-intarray into main

Created by: unknwon

Implements using INT[] in addition to roaring bitmap (BYTEA) to store permissions.

  • By default, the read path reads from the new format (intarray), and falls back to old format (roaring bitmap) if the new format has empty data.
  • Write path writes to tables in both formats.

This is a storage format transition step towards pure-SQL authz approach for more smooth experience for existing customers who are using repository permissions.

Fixes #11400

After merge

Merge request reports

Loading