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

未关闭
#10,133 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@harshdubey1234 已经在做这个了。

开始于 2026年11月17日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
docker-compose, python
领域
devops

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
63k
派生
6.5k
平均合并
2 天 16 小时
30 天内合并 PR
70

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

makeplane/plane 的其他 Issue

查看 makeplane/plane 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。