Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6125

Support Hugo 0.91.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • 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/

      Attachments

        Activity

          People

            weichiu Wei-Chiu Chuang
            weichiu Wei-Chiu Chuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: