Skip to content

Commit

Permalink
white list more user and group
Browse files Browse the repository at this point in the history
  • Loading branch information
yjst2012 committed Jul 4, 2023
1 parent 810c14f commit 90db317
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ is_priv_namespace(ns) = true {
}

exempted_user = {
"system:kube-controller-manager",
"system:admin" # comment out temporarily for testing in console
}

exempted_groups = {
# "system:cluster-admins", # dont allow kube:admin
"system:nodes", # eg, "username": "system:node:jeff-test-cluster-pcnp4-master-2"
"system:serviceaccounts", # to allow all system service account?
# "system:serviceaccounts:openshift-monitoring", # monitoring operator
# "system:serviceaccounts:openshift-network-operator", # network operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,13 @@ spec:
}
exempted_user = {
"system:kube-controller-manager",
"system:admin" # comment out temporarily for testing in console
}
exempted_groups = {
# "system:cluster-admins", # dont allow kube:admin
"system:nodes", # eg, "username": "system:node:jeff-test-cluster-pcnp4-master-2"
"system:serviceaccounts", # to allow all system service account?
# "system:serviceaccounts:openshift-monitoring", # monitoring operator
# "system:serviceaccounts:openshift-network-operator", # network operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ spec:
}
exempted_user = {
"system:kube-controller-manager",
"system:admin" # comment out temporarily for testing in console
}
exempted_groups = {
# "system:cluster-admins", # dont allow kube:admin
"system:nodes", # eg, "username": "system:node:jeff-test-cluster-pcnp4-master-2"
"system:serviceaccounts", # to allow all system service account?
# "system:serviceaccounts:openshift-monitoring", # monitoring operator
# "system:serviceaccounts:openshift-network-operator", # network operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ spec:
}
exempted_user = {
"system:kube-controller-manager",
"system:admin" # comment out temporarily for testing in console
}
exempted_groups = {
# "system:cluster-admins", # dont allow kube:admin
"system:nodes", # eg, "username": "system:node:jeff-test-cluster-pcnp4-master-2"
"system:serviceaccounts", # to allow all system service account?
# "system:serviceaccounts:openshift-monitoring", # monitoring operator
# "system:serviceaccounts:openshift-network-operator", # network operator
Expand Down

0 comments on commit 90db317

Please sign in to comment.