Allow configuration of securityContext.Privileged explicitly to default value #15628
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/feature
Well-understood/specified features, ready for coding.
Milestone
Describe the feature
Context:
Currently our services using knative serving have their securityContext field,
privileged
set to nil by default because this field is not allowed to be configured by the user. See:serving/pkg/apis/serving/fieldmask.go
Line 716 in 3e45e8f
Setting this field to any value results in validation errors similar to the following:
The request:
Instead of a default nil, my team and I would like the ability to explicitly set this
false
. It results in the same behavior however the explicitfalse
is more compliant with our security team and likely with other teams as well.There was a GH discussion regarding the configuration of this field however it was ultimately decided against. See (#4130). The difference in my request is that I'm not requesting actual configuration but rather the ability to explicitly set the default value e.g.
false
.The same was done previously for the
automountServiceAccountToken
field. After the merge the value is not actually configurable, but rather is allowed to be set only tofalse
by the user. See: #11723 (comment)The text was updated successfully, but these errors were encountered: