Skip to content

Conversation

@gbrodman
Copy link
Collaborator

@gbrodman gbrodman commented Jan 2, 2026

I don't know where in the spec these are explicitly disallowed, but it seems like good practice and we'll fail the RST tests if we don't disallow them.


This change is Reviewable

@gbrodman gbrodman requested a review from CydeWeys January 2, 2026 23:27
Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CydeWeys made 1 comment.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @gbrodman).


core/src/main/java/google/registry/flows/host/HostFlowUtils.java line 116 at r1 (raw file):

  public static void validateInetAddresses(ImmutableSet<InetAddress> inetAddresses)
      throws EppException {
    if (inetAddresses == null) {

No need for this. You're always passing in a minimum of an empty set. (See implementation of getInetAddresses())

Copy link
Collaborator Author

@gbrodman gbrodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gbrodman made 1 comment.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @CydeWeys).


core/src/main/java/google/registry/flows/host/HostFlowUtils.java line 116 at r1 (raw file):

Previously, CydeWeys (Ben McIlwain) wrote…

No need for this. You're always passing in a minimum of an empty set. (See implementation of getInetAddresses())

sure

Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CydeWeys resolved 1 discussion.
Reviewable status: 0 of 5 files reviewed, all discussions resolved.

Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CydeWeys reviewed 5 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @gbrodman).

@gbrodman gbrodman enabled auto-merge January 5, 2026 19:11
I don't know where in the spec these are explicitly disallowed, but it
seems like good practice and we'll fail the RST tests if we don't
disallow them.
Copy link
Collaborator Author

@gbrodman gbrodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually inetAddresses can be null, e.g. https://github.com/google/nomulus/blob/master/core/src/main/java/google/registry/model/host/HostCommand.java#L57

@gbrodman made 1 comment.
Reviewable status: 4 of 5 files reviewed, all discussions resolved (waiting on @CydeWeys).

@gbrodman gbrodman added this pull request to the merge queue Jan 5, 2026
Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CydeWeys made 1 comment.
Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @gbrodman).


core/src/main/java/google/registry/flows/host/HostFlowUtils.java line 114 at r3 (raw file):

  /** Makes sure that no provided IP addresses are local / loopback addresses. */
  public static void validateInetAddresses(ImmutableSet<InetAddress> inetAddresses)

Mark param with @Nullable then.

Merged via the queue into google:master with commit 9555dca Jan 5, 2026
9 of 10 checks passed
@gbrodman gbrodman deleted the forbidLocalhost branch January 5, 2026 23:15
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.

2 participants