diff --git a/pkg/engine/context/evaluate.go b/pkg/engine/context/evaluate.go index c80e2d57db..e6d57c66c0 100644 --- a/pkg/engine/context/evaluate.go +++ b/pkg/engine/context/evaluate.go @@ -41,6 +41,9 @@ func (ctx *Context) Query(query string) (interface{}, error) { } func (ctx *Context) isWhiteListed(variable string) bool { + if len(ctx.whiteListVars) == 0 { + return true + } for _, wVar := range ctx.whiteListVars { if strings.HasPrefix(variable, wVar) { return true