klakegg / docker-hugo

Truly minimal Docker images for Hugo open-source static site generator.
https://hub.docker.com/r/klakegg/hugo/
MIT License
390 stars 69 forks source link

Tag 0.91.0-asciidoctor fails to execute asciidoctor #53

Closed antoniovazquezblanco closed 2 years ago

antoniovazquezblanco commented 2 years ago

Previous versions seem to work perfectly

Output:


hugo v0.91.0-D1DC0E9A linux/amd64 BuildDate=2021-12-17T09:50:20Z VendorInfo=gohugoio
Error: Error building site: "/src/content/footprint/F2/F2.3.adoc:1:1": access denied: "asciidoctor" is not whitelisted in policy "security.exec.allow"; 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 = ['.*']

Total in 2276 ms```
klakegg commented 2 years ago

Is this specific to the Docker images, or is this specific to Hugo version 0.91.0?

antoniovazquezblanco commented 2 years ago

Sorry, this seems related to the security model change:

https://gohugo.io/about/security-model/#security-policy

I will have to further read on this and will come back to this issue.

antoniovazquezblanco commented 2 years ago

I can confirm this is hugo related and not docker image related.

Users of the image must update their hugo config files to include the execution of asciidoctor binaries.

Thank you and sorry for the noise