8000 Tags · google/nomulus · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

nomulus-20261203-RC00

Toggle nomulus-20261203-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Remove canary matching rules for pubapi and frontend (#3309)

nomulus-20261202-RC00

Toggle nomulus-20261202-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Remove canary matching rules for pubapi and frontend (#3309)

nomulus-20261201-RC00

Toggle nomulus-20261201-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prevent HTTP request smuggling on proxy retry (#3306)

Fix buffer readerIndex sharing on failed relay writes in the EPP proxy
and bound reflected XML parse error details in Nomulus:

- Duplicate ByteBufHolder messages via retainedDuplicate() in
  RelayHandler.writeToRelayChannel() before writing to the outbound
  relay channel. Previously, calling retain() shared a single
  readerIndex with outbound encoders (HttpObjectEncoder and SslHandler),
  so retrying a failed backend write replayed the original
  Content-Length header with a partially or fully consumed body,
  allowing subsequent requests on the shared backend channel to be
  absorbed into the retried request body.
- Truncate SAXParseException and XMLStreamException detail strings to
  256 characters in XmlTransformer.unmarshal() so oversized invalid XML
  values cannot amplify EPP syntax error responses past the proxy HTTP
  aggregator limit or echo arbitrary request content.
- Add unit tests in RelayHandlerTest and XmlTestdataTest covering body
  preservation across HTTP encoder retries and parse error truncation.

nomulus-20261130-RC02

Toggle nomulus-20261130-RC02's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prevent HTTP request smuggling on proxy retry (#3306)

Fix buffer readerIndex sharing on failed relay writes in the EPP proxy
and bound reflected XML parse error details in Nomulus:

- Duplicate ByteBufHolder messages via retainedDuplicate() in
  RelayHandler.writeToRelayChannel() before writing to the outbound
  relay channel. Previously, calling retain() shared a single
  readerIndex with outbound encoders (HttpObjectEncoder and SslHandler),
  so retrying a failed backend write replayed the original
  Content-Length header with a partially or fully consumed body,
  allowing subsequent requests on the shared backend channel to be
  absorbed into the retried request body.
- Truncate SAXParseException and XMLStreamException detail strings to
  256 characters in XmlTransformer.unmarshal() so oversized invalid XML
  values cannot amplify EPP syntax error responses past the proxy HTTP
  aggregator limit or echo arbitrary request content.
- Add unit tests in RelayHandlerTest and XmlTestdataTest covering body
  preservation across HTTP encoder retries and parse error truncation.

nomulus-20261130-RC01

Toggle nomulus-20261130-RC01's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prevent HTTP request smuggling on proxy retry (#3306)

Fix buffer readerIndex sharing on failed relay writes in the EPP proxy
and bound reflected XML parse error details in Nomulus:

- Duplicate ByteBufHolder messages via retainedDuplicate() in
  RelayHandler.writeToRelayChannel() before writing to the outbound
  relay channel. Previously, calling retain() shared a single
  readerIndex with outbound encoders (HttpObjectEncoder and SslHandler),
  so retrying a failed backend write replayed the original
  Content-Length header with a partially or fully consumed body,
  allowing subsequent requests on the shared backend channel to be
  absorbed into the retried request body.
- Truncate SAXParseException and XMLStreamException detail strings to
  256 characters in XmlTransformer.unmarshal() so oversized invalid XML
  values cannot amplify EPP syntax error responses past the proxy HTTP
  aggregator limit or echo arbitrary request content.
- Add unit tests in RelayHandlerTest and XmlTestdataTest covering body
  preservation across HTTP encoder retries and parse error truncation.

proxy-20261130-RC00

Toggle proxy-20261130-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Enforce registrar ownership in bulk domain action (#3287)

ConsoleBulkDomainAction executes EPP commands with isSuperuser=true for
admin users, which bypasses EPP's verifyResourceOwnership check in
DomainDeleteFlow and DomainUpdateFlow. As a result, a bulk delete,
suspend, or unsuspend request tagged with registrarId=B could mutate
domains sponsored by registrar A when submitted by an admin (e.g. during
a UI registrar switch race).

For each target domain, load the active domain via
ForeignKeyUtils.loadResource inside the same transaction that the EPP
flow enlists in so ownership is verified atomically at the flow's
transaction timestamp (eliminating TOCTOU races with concurrent
transfers or registrations). Return an EPP 2201 authorization error
without running EPP or recording ConsoleUpdateHistory when the domain's
current sponsor does not match registrarId. For nonexistent or deleted
domains, invoke EPP with isSuperuser=false to preserve existing 2303
behavior without superuser fallthrough.

Also reject null entries in domainList with HTTP 400 and deduplicate
domainList (preserving order) before execution so duplicate entries do
not execute EPP twice or fail in toImmutableMap after mutating the DB.

Add unit tests covering admin cross-registrar delete, suspend, mixed
batches, duplicate domains, null list entries, nonexistent/deleted
domains, and expired pending transfers projected to another registrar.

BUG= http://b/588464773

nomulus-20261130-RC00

Toggle nomulus-20261130-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Enforce registrar ownership in bulk domain action (#3287)

ConsoleBulkDomainAction executes EPP commands with isSuperuser=true for
admin users, which bypasses EPP's verifyResourceOwnership check in
DomainDeleteFlow and DomainUpdateFlow. As a result, a bulk delete,
suspend, or unsuspend request tagged with registrarId=B could mutate
domains sponsored by registrar A when submitted by an admin (e.g. during
a UI registrar switch race).

For each target domain, load the active domain via
ForeignKeyUtils.loadResource inside the same transaction that the EPP
flow enlists in so ownership is verified atomically at the flow's
transaction timestamp (eliminating TOCTOU races with concurrent
transfers or registrations). Return an EPP 2201 authorization error
without running EPP or recording ConsoleUpdateHistory when the domain's
current sponsor does not match registrarId. For nonexistent or deleted
domains, invoke EPP with isSuperuser=false to preserve existing 2303
behavior without superuser fallthrough.

Also reject null entries in domainList with HTTP 400 and deduplicate
domainList (preserving order) before execution so duplicate entries do
not execute EPP twice or fail in toImmutableMap after mutating the DB.

Add unit tests covering admin cross-registrar delete, suspend, mixed
batches, duplicate domains, null list entries, nonexistent/deleted
domains, and expired pending transfers projected to another registrar.

BUG= http://b/588464773

nomulus-20261129-RC00

Toggle nomulus-20261129-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Enforce registrar ownership in bulk domain action (#3287)

ConsoleBulkDomainAction executes EPP commands with isSuperuser=true for
admin users, which bypasses EPP's verifyResourceOwnership check in
DomainDeleteFlow and DomainUpdateFlow. As a result, a bulk delete,
suspend, or unsuspend request tagged with registrarId=B could mutate
domains sponsored by registrar A when submitted by an admin (e.g. during
a UI registrar switch race).

For each target domain, load the active domain via
ForeignKeyUtils.loadResource inside the same transaction that the EPP
flow enlists in so ownership is verified atomically at the flow's
transaction timestamp (eliminating TOCTOU races with concurrent
transfers or registrations). Return an EPP 2201 authorization error
without running EPP or recording ConsoleUpdateHistory when the domain's
current sponsor does not match registrarId. For nonexistent or deleted
domains, invoke EPP with isSuperuser=false to preserve existing 2303
behavior without superuser fallthrough.

Also reject null entries in domainList with HTTP 400 and deduplicate
domainList (preserving order) before execution so duplicate entries do
not execute EPP twice or fail in toImmutableMap after mutating the DB.

Add unit tests covering admin cross-registrar delete, suspend, mixed
batches, duplicate domains, null list entries, nonexistent/deleted
domains, and expired pending transfers projected to another registrar.

BUG= http://b/588464773

nomulus-20261128-RC00

Toggle nomulus-20261128-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Enforce registrar ownership in bulk domain action (#3287)

ConsoleBulkDomainAction executes EPP commands with isSuperuser=true for
admin users, which bypasses EPP's verifyResourceOwnership check in
DomainDeleteFlow and DomainUpdateFlow. As a result, a bulk delete,
suspend, or unsuspend request tagged with registrarId=B could mutate
domains sponsored by registrar A when submitted by an admin (e.g. during
a UI registrar switch race).

For each target domain, load the active domain via
ForeignKeyUtils.loadResource inside the same transaction that the EPP
flow enlists in so ownership is verified atomically at the flow's
transaction timestamp (eliminating TOCTOU races with concurrent
transfers or registrations). Return an EPP 2201 authorization error
without running EPP or recording ConsoleUpdateHistory when the domain's
current sponsor does not match registrarId. For nonexistent or deleted
domains, invoke EPP with isSuperuser=false to preserve existing 2303
behavior without superuser fallthrough.

Also reject null entries in domainList with HTTP 400 and deduplicate
domainList (preserving order) before execution so duplicate entries do
not execute EPP twice or fail in toImmutableMap after mutating the DB.

Add unit tests covering admin cross-registrar delete, suspend, mixed
batches, duplicate domains, null list entries, nonexistent/deleted
domains, and expired pending transfers projected to another registrar.

BUG= http://b/588464773

nomulus-20261127-RC00

Toggle nomulus-20261127-RC00's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Cancel GlobalLoader timers on destroy (#3285)

GlobalLoaderService schedules 10-second RxJS timeout subscriptions for
active loaders, but did not implement OnDestroy to unsubscribe them when
the Angular injector is torn down. In Vitest runs exceeding 10 seconds
(such as CI), tests that instantiate UserDataService without resolving
the initial /console-api/userdata HTTP request leave a dangling timer
that fires after TestBed destruction and throws NG0205 when calling
MatSnackBar.open in UserDataService.loadingTimeout().

- Implement OnDestroy in GlobalLoaderService to unsubscribe and clear
  all active loader timers on teardown, and unsubscribe any existing
  loader subscription before replacing it in startGlobalLoader().
- Implement OnDestroy in all short-lived GlobalLoader components
  (HistoryComponent, ContactComponent, ContactDetailsComponent,
  RdapEditComponent, EppPasswordEditComponent, SecurityEditComponent)
  to call stopGlobalLoader(this) on component teardown so mid-flight
  route/view changes do not leak 10s timers.
- Fix constructor loader lifecycle in both UserDataService and
  RegistrarService: start the global loader before subscribing so
  synchronous completions do not leak a timer, use finalize() to stop
  the loader (and resolve registrarsLoaded) on completion/error/
  unsubscribe, pass an error observer ({ error: () => {} }) so RxJS
  does not trigger reportUnhandledError on rethrown HTTP errors, and
  implement OnDestroy to unsubscribe in-flight initial requests.
- Add unit tests in userData.service.spec.ts, registrar.service.spec.ts,
  shared.spec.ts, history.component.spec.ts, contact.component.spec.ts,
  rdap.component.spec.ts, and security.component.spec.ts covering
  TestBed teardown, ngOnDestroy, synchronous completion, error handling,
  duplicate startGlobalLoader calls, and short-lived component teardown.

BUG= http://b/588453384
0