opened
ryysud
username_0
This PR fixes https://github.com/spiffe/spire/issues/2063.
Fix the health checks not to be executed before the server and agent are running
issue
created
ryysud
username_0
For example, the response of the readiness endpoint in the server:

### Before the server is running

```bash
$ curl -s localhost:8080/ready | jq .
{
  "details": {
    "server": {
      "name": "server",
      "status": "ok",
      "fatal": true,
      "details": {
        "message": "skip the health check because the server is not running yet"
      },
      "check_time": "2021-01-26T15:09:13.928089+09:00",
      "num_failures": 0,
      "first_failure_at": "0001-01-01T00:00:00Z"
    }
  },
  "status": "ok"
}
```

### After the server is running

```
$ curl -s localhost:8080/ready | jq .
{
  "details": {
    "server": {
      "name": "server",
      "status": "ok",
      "fatal": true,
      "details": {
        "message": "successfully fetched bundle"
      },
      "check_time": "2021-01-26T15:09:21.933612+09:00",
      "num_failures": 0,
      "first_failure_at": "0001-01-01T00:00:00Z"
    }
  },
  "status": "ok"
}
```
comment
created
ryysud
username_0
With this change, the server and agent will be ready even if they are stopped, so I close this PR...
comment