Enhancement request: admission webhook expression filter #148
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
sig/windows
Categorizes an issue or PR as relevant to SIG Windows.
issue
gmsa admission webhook intercepts everything, including pods that have nothing to do with gmsa.
the gmsa mutating webhook has no object selector / match expressions. it may be preferable to incorporate a few filters as this chart moves forward with k8s.
the easy move forward might be something like an
objectSelector
that matches a label likegmsa-mutate: true
a more hands-free future solution could leverage match conditions testing existence of spec
securityContext.windowsOptions.gmsaCredentialSpecName
references
took a look at - https://github.com/kubernetes-sigs/windows-gmsa/pull/145/files. good. this mostly circumvents the issue.
last year k8s added enhancement to support expression filters in webhooks kubernetes/enhancements#3716, marked stable in v1.30+
k8s docs
object filter - start here: https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-objectselector,
fancy new CEL expressions (1.30+): https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-matchconditions
The text was updated successfully, but these errors were encountered: