Skip to content

Commit c1aaaf6

Browse files
committed
fix API docs
1 parent c58c2fc commit c1aaaf6

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -610,14 +610,10 @@ OPA needs to respond with the list of groups as follows:
610610

611611
```json
612612
{
613-
"result": {
614-
"groups": {
615-
"groups": [
616-
"admin",
617-
"developers"
618-
]
619-
}
620-
}
613+
"result": [
614+
"admin",
615+
"developers"
616+
]
621617
}
622618
```
623619

rego/hdfs.rego

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ allow if {
1212
action_sufficient_for_operation(acl.action, input.operationName)
1313
}
1414

15-
# HDFS group mapper
16-
# This will return the group data in this form:
17-
# "result": {
18-
# "groups": [
19-
# "admin",
20-
# "developers"
21-
# ]
22-
# ...
15+
# HDFS group mapper (this returns a list of strings)
2316
groups := {group |
2417
raw = groups_for_user[input.username][_]
2518
# Keycloak groups have trailing slashes

test/stack/11-rego-rules.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,7 @@ data:
2121
action_sufficient_for_operation(acl.action, input.operationName)
2222
}
2323
24-
# HDFS group mapper
25-
# This will return the group data in this form:
26-
# "result": {
27-
# "groups": [
28-
# "admin",
29-
# "developers"
30-
# ]
31-
# ...
24+
# HDFS group mapper (this returns a list of strings)
3225
groups := {group |
3326
raw = groups_for_user[input.username][_]
3427
# Keycloak groups have trailing slashes

0 commit comments

Comments
 (0)