Top-level domain name registry service on Google Cloud Platform
Find a file
Lai Jiang cfa5699cc3 Remove ofy support from PollMessage (#1732)
Also deletes the autorenew poll message history revision id field in
Domain, which is only needed to recreate the ofy key for the poll
message. The column already contains null values in it, making it
impossible to depend on it. The column itself will be deleted from the
schema after this PR is deployed.

The logic to update autorenew recurrence end time is changed
accordingly: When a poll message already exists, we simply update the
endtime, but when it no longer exists, i. e. when it's deleted
speculatively after a transfer request, we recreate one using the
history entry id that resulted in its creation (e. g. cancelled or rejected
transfer).

This should fix b/240984498. Though the exact reason for that bug is
still unclear to me. Namely, it throws an NPE at this line during an
explicit domain transfer approval:

https://cs.opensource.google/nomulus/nomulus/+/master:core/src/main/java/google/registry/flows/domain/DomainFlowUtils.java;l=603;bpv=1;bpt=0;drc=ede919d7dcdb7f209b074563b3d449ebee19118a

The domain in question has a null autorenewPollMessageHistoryId, but
that in itself should not have caused an NPE because we are not
operating on the null pointer. On that line the only possible way to
throw an NPE is for the domain itself to be null, but if that were the
case, the NPE would have been thrown at line 599 where we called a
method on the domain object.

Regardless of the cause, with this PR we are using an explicitly
provided history id and checking for its nullness before using it. If a
similar issue arises again, we should have a better idea why.

Lastly, the way poll message id is constructed is largely simplified in
PollMessageExternalKeyConverter as a result of the removal ofy parent
keys in PollMessage. This does present a possibility of failure when
immediately before deployment, a registrar requests a poll message and
received the old id, but by the time the registrar acks the id, the new
version is deployed and therefore does not recognize the old key. The
likelihood of this happening should be slim, and we could have prevented
it by letting the converter recognize both the old and the new key.
However, we would like to eventually phase out the old key, and in
theory a registrar could ack a poll message at any time after it was
requested. So, there is not a safe time by which all the old ids are
acked, lest we develop some elaborate scheme to keep track of which
messages were sent with an old id when requested and which of these old
ids are acked. Only then can we be truly safe to phase out the old id.
The benefit does not seem to warrant the effort. If a registrar does
encounter a situation like this, they could open a support bug to have
us manually ack the poll message for them.
2022-08-19 14:24:03 -04:00
buildSrc Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714) 2022-07-27 15:00:10 -04:00
common Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714) 2022-07-27 15:00:10 -04:00
config Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
core Remove ofy support from PollMessage (#1732) 2022-08-19 14:24:03 -04:00
db Remove ofy support from PollMessage (#1732) 2022-08-19 14:24:03 -04:00
docs Allow anchor tenant creation via allocation token behavior (#1735) 2022-08-15 12:42:16 -04:00
gradle/wrapper Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
integration Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
java-format Fixed distutils deprecation warning (#1711) 2022-07-26 15:51:52 -04:00
java8compatibility Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
networking Revert "Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714)" (#1724) 2022-07-29 16:08:36 -04:00
prober Revert "Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714)" (#1724) 2022-07-29 16:08:36 -04:00
processor Remove ofy support from BillingEvent (#1710) 2022-08-02 11:36:28 -04:00
proxy Revert "Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714)" (#1724) 2022-07-29 16:08:36 -04:00
python/google/registry/scripts Rename HostResource -> Host (#1733) 2022-08-05 10:28:45 -04:00
release Make Kythe run work with Gradle 7 (#1727) 2022-08-02 13:19:47 -04:00
services Revert "Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714)" (#1724) 2022-07-29 16:08:36 -04:00
third_party/objectify/v4_1 Upgradle JUnit to 4.13 (#442) 2020-01-14 10:54:09 -05:00
util Revert "Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714)" (#1724) 2022-07-29 16:08:36 -04:00
.gcloudignore Re-enable tests in RC build (#1130) 2021-05-05 13:53:21 -04:00
.gitignore Remove PremiumList from Datastore schema (#1256) 2021-08-10 13:26:13 -04:00
.lgtm.yml Enable Java 11 features (#737) 2020-08-03 16:08:29 -04:00
appengine_war.gradle For some reason after the upgrade to Gradle, the core.jar file is no (#1730) 2022-08-03 10:26:44 -04:00
AUTHORS Change all references to Domain Registry to Nomulus 2016-10-14 16:58:07 -04:00
build.gradle Make Kythe run work with Gradle 7 (#1727) 2022-08-02 13:19:47 -04:00
buildscript-gradle.lockfile Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
CONTRIBUTING.md Add Google Java Style Guide info and link to CONTRIBUTING.md 2016-11-15 11:01:16 -05:00
CONTRIBUTORS Add rachelguan@ to CONTRIBUTORS (#1598) 2022-04-19 19:18:44 -04:00
dependencies.gradle Revert "Upgrade App Engine Standard to Java 17 w/ bundled APIs (#1714)" (#1724) 2022-07-29 16:08:36 -04:00
dependency_lic.gradle Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
gradle.lockfile Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
gradle.properties Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
gradlew Upgrade to Gradle 6.6.1 (#792) 2020-09-03 15:56:52 -04:00
gradlew.bat Upgrade to Gradle 6.6.1 (#792) 2020-09-03 15:56:52 -04:00
java_common.gradle Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
LICENSE Fix a typo (#174) 2019-07-15 17:49:22 -04:00
nom_build Create a nom_build wrapper script (#508) 2020-03-10 16:32:14 -04:00
nomulus-logo.png Update Nomulus logo 2017-05-23 17:22:49 -04:00
package-lock.json Update GCL dependency to avoid security alert (#1139) 2021-05-17 13:21:26 -04:00
package.json Update GCL dependency to avoid security alert (#1139) 2021-05-17 13:21:26 -04:00
projects.gradle Allow AppEngine deployment to qa environment (#986) 2021-03-03 19:31:08 -05:00
README.md Update Javadoc URL (#615) 2020-06-09 10:25:56 -04:00
rollback_tool An automated rollback tool for Nomulus (#847) 2020-10-29 10:37:20 -04:00
SECURITY.md Add SECURITY.md security policy (#1257) 2021-07-26 17:35:59 -04:00
settings.gradle Upgrade to Gradle 7.0 (#1712) 2022-07-26 11:41:27 -04:00
show_upgrade_diffs Added "show_upgrade_diffs" script (#981) 2021-03-09 07:48:06 -05:00
utils.gradle Use Flyway to deploy SQL schema to non-prod (#255) 2019-09-06 16:29:49 -04:00
vnames.json Fix a typo (#1085) 2021-04-15 08:15:31 -04:00

Nomulus

Internal Build FOSS Build LGTM License Code Search
Build Status for Google Registry internal build Build Status for the open source build Total alerts License for this repo Link to Code Search

Nomulus logo

Overview

Nomulus is an open source, scalable, cloud-based service for operating top-level domains (TLDs). It is the authoritative source for the TLDs that it runs, meaning that it is responsible for tracking domain name ownership and handling registrations, renewals, availability checks, and WHOIS requests. End-user registrants (i.e. people or companies that want to register a domain name) use an intermediate domain name registrar acting on their behalf to interact with the registry.

Nomulus runs on Google App Engine and is written primarily in Java. It is the software that Google Registry uses to operate TLDs such as .google, .app, .how, .soy, and .みんな. It can run any number of TLDs in a single shared registry system using horizontal scaling. Its source code is publicly available in this repository under the Apache 2.0 free and open source license.

Getting started

The following resources provide information on getting the code and setting up a running system:

If you are thinking about running a production registry service using our platform, please drop by the user group and introduce yourself and your use case. To report issues or make contributions, use GitHub issues and pull requests.

Capabilities

Nomulus has the following capabilities:

  • Extensible Provisioning Protocol (EPP): An XML protocol that is the standard format for communication between registrars and registries. It includes operations for registering, renewing, checking, updating, and transferring domain names.
  • DNS interface: The registry provides a pluggable interface that can be implemented to handle different DNS providers. It includes a sample implementation using Google Cloud DNS as well as an RFC 2136 compliant implementation that works with BIND.
  • WHOIS: A text-based protocol that returns ownership and contact information on registered domain names.
  • Registration Data Access Protocol (RDAP): A JSON API that returns structured, machine-readable information about domain name ownership. It is essentially a newer version of WHOIS.
  • Registry Data Escrow (RDE): A daily export of all ownership information for a TLD to a third party escrow provider to allow take-over by another registry operator in the event of serious failure. This is required by ICANN for all new gTLDs.
  • Premium pricing: Communicates prices for premium domain names (i.e. those that are highly desirable) and supports configurable premium registration and renewal prices. An extensible interface allows fully programmatic pricing.
  • Billing history: A full history of all billable events is recorded, suitable for ingestion into an invoicing system.
  • Registration periods: Qualified Launch Partner, Sunrise, Landrush, Claims, and General Availability periods of the standard gTLD lifecycle are all supported.
  • Brand protection for trademark holders (via TMCH): Allows rights-holders to protect their brands by blocking registration of domains using their trademark. This is required by ICANN for all new gTLDs.
  • Registrar support console: A self-service web console that registrars can use to manage their accounts in the registry system.
  • Reporting: Support for required external reporting (such as ICANN monthly registry reports, CZDS, Billing and Registration Activity) as well as internal reporting using BigQuery.
  • Administrative tool: Performs the full range of administrative tasks needed to manage a running registry system, including creating and configuring new TLDs.
  • DNS interface: An interface for DNS operations is provided so you can write an implementation for your chosen provider, along with a sample implementation that uses Google Cloud DNS. If you are using Google Cloud DNS you may need to understand its capabilities and provide your own multi-AS solution.
  • GAE Proxy: App Engine Standard only serves HTTP/S traffic. A proxy to forward traffic on EPP and WHOIS ports to App Engine via HTTPS is provided. Instructions on setting up the proxy on Google Kubernetes Engine is available. Running the proxy on GKE supports IPv4 and IPv6 access, per ICANN's requirements for gTLDs. The proxy can also run as a single jar file, or on other Kubernetes providers, with modifications.

Additional components

Registry operators interested in deploying Nomulus will likely require some additional components that are need to be configured separately.

  • A way to invoice registrars for domain name registrations and accept payments. Nomulus records the information required to generate invoices in billing events.
  • Fully automated reporting to meet ICANN's requirements for gTLDs. Nomulus includes substantial reporting functionality but some additional work will be required by the operator in this area.
  • A secure method for storing cryptographic keys. A keyring interface is provided for plugging in your own implementation (see configuration doc for details).
  • System status and uptime monitoring.

Outside references

  • Donuts Registry has helped review the code and provided valuable feedback
  • CoCCa and FRED are other open-source registry platforms in use by many TLDs
  • We are not aware of any fully open source domain registrar projects, but open source EPP Toolkits (not yet tested with Nomulus; may require integration work) include:
  • Some Open Source DNS Projects that may be useful, but which we have not tested: