Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I updated Hugo to the latest 0.91.0 and got an error building Ozone:
ERROR 2021/12/20 14:44:10 render of "page" failed: execute of template failed: template: _default/single.html:60:5: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/weichiu/sandbox/ozone/hadoop-hdds/docs/themes/ozonedoc/layouts/partials/footer.html:21:18": execute of template failed: template: partials/footer.html:21:18: executing "partials/footer.html" at <getenv "OZONE_VERSION">: error calling getenv: access denied: "OZONE_VERSION" is not whitelisted in policy "security.funcs.getenv"; the current security configuration is: [security] enableInlineShortcodes = false [security.exec] allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$'] osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] [security.funcs] getenv = ['^HUGO_'] [security.http] methods = ['(?i)GET|POST'] urls = ['.*']
this is a new security feature added in Hugo 0.91.0 to restrict access to system environment variables https://gohugo.io/about/security-model/