python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Rego function to define variables
For several rules, we need to define the same set of variables. In the example, these are "ns", "externaldns", "svc", "nssvc". How could we take these definitio...
carrotcakeslayer
Votes: 0
Answers: 1
How to I combine the results of multiple rules
I have 3 roles and I am trying to return what actions a user can do based on the assigned roles.
Playground: https://play.openpolicyagent.org/p/5gN7ObojXh
The first part should check if the object bei...
Bill Mair
Votes: 0
Answers: 1
OPA rego policy to block access to kubernetes namespace
I am trying to write a policy that blocks permission for specific users to a list of specific kubernetes namespaces. This is what I have so far, it works for singular user/namespace but I need one tha...
Ken L
Votes: 0
Answers: 1
OPA authorization policies with scopes and roles
I'm using Open Policy Agent as an authorization component together with OIDC enabled apps.
I have input from the apps in the format:
{
"token": {
"scopes": [
...
onlyteo
Votes: 0
Answers: 1