Skip to content

Commit 5ed707d

Browse files
committed
updated comments
1 parent b0f1f9c commit 5ed707d

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

rego/nifi_rules.rego

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# DESCRIPTION
2+
# This file is the ENTRYPOINT of the rego rules.
3+
#
4+
# In general "implicit" means something is done without being set by the administrator
5+
# like automatic inheritance or a value not set at all
6+
#
7+
# In general "explicit" means something is explicitly set by the administrator
8+
# like an overwriten inheritance or set permissions in general
9+
110
package nifi
211

312
import rego.v1
@@ -6,6 +15,7 @@ import data.nifi_inp
615
import data.nifi_glob
716
import data.nifi_comp
817

18+
# default return values
919
default allow = {
1020
"allowed": "unknown",
1121
"dumpCache": true
@@ -33,7 +43,7 @@ allow := {
3343
nifi_glob.global_policy_user_write
3444
}
3545

36-
# check for full permission
46+
# check for full permission when action is read
3747
allow := {
3848
"allowed": "true",
3949
"dumpCache": true
@@ -43,6 +53,7 @@ allow := {
4353
nifi_glob.global_policy_user_full
4454
}
4555

56+
# check for full permission when action is write
4657
allow := {
4758
"allowed": "true",
4859
"dumpCache": true

0 commit comments

Comments
 (0)