diff --git a/server/handlers/policy_relationship_handler.go b/server/handlers/policy_relationship_handler.go index fd8eda91938..de281bc35de 100644 --- a/server/handlers/policy_relationship_handler.go +++ b/server/handlers/policy_relationship_handler.go @@ -108,7 +108,7 @@ func (h *Handler) EvaluateRelationshipPolicy( } evalresults[query] = result } - evalResults = evalresults + evalResults = core.Format.Prettify(evalresults, false) // write the response ec := json.NewEncoder(rw) diff --git a/server/meshmodel/kubernetes/policies/path.rego b/server/meshmodel/kubernetes/policies/path.rego index 3356190ed9c..5d492d844f8 100644 --- a/server/meshmodel/kubernetes/policies/path.rego +++ b/server/meshmodel/kubernetes/policies/path.rego @@ -12,7 +12,8 @@ ensureParentPathsExist(patches, object) = result { missingPaths := {sprintf("/%s", [concat("/", prefixPath)]) | paths[path] - path[i] + path[i] # walk over path + # If a path is missing, all its subpaths will be added. # Eg: a/b/c: If path b is missing all its subpaths will be added.