Identity Issuer API Reference

The internal token issuer, craig-security’s issuer process: its published signing keys and its token endpoint. No receiver trusts it until the switch.

Endpoints

Identity

The issuer’s published signing keys, as a JWK Set.

GET /identity/jwks

GET /identity/jwks: the memoized set with its Age, or a 503 problem when it cannot be read. Unauthenticated.

Responses
  • 200: The issuer’s published, unrevoked ES256 verification keys (RFC 7517 JWK Set), newest first, at most 64, within 64 KiB: a staged key appears before it signs, a retiring one until its publish_until

  • 503: The registry could not be read within its budget; the replica’s memo is cleared, so an older set is never served in its place


Mint a service token for a confidential client.

POST /identity/token

POST /identity/token, grant_type=client_credentials with a resource, authenticated by a private_key_jwt assertion. Answers RFC 6749 § 5.1 / § 5.2, with Cache-Control: no-store.

Responses
  • 200: The service token, released only after its issuance-log row committed

  • 400: invalid_request (not a form, a repeated or undefined parameter, no grant), unsupported_grant_type, invalid_target (no resource, an unknown receiver, or no Service edge from the client to it) or invalid_scope (a scope outside the pair’s purpose)

  • 401: invalid_client: no assertion, or one refused (oversize, malformed or extra header, wrong typ, unknown or disabled client, bad signature, wrong iss/sub/aud, expired or exp over 60 s ahead, malformed or reused jti)

  • 413: The form exceeds 64 KiB

  • 429: The per-IP limit (IDENTITY_TOKEN_RATE_LIMIT_RPM, an RFC 9457 problem) or the client’s rate_limit_rpm (slow_down) is spent for this minute

  • 503: temporarily_unavailable: client status or the issuance log’s commit (the jti spend and the row) could not answer, or no key signs; no token is released


Edit this page · latest