Solved buggies

This commit is contained in:
Kevin Veen-Birkenbach 2025-05-20 20:46:29 +02:00
parent 49937f6ecc
commit 9d400911f4
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
4 changed files with 6 additions and 7 deletions

View File

@ -126,10 +126,9 @@ class FilterModule(object):
self.is_feature_enabled(applications, 'portfolio_iframe', application_id) self.is_feature_enabled(applications, 'portfolio_iframe', application_id)
and directive == 'frame-ancestors' and directive == 'frame-ancestors'
): ):
domain = domains.get('portfolio')[0] # e.g. "sub.example.com" or "example.com" domain = domains.get('portfolio')[0]
# Extract the second-level + top-level domain and prefix with "*."
sld_tld = ".".join(domain.split(".")[-2:]) # yields "example.com" sld_tld = ".".join(domain.split(".")[-2:]) # yields "example.com"
tokens.append(f"*.{sld_tld}") # yields "*.example.com" tokens.append(f"{sld_tld}") # yields "*.example.com"
# whitelist # whitelist
tokens += self.get_csp_whitelist(applications, application_id, directive) tokens += self.get_csp_whitelist(applications, application_id, directive)

View File

@ -1,6 +1,6 @@
galaxy_info: galaxy_info:
author: "Kevin Veen-Birkenbach" author: "Kevin Veen-Birkenbach"
description: "EspoCRM is an opensource CRM with workflow automation, LDAP/OIDC SSO and a lightweight UI" description: "Empower your customer relationship management with EspoCRM, an open-source platform that combines workflow automation, seamless LDAP/OIDC SSO integration, and a sleek, lightweight user interface. Tailored for businesses of all sizes, EspoCRM enables you to manage your sales, customer interactions, and business processes with ease, fostering productivity and streamlined communication across teams."
license: "CyMaIS NonCommercial License (CNCL)" license: "CyMaIS NonCommercial License (CNCL)"
license_url: "https://s.veen.world/cncl" license_url: "https://s.veen.world/cncl"
company: | company: |

View File

@ -18,5 +18,5 @@
UPDATE public.plugin UPDATE public.plugin
SET settings = '{{ oidc_settings | to_json }}', SET settings = '{{ oidc_settings | to_json }}',
enabled = TRUE, enabled = TRUE,
uninstalled = False, uninstalled = FALSE
WHERE name = 'auth-openid-connect'; WHERE name = 'auth-openid-connect';

View File

@ -56,8 +56,8 @@
dest: "{{docker_repository_path}}/app/config.yaml" dest: "{{docker_repository_path}}/app/config.yaml"
notify: docker compose project setup notify: docker compose project setup
when: when:
- config_file.stat.exists
- run_once_docker_portfolio is not defined - run_once_docker_portfolio is not defined
- config_file.stat.exists
- name: Copy default config.yaml from the role template if host-specific file does not exist - name: Copy default config.yaml from the role template if host-specific file does not exist
template: template:
@ -65,8 +65,8 @@
dest: "{{docker_repository_path}}/app/config.yaml" dest: "{{docker_repository_path}}/app/config.yaml"
notify: docker compose project setup notify: docker compose project setup
when: when:
- not config_file.stat.exists
- run_once_docker_portfolio is not defined - run_once_docker_portfolio is not defined
- not config_file.stat.exists
- name: add docker-compose.yml - name: add docker-compose.yml
template: template: