Woke up today with a head full of ideas, some more distilled than others. This will be exciting!
One of the more distilled ideas is that I'm going to rework how NSoE does "demo mode". In current NSoE (lets call that NSoE3), you can configure a "demo host", and then it will always serve garbage for that host. In NSoE4, there will be no such setting. You will be able to enable demo mode in the configuration, and then it will do decisions normally, but will always serve a HTTP 200 demo page, which may include information such as the outcome of the decision process, and a description that this is a demo page - stuff like that.
The idea here is that if one wants a demo page, they'll spin up a separate iocaine server, another http-server in the config.
How to enable demo mode?
I think I'm liking
mode demo, becauseenable/disablefeels more fitting for toggling rules, while demo mode is an all-encompassing setting. It also allows me to introduce other modes later on, such asdebug, which would... I don't know what it would do yet. It could maybe do all the decisions, log them, but then let everything pass through - that makes it possible to keep iocaine in the loop, look at what decisions it makes, but disable the filtering, without having to adjust the reverse proxy config.