Added sorted domain list to logout to make it determenistic and prevent unnecessary handler triggers

This commit is contained in:
2025-11-29 14:52:45 +01:00
parent 7fa6b2d770
commit 3b3725cbd1

View File

@@ -6,7 +6,7 @@ container_port: 8000
# The following line leads to that services which arent listed directly in the inventory,
# but are called over other roles, aren't listed here
# @todo implement the calling of also dependency domains (propably the easiest to write a script which adds all dependencies to group_names)
LOGOUT_DOMAINS: "{{ (applications | logout_domains(group_names)) | unique }}"
LOGOUT_DOMAINS: "{{ (applications | logout_domains(group_names)) | unique | sort }}"
LOGOUT_ORIGINS: "{{ LOGOUT_DOMAINS | map('regex_replace', '^(.*)$', WEB_PROTOCOL ~ '://\\1') | list }}"
LOGOUT_CONNECT_SRC_OLD: "{{ applications | get_app_conf(application_id,'server.csp.whitelist.connect-src') }}"
LOGOUT_CONNECT_SRC_NEW: "{{ (LOGOUT_CONNECT_SRC_OLD + LOGOUT_ORIGINS) | unique }}"