warrant-dev / warrant

Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.
https://warrant.dev
Apache License 2.0
1.15k stars 43 forks source link

Filter query results by the specified subject type(s) when selecting subjects #283

Closed kkajla12 closed 10 months ago

kkajla12 commented 10 months ago

Describe your changes

When selecting a set of subjects using a query like select member of type user for permission:A, the query API returns results of types other than just user. This PR updates the query API to only return results of the specified subject type(s) if specified.

Issue number and link (if applicable)

N/A