[bug]: prime-cli compose sets WEBHOOK_ALLOWED_HOSTS from an undefined ${WEB_URL}, so the GitHub integration's Connect does nothing

Đang mở
#10,133 1 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

@harshdubey1234 đang làm issue này rồi.

Từ ngày 17/11/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/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ệ
docker-compose, python
Lĩnh vực
devops

Hướng nghiên cứu

Start by locating the prime-cli code that generates /var/plane/docker-compose.yml and review how it sets WEB_URL across the backend services. Check the generated Compose configuration and the WEBHOOK_ALLOWED_HOSTS expectation described in the issue. Done when a fresh setup supplies the instance host names in the expected format and the GitHub Connect webhook succeeds without a manual .env workaround.

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

Mô tả

Version: Plane Commercial v3.3.3, Docker Compose, installed with prime-cli setup --behind-proxy, instance on a private IP.

Current behavior: The compose file prime-cli generates in /var/plane/docker-compose.yml has, on all five backend services:

WEB_URL: http://192.168.105.110
WEBHOOK_ALLOWED_HOSTS: ${WEB_URL}
WEBHOOK_ALLOWED_IPS: ""

WEB_URL is written as a literal service variable, but ${WEB_URL} is Compose interpolation, resolved from the shell or from a .env file next to the compose file, and prime-cli creates neither. WEBHOOK_ALLOWED_HOSTS is therefore empty. Even if it were set, WEB_URL holds a URL with a scheme, while WEBHOOK_ALLOWED_HOSTS expects comma-separated host names.

On an instance whose domain resolves to a private address, the SSRF guard introduced in #8884 then rejects the webhook Plane sends to its own Silo service when a workspace connects GitHub: clicking Connect in Workspace settings > Integrations > GitHub does nothing, and the internal webhook call fails with a 400.

Workaround: create /var/plane/.env with WEB_URL=<host>,<domain> (host names only), then prime-cli restart.

Expected behavior: prime-cli fills WEBHOOK_ALLOWED_HOSTS with the instance's host names, or the compose file takes them from a variable prime-cli defines.

Ngôn ngữ chính
TypeScript
Star
63k
Fork
6.5k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
70

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 makeplane/plane

Tất cả issue của makeplane/plane

Issue tương tự

Thêm issue về TypeScript

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.