You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/12/20 07:25:00 UTC
[jira] [Created] (HDDS-6125) Support Hugo 0.91.0
Wei-Chiu Chuang created HDDS-6125:
-------------------------------------
Summary: Support Hugo 0.91.0
Key: HDDS-6125
URL: https://issues.apache.org/jira/browse/HDDS-6125
Project: Apache Ozone
Issue Type: Bug
Reporter: Wei-Chiu Chuang
I updated Hugo to the latest 0.91.0 and got an error building Ozone:
{noformat}
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 = ['.*']
{noformat}
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/]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org