Skip to content
Discussion options

You must be logged in to vote

Yes, it is possible to limit which namespaces are displayed in the UI using OPA policies in Flipt, but your policy needs to define a viewable_namespaces rule. Flipt's authorization engine uses this rule to determine which namespaces a user can see, and the API/UI should only show those namespaces.

Here's an example of how you can structure your Rego policy:

package flipt.authz.v1
import rego.v1

default allow := false

# Define which namespaces are viewable for the user
viewable_namespaces := ["default", "my-team"]

allow if {
  input.request.namespace in viewable_namespaces
}

Or, for more dynamic control (for example, based on user roles):

package flipt.authz.v1
import rego.v1

default a…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by markphelps
Comment options

markphelps
Jun 9, 2025
Maintainer Author

You must be logged in to vote
0 replies
Comment options

markphelps
Jun 9, 2025
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant