Registrar API, background job and console #85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "registrar-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Second part of the registrar module (the core is pull request 83): the HTTP API an outside billing system calls, the permission level on tokens, a background job, and console pages. Everything stays off unless
SALT_DNS_REGISTRAR=on; every registrar route answers 404 while it is off.What is in it
registraron API credentials (none,read,purchase; defaultnone), set on the Credentials and Provisioning pages and withregistrar:onSaltDns.Release.create_provisioning_token/4. Nothing can buy until someone sets it./api/v1/registrar, three pipelines (the level and the header rule per group):X-Salt-Organisationoptional:GET /account,POST /check,GET /pricesGET /domains,GET /domains/{fqdn},GET /operations/{reference}PUT /contacts/{ref},POST /contacts/{ref}/verification,PUT /domains/{fqdn},POST /domains/{fqdn}/renew,POST /domains/{fqdn}/restore,POST /domains/{fqdn}/auth-code,POST /operations/{reference}/abandon{minor, currency}everywhere. Prices and each check entry take aperiodand return the registrar's totals for that period (never a multiplied one-year price),renew_yearly, the promotion with its end date, period limits, privacy, and both quarantine figures as the registrar reports them. Operations showcost_ceiling,cost_quoted,cost_chargedandcost_confirmed. Every error carriesfinal(true: the reference is burned; false: retry with the same reference); 503 and 429 carrycause.POST /operations/{reference}/abandonanswersnothing_orderedorregistered; it refuses astoo_early(409,Retry-After) until the stale time has passed since the last order attempt.{"total": 5, "results": []}from the registrar is treated as malformed, not as "not held". The two stale arities inregistrar.exare corrected.docs/integrations/registrar.md(the API, retrying and references, which calls spend money),docs/registrar.md, OpenAPI (additions only: 2385 added, 1 removed withgit diff --diff-algorithm=patience), CHANGELOG.Tested
mix precommitpasses, 1546 passed with integration excluded as usual, andmix docs --warnings-as-errorsbuilds without warnings.Not verified
🤖 Generated with Claude Code
https://claude.ai/code/session_01DnYzaT298iLkLpMNy36NVG