Commit 37fe6416 authored by Fawzi Mohamed's avatar Fawzi Mohamed

easy config to suppress user custom params

parent e48b9d7a
......@@ -35,7 +35,10 @@ module.exports = function (app, redirect, config, proxyServer, proxyRouter, k8,
for (var x in obj) { return false; }
return true;
}
extraArgs = Object.assign({},req.query)
var query = {}
if (cconf.entryPoint.replacementsFromQueryParameters)
query = req.query
extraArgs = Object.assign({},query)
if (!isEmpty(extraArgs) && !extraArgs.imageSubtype)
extraArgs.imageSubtype = `custom${compactSha.objectSha(extraArgs, prefix='').replace(/[-_]/g,'').slice(0,5).toLowerCase()}`
extraArgs.path = req.url
......
......@@ -77,6 +77,7 @@ k8component: {
redirectTarget: "{{prefix}}/"
execCommand: []
exclusiveStartPoint: false
replacementsFromQueryParameters: true
}
commands: {
path: "{{prefix}}/cM"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment