Skip to content

fix(aidbox): make admin-role-* policies order-independent - #75

Open
Seryiza wants to merge 1 commit into
mainfrom
fix/admin-role-contains-roles
Open

fix(aidbox): make admin-role-* policies order-independent#75
Seryiza wants to merge 1 commit into
mainfrom
fix/admin-role-contains-roles

Conversation

@Seryiza

@Seryiza Seryiza commented Aug 28, 2026

Copy link
Copy Markdown
Member

matcho matches array patterns positionally, so "roles": [{"type":"admin"}] only matched users whose roles array starts with admin; a user with roles like [data-engineer, admin] got 403 on all admin-role-* policies.

Switch to "roles": {"$contains": {"type":"admin"}} (order-independent), 12 policies in the quickstart admin init-bundle.

matcho matches array patterns positionally, so "roles": [{"type":"admin"}]
only matched users whose roles array starts with admin; a user with roles
like [data-engineer, admin] got 403 on all admin-role-* policies.

Switch to "roles": {"$contains": {"type":"admin"}} (order-independent),
12 policies in the quickstart admin init-bundle.
@Seryiza Seryiza self-assigned this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant