Karta.Webhooks.SigningKey (Karta v1.0.0)

One organisation's RSA key that signs its requests in Postal's format (Karta.Webhooks.PostalKey): the requests of its webhooks and of its inbound HTTP endpoints. The private key is encrypted at rest (Karta.Auth.DKIM.EncryptedKey); kid names the key in the X-Postal-Signature-KID header and in the organisation's JWK set.

  • organisation_id - the one organisation the key signs for;
  • token - the unguessable part of the organisation's stable JWK set address; every key of an organisation carries the same one, so the address does not change when the key is rotated;
  • state - :active (it signs; at most one per organisation) or :retired (replaced, at retired_at; its public key stays published for a week).

Summary

Types

t()

@type t() :: %Karta.Webhooks.SigningKey{
  __meta__: term(),
  bits: term(),
  id: term(),
  inserted_at: term(),
  kid: term(),
  organisation: term(),
  organisation_id: term(),
  private_key: term(),
  retired_at: term(),
  state: term(),
  token: term(),
  updated_at: term()
}