new configuration version

This commit is contained in:
haburger 2024-12-17 08:04:37 +00:00
parent 9f82022b09
commit 981280c631
3 changed files with 1 additions and 63 deletions

View File

@ -46,7 +46,7 @@ spec:
podDisruptionBudget:
maxUnavailable: "50%"
git:
tag: "r-139ef65dd089d9e8ca8e589cb232846974ed2f1c"
tag: "r-22bb1e3a1e5d393f9e550a5aa2a2978b3826a150"
dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp"
credentials: "git-credentials"
keystores:

View File

@ -1,42 +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)
local path = request:getRequestPath()
-- only allow calls to the countries service
if path == nil then
trace:error("path is nil")
end
if path ~= nil and path ~= '/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

View File

@ -640,21 +640,6 @@
<param-value>outputHeader</param-value>
</init-param>
</filter>
<!-- source: pattern://3a982aa242ff4f8ebd823693 -->
<filter>
<filter-name>Lua_Utility_Resource_Service_Countries_Security_Filter</filter-name>
<filter-class>ch::nevis::isiweb4::filter::lua::LuaFilter</filter-class>
<!-- source: pattern://3a982aa242ff4f8ebd823693 -->
<init-param>
<param-name>Script.InputHeaderFunctionName</param-name>
<param-value>inputHeader</param-value>
</init-param>
<!-- source: pattern://3a982aa242ff4f8ebd823693 -->
<init-param>
<param-name>Script.Path</param-name>
<param-value>/var/opt/nevisproxy/default/host-auth.agov-w.azure.adnovum.net/WEB-INF/utility_resource_service_countries_security_filter.lua</param-value>
</init-param>
</filter>
<!-- source: pattern://cdbb957d49fdc6695a978265 -->
<filter>
<filter-name>ModSecurity_App_Icon_Application</filter-name>
@ -1113,11 +1098,6 @@
<filter-name>CSRF_Default</filter-name>
<url-pattern>/AUTH/RECOVERY</url-pattern>
</filter-mapping>
<!-- source: pattern://3a982aa242ff4f8ebd823693 -->
<filter-mapping>
<filter-name>Lua_Utility_Resource_Service_Countries_Security_Filter</filter-name>
<url-pattern>/resource/utility/*</url-pattern>
</filter-mapping>
<!-- source: pattern://eaa622e2a760704c1e0e22f2 -->
<filter-mapping>
<filter-name>JSON_Utility_Resource_Service</filter-name>