From b9441b15833e7198e454250c9b3b6a3dfa5bcfef Mon Sep 17 00:00:00 2001 From: Sylvain Joubert Date: Thu, 6 Jun 2024 13:34:05 +0200 Subject: [PATCH] Remove run template cloud handlers --- .../kotlin/com/cosmotech/api/config/CsmPlatformProperties.kt | 2 -- .../cosmotech/api/security/AbstractSecurityConfiguration.kt | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/kotlin/com/cosmotech/api/config/CsmPlatformProperties.kt b/src/main/kotlin/com/cosmotech/api/config/CsmPlatformProperties.kt index 90236a37..95381b9e 100644 --- a/src/main/kotlin/com/cosmotech/api/config/CsmPlatformProperties.kt +++ b/src/main/kotlin/com/cosmotech/api/config/CsmPlatformProperties.kt @@ -535,8 +535,6 @@ data class CsmPlatformProperties( data class AuthorizedMimeTypes( /** List of authorized mime types for workspace file upload */ val workspaces: List = emptyList(), - /** List of authorized mime types for step handler file upload */ - val handlers: List = emptyList(), ) } } diff --git a/src/main/kotlin/com/cosmotech/api/security/AbstractSecurityConfiguration.kt b/src/main/kotlin/com/cosmotech/api/security/AbstractSecurityConfiguration.kt index 72d91eeb..1ec64329 100644 --- a/src/main/kotlin/com/cosmotech/api/security/AbstractSecurityConfiguration.kt +++ b/src/main/kotlin/com/cosmotech/api/security/AbstractSecurityConfiguration.kt @@ -64,15 +64,12 @@ const val PATH_SOLUTIONS = "/organizations/*/solutions" const val PATH_SOLUTIONS_PARAMETERS = "/organizations/*/solutions/*/parameters" const val PATH_SOLUTIONS_PARAMETERGROUPS = "/organizations/*/solutions/*/parameterGroups" const val PATH_SOLUTIONS_RUNTEMPLATES = "/organizations/*/solutions/*/runTemplates" -const val PATH_SOLUTIONS_RUNTEMPLATES_HANDLERS_UPLOAD = - "/organizations/*/solutions/*/runTemplates/*/handlers/*/upload" val PATHS_SOLUTIONS = listOf( PATH_SOLUTIONS, PATH_SOLUTIONS_PARAMETERS, PATH_SOLUTIONS_PARAMETERGROUPS, - PATH_SOLUTIONS_RUNTEMPLATES, - PATH_SOLUTIONS_RUNTEMPLATES_HANDLERS_UPLOAD) + PATH_SOLUTIONS_RUNTEMPLATES) // Path Workspaces const val PATH_WORKSPACES = "/organizations/*/workspaces"