mitodl / django-server-status

Monitor server status for health checks.
GNU Affero General Public License v3.0
8 stars 0 forks source link

add health check for application certificates #33

Closed pdpinch closed 5 years ago

pdpinch commented 6 years ago

would be useful for OVS

was not useful for lmod_proxy because it's not django.

pdpinch commented 6 years ago

@mitodl/devops what should this return? The cert's expiration date?

pdpinch commented 6 years ago

@mitodl/devops I might assign this to Amir next sprint. What should the API return? What does it return for lmod_proxy?

blarghmatey commented 6 years ago

It currently returns the expiration timestamp for the certificate, and if it's < N days until expiration the status key in the returned JSON is set to warn

https://github.com/mitodl/lmod_proxy/blob/master/lmod_proxy/web.py#L74-L77