Skip to content

Commit f6bae85

Browse files
committed
update rego rules with feedback from Lars
1 parent c1aaaf6 commit f6bae85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rego/hdfs.rego

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ action_sufficient_for_operation(action, operation) if {
5353
}
5454

5555
action_hierarchy := {
56-
"full": ["full", "rw","ro"],
56+
"full": ["full", "rw", "ro"],
5757
"rw": ["rw", "ro"],
5858
"ro": ["ro"],
5959
}
@@ -115,7 +115,6 @@ action_for_operation := {
115115
"listSnapshottableDirectory": "ro",
116116
"listStatus": "ro",
117117
"listXAttrs": "ro",
118-
"metaSave": "rw",
119118
"mkdirs": "rw",
120119
"modifyAclEntries": "full",
121120
"modifyCacheDirective": "rw",
@@ -160,6 +159,7 @@ admin_actions := {
160159
"enableRestoreFailedStorage": "full",
161160
"finalizeUpgrade": "rw",
162161
"getDatanodeStorageReport": "ro",
162+
"metaSave": "ro",
163163
"monitorHealth": "ro",
164164
"refreshNodes": "rw",
165165
"rollEditLog": "rw",

test/stack/11-rego-rules.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ data:
6262
}
6363
6464
action_hierarchy := {
65-
"full": ["full", "rw","ro"],
65+
"full": ["full", "rw", "ro"],
6666
"rw": ["rw", "ro"],
6767
"ro": ["ro"],
6868
}
@@ -124,7 +124,6 @@ data:
124124
"listSnapshottableDirectory": "ro",
125125
"listStatus": "ro",
126126
"listXAttrs": "ro",
127-
"metaSave": "rw",
128127
"mkdirs": "rw",
129128
"modifyAclEntries": "full",
130129
"modifyCacheDirective": "rw",
@@ -169,6 +168,7 @@ data:
169168
"enableRestoreFailedStorage": "full",
170169
"finalizeUpgrade": "rw",
171170
"getDatanodeStorageReport": "ro",
171+
"metaSave": "ro",
172172
"monitorHealth": "ro",
173173
"refreshNodes": "rw",
174174
"rollEditLog": "rw",

0 commit comments

Comments
 (0)