Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Router dynamic xDS gRPC control plane runs plaintext on 0.0.0.0:18000

Đang mở Phù hợp với người mới
#2,276 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, grpc
Lĩnh vực
networking, security

Hướng nghiên cứu

Đọc phần thiết lập listener trong cmd/atenet/internal/router/dataplane.go quanh dòng 91, sau đó so sánh với các tham chiếu trong router.go và cách Envoy kết nối với xDS. Issue được hoàn tất khi listener xDS chấp nhận kết nối trên loopback thay vì tất cả các giao diện, đồng thời vẫn có thể được Envoy trong cùng pod truy cập.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/security

This issue was generated as part of an AI review of pre-GA debug and diagnostic surfaces.

Problem Description

In cmd/atenet/internal/router/router.go:91-98 and dataplane.go:91, the dynamic xDS Aggregated Discovery Service (ADS, CDS, LDS, RDS, SDS) is initialized on all interfaces:

lis, err := net.Listen("tcp", fmt.Sprintf(":%d", s.cfg.XdsPort))

Port 18000 (--port-xds=18000) is served over plaintext gRPC with no TLS and no authentication interceptors.

Impact

While Envoy in the same pod dials 127.0.0.1:18000, the server listens on 0.0.0.0. Any pod on the cluster network capable of reaching the atenet-router pod IP can connect to port 18000 and stream all dynamic xDS resources via ADS (discoverygrpc) or SDS (secretgrpc).

This exposes listener configurations, route tables, internal cluster endpoints, and secret metadata (including filesystem paths of certificates and trust bundles).

Proposed Remediation

In cmd/atenet/internal/router/dataplane.go:91, bind strictly to loopback:

lis, err := net.Listen("tcp", net.JoinHostPort("127.0.0.1", strconv.Itoa(s.cfg.XdsPort)))
Ngôn ngữ chính
Go
Star
4.4k
Fork
515
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
279

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của agent-substrate/substrate

Tất cả issue của agent-substrate/substrate

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.