Skip to content

Log the classic hostname verification warning at warning level - #3479

Merged
pjfanning merged 1 commit into
apache:mainfrom
pjfanning:hostname-verification-warning
Aug 27, 2026
Merged

Log the classic hostname verification warning at warning level#3479
pjfanning merged 1 commit into
apache:mainfrom
pjfanning:hostname-verification-warning

Conversation

@pjfanning

Copy link
Copy Markdown
Member

Motivation

Both remoting transports log when TLS is enabled but hostname verification is
disabled, and both mark the message with LogMarker.Security. They disagree on
the level:

Transport Level
Artery (artery/tcp/ConfigSSLEngineProvider.scala) warning
Classic (transport/netty/SSLEngineProvider.scala) info

LogMarker.Security is the marker the documentation tells operators to treat as
security relevant, so logging it at info in classic remoting understates it
and makes it easy to lose in startup output.

Modification

Log the classic remoting message at warning, matching artery. The message text
and the LogMarker.Security marker are unchanged, and the artery side is
untouched.

Result

Both transports report a disabled hostname verification at the same level.

Tests

remote/Compile/compile passes. No test asserts on this message or its level.

References

None - noticed while reviewing #3478

### Motivation

Both remoting transports log when TLS is enabled without hostname
verification, but at different levels. Artery logs at `warning`, classic
remoting at `info`, where it is easily lost in startup output. Both carry the
`LogMarker.Security` marker, which the documentation tells operators to treat
as security relevant, so the lower level in classic understates it.

### Modification

Log the classic remoting message at `warning`, matching artery. The message
text is unchanged, as is the `LogMarker.Security` marker.

### Result

Both transports report a disabled hostname verification at the same level.

### Tests

No test asserts on this message or its level.

### References

None - noticed while reviewing apache#3478
@pjfanning
pjfanning merged commit 6bbd5d0 into apache:main Aug 27, 2026
10 checks passed
@pjfanning
pjfanning deleted the hostname-verification-warning branch August 27, 2026 21:05
@pjfanning pjfanning added this to the 2.0.0-M5 milestone Aug 28, 2026
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