Integrating with Salt

How another system drives Salt over its interfaces. Salt knows nothing about the systems that call it; a billing platform, a hosting panel or a mail server sees the same documented interfaces you do. Shiloh's own hosted service uses exactly these.

You want toInterfaceDocument
buy, renew and manage domain names through the registrar account Salt holdsREST API /api/v1/registrar with a token that has a registrar levelRegistrar API
set customers up and tear them down (one child organisation per customer, zones, records, sub-domains) from a billing or portal systemREST API /api/v1 with a provisioning token and the X-Salt-Organisation headerProvisioning API
let people pick a sub-domain under your zone without racing each other/api/v1/zones/{zone}/names/...Choosing a sub-domain
let a mail server publish its own DNS and mail-client discovery recordsRFC 2136 updates with a mail-preset TSIG keyMail servers
every field of every REST callOpenAPI 3 document at /api/v1/openapi.json (in the tree: priv/static/openapi.json)Clients and APIs
tools that speak the PowerDNS API (lego, acme.sh, octoDNS, external-dns)PowerDNS-compatible API with X-API-KeyClients and APIs

In short

  • Authentication: Authorization: Bearer <token>. Tokens are made by an owner or admin in the web console (or, for the first provisioning token, on the command line) and shown once. A provisioning token is scoped to the customer organisations it created, never to its own organisation.
  • Errors: RFC 9457 application/problem+json; switch on type.
  • Retries: the provisioning and name calls are idempotent; rate limits answer 429 with Retry-After.
  • Callbacks: none. Poll GET /zones/{zone}/sync.
  • Stability: no stability promise yet beyond the version number (1.0.0).

The agent that runs on proxy and edge hosts, Shaker, has its own enrolment and socket protocol (Shaker); it is not an interface for a billing system.