Open Parsifal-M opened 1 month ago
Just throwing my two cents here; instead single user or group, you might want to add the config as an array. And also it's not only users or groups that notifications support - it can be any entity which the notifications backend will resolve to actual users receiving the notification (users as users, groups by their memberOf relation and other entities by their owner).
But anyways it's good idea to have it here. Possibly for people using the devtools, there could be a config value to disable notifications from OPA plugin, WDYT?
Also pinging @awanlin here.
Is your feature request related to a problem? Please describe. Something that came to mind when looking into #218 is that if you fall back to say a deny/allow/fail you probably want to be notified that there could be an issue with OPA.
You could set a config value under here once we add
policyFallback
we could add another value maybenotifyGroup
or/andnotifyUser
and have them receive notifications that there is an issue.Describe the solution you'd like Using the notifications framework and based on advice by @drodil we could do something like:
Describe alternatives you've considered I think we can always go for Option 1 initially then also look at adding option 2 later on if we can.
Additional context N/A