Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location of security settings for 'newContentEditor' #36

Open
exen904 opened this issue Sep 4, 2023 · 0 comments
Open

Location of security settings for 'newContentEditor' #36

exen904 opened this issue Sep 4, 2023 · 0 comments

Comments

@exen904
Copy link

exen904 commented Sep 4, 2023

Describe the bug
Using the 'newContentEditor' line does not work as expected, as to not being configured in the security settings

To Reproduce
Steps to reproduce the behavior:
Create new content with newContentEditor = 'code'

Expected behavior
Creating the content file and also opening the editor

Log

Editing "/home/daniel/Documents/GitHub/test_liftoff/content/posts/umzug.md" with "code" ...
Error: access denied: "code" 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)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|(XDG_CONFIG_)?HOME|USERPROFILE|SSH_AUTH_SOCK|DISPLAY|LANG)$']

  [security.funcs]
    getenv = ['^HUGO_', '^CI$']

  [security.goTemplates]
    AllowActionJSTmpl = false

  [security.http]
    methods = ['(?i)GET|POST']
    urls = ['.*']

Additional context
Getting the current config with hugo config also shows the security settings, but I was unable to find them with the config file split

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant