-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify "sudoer" group and "privileged" SCC to seamlessly work together #16213
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,15 +285,15 @@ func GetBootstrapSecurityContextConstraints(sccNameToAdditionalGroups map[string | |
// GetBoostrapSCCAccess provides the default set of access that should be passed to GetBootstrapSecurityContextConstraints. | ||
func GetBoostrapSCCAccess(infraNamespace string) (map[string][]string, map[string][]string) { | ||
groups := map[string][]string{ | ||
SecurityContextConstraintPrivileged: {ClusterAdminGroup, NodesGroup}, | ||
SecurityContextConstraintPrivileged: {ClusterAdminGroup, NodesGroup, MastersGroup}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @deads2k do we want to go ahead an remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Mark the constant deprecated, but I wouldn't remove it. If people used it (and it looks reasonable to use), a tighten shouldn't break them. |
||
SecurityContextConstraintsAnyUID: {ClusterAdminGroup}, | ||
SecurityContextConstraintRestricted: {AuthenticatedGroup}, | ||
} | ||
|
||
buildControllerUsername := serviceaccount.MakeUsername(infraNamespace, InfraBuildControllerServiceAccountName) | ||
pvRecyclerControllerUsername := serviceaccount.MakeUsername(infraNamespace, InfraPersistentVolumeRecyclerControllerServiceAccountName) | ||
users := map[string][]string{ | ||
SecurityContextConstraintPrivileged: {buildControllerUsername}, | ||
SecurityContextConstraintPrivileged: {SystemAdminUsername, buildControllerUsername}, | ||
SecurityContextConstraintHostMountAndAnyUID: {pvRecyclerControllerUsername}, | ||
} | ||
return groups, users | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deads2k we seem to have 3 different copies of
MastersGroup
. I do not know which one we want to use, and if we want to delete some of said copies.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't want the package dependencies for most constants.