The GitHub Actions job "Coverage" on rocketmq.git/codex/admin-acl-source-ip has 
failed.
Run started by GitHub user iloveeyjafjalla (triggered by iloveeyjafjalla).

Head commit for run:
4e793c13737f74afc645f7036d3e2d4f3f270686 / iloveeyjafjalla <[email protected]>
[ISSUE #11362] fix(proxy): evaluate the admin ACL against the client address, 
not the transport peer

The admin ACL subject address was read from Grpc.TRANSPORT_ATTR_REMOTE_ADDR.
The admin server shares the data plane's negotiator, so it accepts PROXY
protocol connections and its chain runs HeaderInterceptor, which resolves the
real client address (PROXY protocol address when present, transport peer
otherwise) into GrpcConstants.REMOTE_ADDRESS — the value the data plane's
authorization context was built from. Behind a proxy-protocol balancer the
transport peer is the balancer, so an -i restriction was evaluated against the
wrong address (denying operators behind it, or not restricting at all when the
balancer was in range) and the audit line recorded the balancer.

Prefer the normalized header, keeping the transport peer as the fallback for
the case where the interceptor runs without the standard pipeline.

Report URL: https://github.com/apache/rocketmq/actions/runs/38215256996

With regards,
GitHub Actions via GitBox

Reply via email to