Renamed cymais to infinito and did some other optimations and logout implementations

This commit is contained in:
2025-07-29 16:35:42 +02:00
parent a9e7ed3605
commit 44e0fea0b2
499 changed files with 1740 additions and 1587 deletions

View File

@@ -1,6 +1,6 @@
# Custom Filter Plugins for CyMaIS
# Custom Filter Plugins for Infinito.Nexus
This directory contains custom **Ansible filter plugins** used within the CyMaIS project.
This directory contains custom **Ansible filter plugins** used within the Infinito.Nexus project.
## When to Use a Filter Plugin

View File

@@ -122,6 +122,11 @@ class FilterModule(object):
tokens.append('https://www.gstatic.com')
tokens.append('https://www.google.com')
# Allow the loading of js from the cdn
if directive == 'script-src-elem' and self.is_feature_enabled(applications, 'logout', application_id):
domain = domains.get('web-svc-cdn')[0]
tokens.append(f"{domain}")
if directive == 'frame-ancestors':
# Enable loading via ancestors
if self.is_feature_enabled(applications, 'port-ui-desktop', application_id):
@@ -129,9 +134,9 @@ class FilterModule(object):
sld_tld = ".".join(domain.split(".")[-2:]) # yields "example.com"
tokens.append(f"{sld_tld}") # yields "*.example.com"
if self.is_feature_enabled(applications, 'logout', application_id):
if self.is_feature_enabled(applications, 'logout', application_id):
# Allow logout via cymais logout proxy
# Allow logout via infinito logout proxy
domain = domains.get('web-svc-logout')[0]
tokens.append(f"{domain}")

View File

@@ -3,7 +3,7 @@ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')
from module_utils.config_utils import get_app_conf, AppConfigKeyError,ConfigEntryNotSetError
class FilterModule(object):
''' CyMaIS application config extraction filters '''
''' Infinito.Nexus application config extraction filters '''
def filters(self):
return {
'get_app_conf': get_app_conf,

View File

@@ -32,7 +32,7 @@ def merge_with_defaults(defaults, customs):
return merged
class FilterModule(object):
'''Custom merge filter for CyMaIS: merge_with_defaults'''
'''Custom merge filter for Infinito.Nexus: merge_with_defaults'''
def filters(self):
return {
'merge_with_defaults': merge_with_defaults,