Last active
June 23, 2019 17:26
-
-
Save sbueringer/7a6ded69aff61523c0eef7e0b9ed64eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package authorization | |
test_deny_update_storageclass_ceph { | |
deny[{"id": id, "resource": {"kind": "storageclasses", "namespace": "", "name": "ceph"}, "resolution": resolution}] with data.kubernetes.storageclasses[""].ceph as { | |
"kind": "SubjectAccessReview", | |
"apiVersion": "authorization.k8s.io/v1beta1", | |
"spec": { | |
"resourceAttributes": { | |
"verb": "update", | |
"version": "v1", | |
"resource": "storageclasses", | |
"name": "ceph", | |
}, | |
"user": "alice", | |
"group": ["user"], | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment