Skip to content

Remove EppProxyProtocolHandler from the pipeline - #3202

Merged
ptkach merged 1 commit into
google:masterfrom
ptkach:eppServerRemoveEppProxyProtocolHandler
Aug 7, 2026
Merged

Remove EppProxyProtocolHandler from the pipeline#3202
ptkach merged 1 commit into
google:masterfrom
ptkach:eppServerRemoveEppProxyProtocolHandler

Conversation

@ptkach

@ptkach ptkach commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

We no longer need to get an IP from the header, as it's now directly available in the context as verified in prod and crash


This change is Reviewable

@ptkach
ptkach requested a review from gbrodman August 5, 2026 20:32
@ptkach
ptkach force-pushed the eppServerRemoveEppProxyProtocolHandler branch from a06123c to 973521c Compare August 5, 2026 21:52
@ptkach
ptkach enabled auto-merge August 5, 2026 22:13

@gbrodman gbrodman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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


core/src/main/java/google/registry/eppserver/handler/EppServiceHandler.java line 140 at r1 (raw file):

      SocketAddress remoteAddress = ctx.channel().remoteAddress();
      if (remoteAddress instanceof InetSocketAddress inetSocketAddress) {
        clientAddress = inetSocketAddress.getAddress().getHostAddress();

i think if the InetSocketAddress fails to resolve for some reason then getAddress() returns null -- that case should probably be handled in the block below rather than throwing an NPE here. But i doubt this would ever actually come up in real life, so no big deal either way


core/src/test/java/google/registry/eppserver/handler/EppServiceHandlerTest.java line 20 at r1 (raw file):

import static google.registry.networking.handler.SslServerInitializer.CLIENT_CERTIFICATE_PROMISE_KEY;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.jupiter.api.Assertions.assertEquals;

we should probably use truth assertions in this class like we do everywhere else

this comment is non-blocking

@ptkach
ptkach force-pushed the eppServerRemoveEppProxyProtocolHandler branch from 973521c to 78f0e23 Compare August 6, 2026 14:48

@ptkach ptkach left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@ptkach made 2 comments.
Reviewable status: 4 of 5 files reviewed, all discussions resolved (waiting on gbrodman).


core/src/main/java/google/registry/eppserver/handler/EppServiceHandler.java line 140 at r1 (raw file):

Previously, gbrodman wrote…

i think if the InetSocketAddress fails to resolve for some reason then getAddress() returns null -- that case should probably be handled in the block below rather than throwing an NPE here. But i doubt this would ever actually come up in real life, so no big deal either way

I don't think it's possible, as the IP in this case is provided by the Load Balancer and the block below should cover any unlikely issue that might appear


core/src/test/java/google/registry/eppserver/handler/EppServiceHandlerTest.java line 20 at r1 (raw file):

Previously, gbrodman wrote…

we should probably use truth assertions in this class like we do everywhere else

this comment is non-blocking

Updated

@ptkach
ptkach added this pull request to the merge queue Aug 6, 2026

@gbrodman gbrodman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 6, 2026
@ptkach
ptkach added this pull request to the merge queue Aug 6, 2026
Merged via the queue into google:master with commit 76bd13d Aug 7, 2026
16 checks passed
@ptkach
ptkach deleted the eppServerRemoveEppProxyProtocolHandler branch August 7, 2026 01:40
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