Skip to content

Commit

Permalink
Explicitly request "use" verb on SCC (#1458)
Browse files Browse the repository at this point in the history
In order to notify pod-security.kubernetes.io that we intent to
create (potentially privileged) SCCs, so it labels us as "privileged",
we have to explicitly request "use" verb for scc.

With this change, CNAO's namespace is marked as
pod-security.kubernetes.io/enforce: priviledged
even before we deploy any of our privileged components. This assures
that CNAO does not show up in audit logs.

Signed-off-by: Petr Horáček <[email protected]>

Signed-off-by: Petr Horáček <[email protected]>
Co-authored-by: Petr Horáček <[email protected]>
  • Loading branch information
kubevirt-bot and phoracek authored Nov 22, 2022
1 parent eb4630f commit 75c60c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ func GetClusterRole() *rbacv1.ClusterRole {
"get",
"list",
"watch",
"use",
},
},
{
Expand Down

0 comments on commit 75c60c7

Please sign in to comment.