EQTY Notary API
The EQTY Notary observability and notarization API.
The notary serves an API endpoint that is accessible from the containers inside the pod.
Health
GET /v1/isReady
curl localhost:8066/v1/isReady{"status": "ready", "state": "READY"}200 when ready; 503 with "status": "pending" when not. state is one of
PROVISIONING, OBSERVING, READY, FAILED, and is omitted in system-only
mode (which is ready the moment it starts).
GET /v1/observer_state
The window into a stuck observer. Returns liveness counters plus the current state.
{
"alive": true,
"last_loop_ts": 1725530400.12,
"last_rebuild_ts": 1725530390.44,
"rebuild_count": 3,
"container_count": 2,
"last_error": null,
"state": "READY"
}last_loop_ts advancing while nothing else moves means the observer is alive but
blocked; frozen means it’s dead. last_error carries the most recent loop exception.
GET /v1/init_diagnostic (--debug only)
If init failed, this returns the diagnostic text that would otherwise only exist on the guest console.
{"init_failed": false}Keys and identity
GET /v1/system_public_key
{
"status": "ok",
"did": "did:key:zDn...",
"public_key": "02a1b2…",
"curve": "SECP256r1",
"type": "system"
}public_key is the hex-encoded compressed point.
GET /v1/public_key?key_type=container|system
Same shape. Defaults to container in CoCo mode and system in system-only mode
(where the parameter is ignored — there is no container key). Asking for
container when none has been minted yet gives 500.
GET /get_dids
The identity triple, in the field names the manifest uses:
{
"registeredBy": "did:key:zDn…", // container
"executedOn": "did:key:zDn…", // system
"operatedBy": "did:key:zDn…" // operator, only if known
}registeredBy is did:key:none when there’s no container signer. operatedBy is
omitted entirely unless an operator DID was parsed from the CoCo policy.
GET /v1/certificate_chain?ca=true
Returns PEM text, not JSON: the container certificate (leaf by default, or the
container CA with ca=true) followed by the system CA. In system-only mode you get
just the system CA.
Signing
Both signing endpoints accept either application/json or
application/x-www-form-urlencoded — so plain curl -d works.
POST /v1/sign
Signs raw bytes with the container key (CoCo) or the system key (system-only).
| Field | |
|---|---|
data | required, hex-encoded bytes to sign |
hash, algo | accepted and ignored; kept for older clients |
curl -X POST localhost:8066/v1/sign -d 'data=deadbeef'{"status": "ok", "signature": "3f2c…"}data is hashed with SHA-256 internally before signing — pass the message, not a
digest. The signature is hex, raw r||s (64 bytes, no DER wrapper). Non-hex data
gives 400; no container signer yet gives 503.
POST /v1/sign_cert
Signs a PEM CSR with the container CA.
| Field | |
|---|---|
csr | required, PEM-encoded CSR |
type | document (default) or tls |
curl -X POST localhost:8066/v1/sign_cert \
-H 'Content-Type: application/json' \
-d '{"csr": "-----BEGIN CERTIFICATE REQUEST-----\n…", "type": "tls"}'Returns the issued certificate as PEM text. A malformed CSR gives 400; this
endpoint always needs the container signer, so it returns 503 in system-only mode.
Attestation
GET /v1/did_registration
The TEE manifest for the current session — the attestation evidence bundle that
vcomp-verify-cli checks. Returns the manifest JSON, or {} if there isn’t one yet.
curl localhost:8066/v1/did_registration > manifest.jsonVault Transit compatibility (for cosign)
Enough of HashiCorp Vault’s Transit API that cosign can use
hashivault://SYSTEM_KEY as its KMS URL and sign against the notary. Responses use
the real Vault envelope (request_id, lease_id, data, …), and errors use
Vault’s shape:
{"errors": ["key not found: FOO"]}Only the key name SYSTEM_KEY exists; anything else is 404. The name is
historical — the key actually used mirrors /v1/sign: the container key in CoCo
mode, the system key in system-only mode.
GET /vault/v1/transit/keys/SYSTEM_KEY
Public key as SPKI PEM at data.keys.1.public_key, with type: "ecdsa-p256" and a
single version 1.
PUT|POST /vault/v1/transit/sign/SYSTEM_KEY/<hash_alg>
<hash_alg> is one of sha2-224, sha2-256, sha2-384, sha2-512.
| Field | |
|---|---|
input | required, base64 |
prehashed | bool, default false. When true, input is already a digest. |
key_version | optional, 0 or 1, int or string. Anything else → 400. |
{"signature": "vault:v1:MEUCIQ…", "key_version": 1}Note the signature is DER-encoded here (base64, vault:v1: prefixed) — unlike
/v1/sign, which returns raw hex. cosign’s Vault client sends JSON without a
Content-Type header, so this endpoint doesn’t require one.
Status codes at a glance
| Code | Means |
|---|---|
200 | fine |
400 | bad input — non-hex data, malformed CSR, unsupported hash alg or key version |
404 | Vault key name other than SYSTEM_KEY |
500 | asked for a container public key that doesn’t exist; signer failure |
503 | CoCo not READY yet, or no container signer available |