diff --git a/pkg/evaluators/authorization/kubernetes_authz.go b/pkg/evaluators/authorization/kubernetes_authz.go index 613a7778..947327ea 100644 --- a/pkg/evaluators/authorization/kubernetes_authz.go +++ b/pkg/evaluators/authorization/kubernetes_authz.go @@ -64,6 +64,9 @@ func (k *KubernetesAuthz) Call(pipeline auth.AuthPipeline, ctx gocontext.Context authJSON := pipeline.GetAuthorizationJSON() jsonValueToStr := func(value expressions.Value) (string, error) { + if value == nil { + return "", nil + } resolved, err := value.ResolveFor(authJSON) if err != nil { return "", err