Skip to content

Commit

Permalink
add file scope for specific controls
Browse files Browse the repository at this point in the history
Signed-off-by: rcohencyberarmor <[email protected]>
  • Loading branch information
rcohencyberarmor committed Oct 17, 2023
1 parent 3c8ea0a commit f495c4f
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 23 deletions.
3 changes: 2 additions & 1 deletion controls/C-0186-minimizeaccesstosecrets.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"default_value": "By default in a kubeadm cluster the following list of principals have `get` privileges on `secret` objects ```CLUSTERROLEBINDING SUBJECT TYPE SA-NAMESPACEcluster-admin system:masters Group system:controller:clusterrole-aggregation-controller clusterrole-aggregation-controller ServiceAccount kube-systemsystem:controller:expand-controller expand-controller ServiceAccount kube-systemsystem:controller:generic-garbage-collector generic-garbage-collector ServiceAccount kube-systemsystem:controller:namespace-controller namespace-controller ServiceAccount kube-systemsystem:controller:persistent-volume-binder persistent-volume-binder ServiceAccount kube-systemsystem:kube-controller-manager system:kube-controller-manager User ```",
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
3 changes: 2 additions & 1 deletion controls/C-0188-minimizeaccesstocreatepods.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"default_value": "By default in a kubeadm cluster the following list of principals have `create` privileges on `pod` objects ```CLUSTERROLEBINDING SUBJECT TYPE SA-NAMESPACEcluster-admin system:masters Group system:controller:clusterrole-aggregation-controller clusterrole-aggregation-controller ServiceAccount kube-systemsystem:controller:daemon-set-controller daemon-set-controller ServiceAccount kube-systemsystem:controller:job-controller job-controller ServiceAccount kube-systemsystem:controller:persistent-volume-binder persistent-volume-binder ServiceAccount kube-systemsystem:controller:replicaset-controller replicaset-controller ServiceAccount kube-systemsystem:controller:replication-controller replication-controller ServiceAccount kube-systemsystem:controller:statefulset-controller statefulset-controller ServiceAccount kube-system```",
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
3 changes: 2 additions & 1 deletion controls/C-0198-minimizetheadmissionofrootcontainers.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
3 changes: 2 additions & 1 deletion controls/C-0203-minimizetheadmissionofhostpathvolumes.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
},
"scanningScope": {
"matches": [
"cluster"
"cluster",
"file"
]
}
}

0 comments on commit f495c4f

Please sign in to comment.