[management] use realip for proxy registration (#5525)

This commit is contained in:
Pascal Fischer
2026-03-06 16:11:44 +01:00
committed by GitHub
parent 85451ab4cd
commit e6587b071d
3 changed files with 4 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ func NewProxyAuthInterceptors(tokenStore proxyTokenStore) (grpc.UnaryServerInter
}
func (i *proxyAuthInterceptor) validateProxyToken(ctx context.Context) (*types.ProxyAccessToken, error) {
clientIP := peerIPFromContext(ctx)
clientIP := PeerIPFromContext(ctx)
if clientIP != "" && i.failureLimiter.isLimited(clientIP) {
return nil, status.Errorf(codes.ResourceExhausted, "too many failed authentication attempts")