new configuration version

This commit is contained in:
haburger 2024-12-18 07:39:24 +00:00
parent b2a3ac3cfa
commit 933dec27b4
2 changed files with 16 additions and 2 deletions

View File

@ -46,7 +46,7 @@ spec:
podDisruptionBudget:
maxUnavailable: "50%"
git:
tag: "r-3d5124a6dc9c177bf140282895b219df06f36804"
tag: "r-ad714e65042728051bc6dee19704df817b9c40b2"
dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/proxy-idp"
credentials: "git-credentials"
keystores:

View File

@ -28,8 +28,22 @@ function inputHeader(req, resp)
resp:send(404)
return
end
local count = 0
if values ~= nil then
trace:info("Query param " .. param .. " value is " .. type(values))
for i, value in pairs(values) do
count = count + 1
local lang = string.upper(value)
if not validLanguages[lang] then
trace:info("utility service called with invalid value for query param " .. param .. "=" .. value)
resp:send(404)
return
end
end
end
if count ~= 1
trace:info("utility service called with invalid values for query param " .. param)
resp:send(404)
return
end
end