NLnetLabs / krill

RPKI Certificate Authority and Publication Server written in Rust
https://nlnetlabs.nl/projects/routing/krill/
Mozilla Public License 2.0
294 stars 42 forks source link

Report signer status #729

Open timbru opened 2 years ago

timbru commented 2 years ago

Add an endpoint for signer statuses, and perhaps key ids per signer etc.. for diagnostics

ximon18 commented 2 years ago

Things to consider:

A very simple dumb starting point could be output of the form:

$ krillc signers status
Active signers:
  - Fallback OpenSSL signer

Pending signers:
  - Kryptus Cloud HSM

Unusable signers:
  - My broken PKCS#11 configuration

And:

$ krillc signers status --format json
{
  "signers": [
    {
      "name": "...",
      "status": "(active|pending|unusable)",
      "handle": "UUID", [1]
    }
  ]
}

(the JSON here was modeled after the output of the CA list API endpoint)

[1] - The handle is only known when the signer is in the "active" state.