Skip to content

Add nr domain commands - #17

Merged
shaygun merged 1 commit into
mainfrom
feat/domain-registrar
Dec 4, 2026
Merged

shaygun merged 1 commit into
mainfrom
feat/domain-registrar

Conversation

@shaygun

@shaygun shaygun commented Dec 4, 2026

Copy link
Copy Markdown
Member

Domain registration (reseller) support, part of the domain registrar rollout (plan: backend docs/README-DOMAIN-REGISTRAR.md).

Commits:

  • Add nr domain commands for NodeRings domain registration.

nr domain search, check, list, get, order, register, transfer, renew,
nameservers set, autorenew on/off, lock on/off, dnssec, auth-code and
contacts list, on the /v1/registrar API, with text tables and --output json.

Purchases are card only. register, transfer and renew create an order, show
the quote with tax, ask for the terms version and (with auto-renew) consent
to renewal charges, confirm the charge, check out with --card or the default
card the quote picked, and wait for the registry with backoff. Nothing is
implied: with --yes, --accept-terms and --mit-consent (or --no-auto-renew)
must be passed. A card that needs 3-D Secure (REQUIRES_PORTAL_VERIFICATION
for tokens, requires_action for sessions) gets the portal checkout link;
other checkout reasons map to next steps. auth-code and lock off need a
step-up token; the CLI never prompts for a password (no hidden prompts), so
it prints the portal link unless --reauth-token is given.

API errors now keep the google.rpc.ErrorInfo reason and metadata. The
allow-list script drops response fields the CLI does not read
(clientSecret, invoiceId, adminContact, renewalPaymentMethodId).

make leak-check still flags paymentMethodId, which the card checkout
needs; the check was left unchanged for a maintainer decision.
@shaygun
shaygun merged commit 396e2ae into main Dec 4, 2026
2 of 3 checks passed
@shaygun
shaygun deleted the feat/domain-registrar branch December 4, 2026 00:56
@shaygun shaygun mentioned this pull request Dec 4, 2026
shaygun added a commit that referenced this pull request Dec 4, 2026
* Revert "Keep payment method ids out of domain command output. (#18)"

This reverts commit acae8a4.

* Revert "Add nr domain commands for NodeRings domain registration. (#17)"

This reverts commit 396e2ae.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant