Skip to content

fix(iam): Let organization viewers run resource searches - #302

Merged
yahyafakhroji merged 1 commit into
mainfrom
fix/org-viewer-search
Oct 6, 2026
Merged

yahyafakhroji merged 1 commit into
mainfrom
fix/org-viewer-search

Conversation

@yahyafakhroji

Copy link
Copy Markdown
Contributor

Problem
Organization viewers, editors, and owners get a 403 when the portal runs a project search. None of the assignable organization roles inherit a search.miloapis.com role, so no member holds search.miloapis.com/resourcesearchqueries.create.

Solution
Add search.miloapis.com-searcher to the viewer role's inherited roles. Editor and owner already inherit viewer, so they get it too. The searcher role grants only resourcesearchqueries.create, which is all a search needs. search.miloapis.com-viewer would also grant get, list, and watch on ResourceIndexPolicies, which members don't need.

Refs datum-cloud/cloud-portal#1619
Depends on milo-os/search#121

The viewer, editor, and owner roles inherited no search role, so members
held no resourcesearchqueries.create and every project search was
denied. Viewer now inherits the searcher role, which carries only that
permission. Editor and owner pick it up through viewer.
@yahyafakhroji
yahyafakhroji requested a review from a team as a code owner October 6, 2026 11:36
@yahyafakhroji yahyafakhroji self-assigned this Oct 6, 2026
@yahyafakhroji
yahyafakhroji merged commit 7c19e7f into main Oct 6, 2026
9 checks passed
@yahyafakhroji
yahyafakhroji deleted the fix/org-viewer-search branch October 6, 2026 12:13
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.

2 participants