[keycloak-user] Return 503 (Service Unvailable) instead of 404 (File Not found) during keycloak server restarts

Thomas Darimont thomas.darimont at googlemail.com
Mon Jan 30 14:05:10 EST 2017


Hello,

thanks for the hint David - my current approach uses a custom undertow
HttpHandler for detecting the deployment status of a module.
https://github.com/thomasdarimont/undertow-extensions

Cheers,
Thomas

2017-01-30 12:15 GMT+01:00 David Delbecq <david_delbecq at trimble.com>:

> According to this documentation
> https://access.redhat.com/documentation/en/red-hat-
> jboss-enterprise-application-platform/7.0/paged/
> configuration-guide/appendix-a-reference-material
> there should be a default-response-code in tehe host config. But i couldn't
> find it in wildfly undertow subsystem. Maybe the best would be to deploy a
> ROOT.war which map /auth/* requests to 503 response ?
>
> On Mon, Jan 30, 2017 at 11:31 AM Thomas Darimont <
> thomas.darimont at googlemail.com> wrote:
>
> > Hello group,
> >
> > the undertow servlet-container is started pretty early during the startup
> > of the
> > wildfly application server. However the initialization of the keycloak
> > server
> > application might take a while to complete. Within this period requests
> > that are
> > sent to the keycloak endpoints result in responses with HTTP Status Code
> > 404.
> >
> > Is it possible to configure undertow to return a HTTP Status Code 503
> > (Service Unvailable)
> > until the keycloak application startup has completed?
> >
> > This would ease configuring load-balancers and to avoid showing a 404
> > to users during server restarts.
> >
> > Cheers,
> > Thomas
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >
> --
> <http://www.trimble.com/>
> David Delbecq
> Software engineer, Transport & Logistics
> Geldenaaksebaan 329, 1st floor | 3001 Leuven
> +32 16 391 121 <+32%2016%20391%20121> Direct
> david.delbecq at trimbletl.com
> <http://www.trimbletl.com/>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list