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 to | Interface | Document |
|---|---|---|
| buy, renew and manage domain names through the registrar account Salt holds | REST API /api/v1/registrar with a token that has a registrar level | Registrar API |
| set customers up and tear them down (one child organisation per customer, zones, records, sub-domains) from a billing or portal system | REST API /api/v1 with a provisioning token and the X-Salt-Organisation header | Provisioning 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 records | RFC 2136 updates with a mail-preset TSIG key | Mail servers |
| every field of every REST call | OpenAPI 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-Key | Clients 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 ontype. - Retries: the provisioning and name calls are idempotent; rate limits answer
429withRetry-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.