Skip to content

Commit

Permalink
fix(controller): Remove un-safe Sprig funcs. Fixes #5286 (#5850)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec committed May 7, 2021
1 parent 206aff0 commit 1a53935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/expr/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ func GetFuncMap(m map[string]interface{}) map[string]interface{} {
for k, v := range exprpkg.GetExprEnvFunctionMap() {
env[k] = v
}
delete(env, "env")
delete(env, "expandenv")
env["toJson"] = toJson
env["sprig"] = sprig.GenericFuncMap()
return env
Expand Down

0 comments on commit 1a53935

Please sign in to comment.