forked from juice-shop/multi-juicer
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
Given we will have to upgrade the webtop often, we need to be able to easily adjust the requierd proxying in the wrongsecrets-balancer. That is why we need a configmap that contains a mapping for:
- which urls should end up to a websocket upgrade to which service
- which urls need to be proxied to which address
so, something like:
- websocket
- servicename1:8080:
incomingurl1
incomingurl2
incomingurl3 - serviname2:3000
incomingurl4
incomingurl5
- servicename1:8080:
- proxy
- servicename1:8080:
incomingurl6
incomingurl7 - servicename2:3000
incomingurl8withwildcard - servicename3(CTFD)
incomingurl9
incomingurl10 - servicename4(grafana)
incomingurl10
- servicename1:8080:
the deployment should mount the configmap in so that the balancer its code should be able to read it. both the deployment and balancer code need to be adjusted.
https://github.com/OWASP/wrongsecrets-ctf-party/blob/main/wrongsecrets-balancer/src/proxy/proxy.js#L106 should no longer be hardcoded but usse a configmap to load like above