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)
and directive == 'frame-ancestors'
):
domain = domains.get('portfolio')[0] # e.g. "sub.example.com" or "example.com"
# Extract the second-level + top-level domain and prefix with "*."
domain = domains.get('portfolio')[0]
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
tokens += self.get_csp_whitelist(applications, application_id, directive)

View File

@ -1,6 +1,6 @@
galaxy_info:
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_url: "https://s.veen.world/cncl"
company: |

View File

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

View File

@ -56,8 +56,8 @@
dest: "{{docker_repository_path}}/app/config.yaml"
notify: docker compose project setup
when:
- config_file.stat.exists
- 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
template:
@ -65,8 +65,8 @@
dest: "{{docker_repository_path}}/app/config.yaml"
notify: docker compose project setup
when:
- not config_file.stat.exists
- run_once_docker_portfolio is not defined
- not config_file.stat.exists
- name: add docker-compose.yml
template: