diff --git a/helmfile/apps/collabora/values.yaml.gotmpl b/helmfile/apps/collabora/values.yaml.gotmpl index d19fdd38..863ba74d 100644 --- a/helmfile/apps/collabora/values.yaml.gotmpl +++ b/helmfile/apps/collabora/values.yaml.gotmpl @@ -20,6 +20,11 @@ collabora: --o:num_prespawn_children={{ .Values.technical.collabora.numPrespawnChildren }} --o:remote_font_config.url=https://{{ .Values.global.hosts.nextcloud }}.{{ .Values.global.domain }}/apps/richdocuments/settings/fonts.json --o:net.proto={{ if eq .Values.cluster.networking.ipFamilies "DualStack" }}all{{ else }}{{ .Values.cluster.networking.ipFamilies }}{{ end }} + --o:security.enable_macros_execution={{ .Values.functional.weboffice.macros.enabled }} + --o:security.macro_security_level={{- $val := printf "%v" .Values.functional.weboffice.macros.securityLevel -}}{{- if or (eq $val "0") (eq $val "1") -}}{{ $val }} + {{- else -}} + {{ fail (printf "Invalid value for functional.weboffice.macros.securityLevel: '%s'. Allowed values: 0 or 1" $val) }} + {{- end }} {{- if .Values.debug.enabled }} --o:logging.level=debug {{- else }} diff --git a/helmfile/environments/default/functional.yaml.gotmpl b/helmfile/environments/default/functional.yaml.gotmpl index 84c4fe18..d91698ca 100644 --- a/helmfile/environments/default/functional.yaml.gotmpl +++ b/helmfile/environments/default/functional.yaml.gotmpl @@ -222,5 +222,13 @@ functional: # You can choose between "ODF" and "OOXML". # Ref.: https://en.wikipedia.org/wiki/Comparison_of_Office_Open_XML_and_OpenDocument defaultFormat: "ODF" - + # Macro related options. + macros: + # Specifies whether the macro execution (Basic and Python scripts) is enabled in general. + # If set to false, the `securityLevel` is ignored. + enabled: false + # Chose from the following values: + # 1: Confirmation required before executing macros from untrusted sources. + # 0: All macros will be executed without confirmation. + securityLevel: 1 ...