diff --git a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/etc/nevis/k8s-nevisproxy-idp-0ceb05c56644a59d648c13b9.yaml b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/etc/nevis/k8s-nevisproxy-idp-0ceb05c56644a59d648c13b9.yaml index 132e338..05ab391 100644 --- a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/etc/nevis/k8s-nevisproxy-idp-0ceb05c56644a59d648c13b9.yaml +++ b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/etc/nevis/k8s-nevisproxy-idp-0ceb05c56644a59d648c13b9.yaml @@ -46,7 +46,7 @@ spec: podDisruptionBudget: maxUnavailable: "50%" git: - tag: "r-3a33cc8960643d6afc30bade3f2d225bea96681a" + tag: "r-c3f3450d1e993cf5f26ceeaec99256e99fb503fa" dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp" credentials: "git-credentials" keystores: diff --git a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/utility_resource_service_countries_security_filter.lua b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/utility_resource_service_countries_security_filter.lua deleted file mode 100644 index c68040f..0000000 --- a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/utility_resource_service_countries_security_filter.lua +++ /dev/null @@ -1,37 +0,0 @@ -package.path = package.path .. ";/opt/nevisproxy/webapp/WEB-INF/lib/lua/Utils.lua" -local Utils = require "Utils" - -function inputHeader(request, response) - local trace = request:getTracer() - - local queryParams = Utils.getQueryParameters(request) - - -- only allow calls to the countries service - if request:getRequestPath() ~= '/resource/utility/api/v1/countries' then - trace:info("utility service called with invalid path " .. request:getRequestPath()) - response:send(404) - return - end - - -- only alloq one query-parameter 'lang' with the values DE, FR, IT, EN, RS - for param, values in pairs(queryParams) do - if (param ~= 'lang') then - trace:info("utility service called with invalid query param " .. param) - response:send(404) - return - end - if Helpers.tableLength(values) ~= 1 then - trace:info("utility service called with invalid value for query param " .. param) - response:send(404) - return - end - for i, value in pairs(values) do - local lang = string.upper(value) - if not ('DE' == lang or 'FR' == lang or 'IT' == lang or 'EN' == lang or 'RS' == lang) then - trace:info("utility service called with invalid value for query param " .. param .. "=" .. value) - response:send(404) - return - end - end - end -end \ No newline at end of file diff --git a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/web.xml b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/web.xml index 6838a0b..1ba000a 100644 --- a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/web.xml +++ b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/web.xml @@ -640,21 +640,6 @@ outputHeader - - - Lua_Utility_Resource_Service_Countries_Security_Filter - ch::nevis::isiweb4::filter::lua::LuaFilter - - - Script.InputHeaderFunctionName - inputHeader - - - - Script.Path - /var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/utility_resource_service_countries_security_filter.lua - - ModSecurity_App_Icon_Application @@ -1113,11 +1098,6 @@ CSRF_Default /AUTH/RECOVERY - - - Lua_Utility_Resource_Service_Countries_Security_Filter - /resource/utility/* - JSON_Utility_Resource_Service