AbsaOSS / login-service

AbsaOSS Common Login gateway using JWT Public key signatures
Apache License 2.0
2 stars 0 forks source link

Info endpoint #15

Closed dk1844 closed 1 year ago

dk1844 commented 1 year ago

Background

An info service API, perhaps at /info should be available.

Feature

This endpoint would fulfill a basic informational need about the running service, it would provide:

It is expected that this endpoint is available without authorization, so the information shared there should not be of sensitive nature.

Edit: As suggested by @TheLydonKing, the /info endpoint can also be implemented by the Spring actuator at /actuator/info. While not in SBT (examples in maven/gradle), this article nicely demonstrate some of the possibilities. Perhaps building this as part of the actuator could be easier.

The main points have not changed, we mainly need to include:


(the exact content is not too important, we can extend it later; the main point is to set up a way to expose certain fields/object from the configuration in the info (or related endpoint)