veraison / services

Attestation verification services based on Veraison components
Apache License 2.0
24 stars 13 forks source link

fix: correctly report VTS down in API server logs #232

Closed setrofim closed 2 months ago

setrofim commented 2 months ago

API frontends may be started before VTS. On start up, the frontend attempts to connect to the service and if the service is not ready, it is supposed to output a warning.

This was established by checking for error from vtsClient.GetServiceState(). However, this will not always error. If a connection cannot be established this may return no error, but report the service as down.

In addition to checking for error, check that the service state is "READY", and warn if its not.