Hello list,
I'm currently working on embedding Keycloak's currently dedicated Proxy Server into Keycloak itself.
For this I need to be able to dynamically configure Undertow's ProxyHandler and register VirtualHosts at runtime.
For reference the discussion thread on keycloak-dev ML: [1]
Keycloak uses the Undertow Subsystem provided by Wildfly 10 which is configured via the standalone(-ha).xml.
I could already configure a reverse-proxy and additional hosts via jboss-cli but I wonder whether there is an API
that I could use to get access to the undertow infrastructure from within a JAX-RS endpoint.
I could probably also use the wildfly management client API or perhaps do something via JMX.
Would be great if someone could give me a tip or an example for registering / configuring Undertow Handler or Virtual Hosts as described above.
Btw. I saw that Undertow ships with a io.undertow.server.handlers.proxy.HostTable but I couldn't find
any usage of it in the Undertow codebase - did I miss something or is this dead code?
FYI current code of Keycloak dedicated Proxy Server (uses embedded undertow) can be found here: [0]
Cherrs,
Thomas