diff --git a/server/apps/server-app/src/main/resources/config/application.yml b/server/apps/server-app/src/main/resources/config/application.yml index 1dd80ee6843..313a8b03e5b 100644 --- a/server/apps/server-app/src/main/resources/config/application.yml +++ b/server/apps/server-app/src/main/resources/config/application.yml @@ -225,7 +225,7 @@ bytechef: resources: web: file:///opt/bytechef/client/ security: - content-security-policy: "default-src 'self'; frame-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://storage.googleapis.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data:; font-src 'self' data:; script-src: https://*.command.ai; frame-src: https://*.command.ai; img-src: https://*.command.ai; media-src: https://*.command.ai; connect-src: https://*.command.ai; style-src: https://*.command.ai;" + content-security-policy: "default-src 'self'; frame-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://api.commandbar.com https://cdn.jsdelivr.net https://storage.googleapis.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data:; font-src 'self' data:; script-src: https://*.command.ai; frame-src: https://*.command.ai; img-src: https://*.command.ai; media-src: https://*.command.ai; connect-src: https://*.command.ai https://eu.i.posthog.com; style-src: https://*.command.ai;" sign-up: temp-domain-list-url: #https://gist.githubusercontent.com/SimonHoiberg/f5a23b1fa3762330c8af1e9090918b63/raw/53963d0dbdd93c594fbc067cee95966156ee066b/temp-email-list.txt # Tenant support mode (single | multi - ee only) default: single diff --git a/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java b/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java index a7af926538a..4a44536ddbd 100644 --- a/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java +++ b/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java @@ -38,7 +38,7 @@ public void testAuthorizationAuthorizationTypeIsApplicable() { AuthorizationUtils.isApplicable(applicableValue), applicableValue + " is valid"); } - for (String nonApplicableValue : getRandomNonApplicableValues()) { + for (String nonApplicableValue : getNonApplicableValues()) { Assertions.assertFalse( AuthorizationUtils.isApplicable(nonApplicableValue), nonApplicableValue + " is valid"); } @@ -66,7 +66,7 @@ private List getRandomApplicableValues() { if (RANDOM.nextBoolean()) { char charToReplace = name.charAt(RANDOM.nextInt(name.length())); - if (charToReplace == 95) { + if ((charToReplace == 95) || ((charToReplace > 47) && (charToReplace < 58))) { continue; } @@ -82,7 +82,7 @@ private List getRandomApplicableValues() { return names; } - private List getRandomNonApplicableValues() { + private List getNonApplicableValues() { List randomApplicableValues = getRandomApplicableValues(); List nonApplicableValues = new ArrayList<>();