Registrar module, core: registrars as a plug-in point, Openprovider first #83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "registrar"
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?
Adds an optional registrar module to Salt: Salt holds the account at a domain registrar and carries out registrations, so that an outside billing system never sees the registrar's login. Off unless
SALT_DNS_REGISTRAR=on; with the switch off nothing of it starts. This is the core only: no HTTP API, no console page (they follow in a second pull request).What is in it
SaltDns.Registrar.Adapter: the plug-in point for registrars, in the style ofSaltDns.Certificates.Issuer. Adapters are registered by name in configuration and chosen per provider row.SaltDns.Registrar.Openprovider: the first adapter (login with a token kept in memory only, account, check, prices, contacts, register, transfer, renew, restore, name servers, lock, auto-renew, DNSSEC keys, auth code).SaltDns.Registrar.Provider: the account row; the password is an encrypted field, left out ofinspect/1, and added toSaltDns.Encrypted.Registryso key rotation covers it.registrar_providers,registrar_contacts(reference, version and the registrar's handle; no personal data),registrar_operations(the ledger),registrar_domains,registrar_events.reference_reuse; an operation left without a final answer is looked up at the registrar before anything is ordered again;docs/registrar.md(which calls spend money and which do not), configuration docs, CHANGELOG.Tested
mix precommitpasses on this branch (1512 passed, integration tests excluded as usual);mix coverallstotal 90.2%.test/salt_dns/registrar_test.exs, tagged integration) passed against a throwaway Postgres.Not verified
lib/salt_dns/registrar.exis in the coverage skip list, ascertificates.exis, because its tests are the integration ones.🤖 Generated with Claude Code
https://claude.ai/code/session_01DnYzaT298iLkLpMNy36NVG