Ok, so this is why I originally wished not to be asked back why I want it off.
No way back, so ...
i'm still not clear what you want to achieve with shutting down the gui?
what is the actual problem having the gui accessible?
It's the access control architecture, because ...
separating control of the gui from the api does not make any sense to me
... your model assumes having access to the served JS is no different than having access to the API itself, which
one has to have to be able to manage the cluster. I would want to have the API put behind an extra gateway, the API of the individual nodes will be never hit directly from anywhere but the gateway. If you wonder why, because maybe I do not want anyone to be even able to POST /api2/json/access/domains/{realm}/sync and such at will.
What serves out the JS GUI (or parts of it, or something completely different) is beyond the scope of my question here, we would take care of that, including things like SPOF, etc. I did not really want to ask PVE team to redo the solution, just let me use it partially.
As you must be now scratching your head yet again (i.e. then what is it of my concern what it is there to be served out by the pveproxy.service), it's about keeping it modular and simple. It's very much like why is the 8006 port hardcoded in the Perl module, meanwhile LISTENIP can be configured, etc., etc.
As I started playing around with the IAM, I noticed it was built without eg possibility to restrict only certain network interfaces to a particular user and other similar pitfalls (for my potential use case). I did not want to go at lengths here, it's really beyond scope and it was meant to be simple question is there any plan to refactor the REST API off the HTTP server. There are simply some
branches of the code in the modules I would be happier to know it is not ever executed, they are there to cater for the JS app, not pure API calls.
having the gui exposed on every node together with the api was a conscious decision
Fair enough, I did not know PVE had clustering that early on.
it has some advantages, e.g. not having to worry if the 'gui' node is online. you can just connect to any online node to manage
the whole cluster (some people do put a ha proxy or similar in front, so they have a single domain/ip to contact, but that introduces complexity and an extra SPOF (if not setup redundant))
Yes, all true, just see above within my context. I know you can tell me "you are using it wrong", but this is why I just wanted to ask if it can be a bit more modular, a little refactoring usually does not kill anyone.
Thanks for the attention anyways.