daml icon indicating copy to clipboard operation
daml copied to clipboard

Add or document livelihood/readiness endpoints for the OAuth 2.0 Auth Middleware

Open stefanobaghino-da opened this issue 3 years ago • 1 comments

What is the problem you want to solve?

I would like to be able to use widely used tools (e.g. Kubernetes) to manage OAuth 2.0 Auth Middleware instances so that I can effectively achieve high availability of the service on my deployment.

What is the solution you would propose?

Add a /readyz and /livez endpoint like the HTTP JSON API Service and the Trigger Service (see https://github.com/digital-asset/daml/issues/13819).

Describe alternatives you've considered

Using another endpoint to check for the livelihood of the service, but I'm not sure about which one could be used to this end. If the problem can be solved that way, I'd find it satisfactory to document this.

stefanobaghino-da avatar Aug 08 '22 15:08 stefanobaghino-da

Also, the port that the endpoint is on should be configurable so that I can combine several processes into the same Docker container but still expose each livez endpoint.

hrischuk-da avatar Aug 08 '22 16:08 hrischuk-da

@hrischuk-da the auth middleware service port is already configurable.

ray-roestenburg-da avatar Sep 19 '22 14:09 ray-roestenburg-da