Files
plane-gptproto-integration/deploy/local/patches/01-env-gated-register-instance.patch
T
carlandCursor 0136c15274 Initial commit: Plane 自部署与 gptproto AI 集成
包含本地/远程部署脚本、AI Agent 服务、Dashboard 与 QA 验证。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 11:37:41 +08:00

22 lines
1016 B
Diff

--- /tmp/orig_register.py 2026-05-13 15:49:57
+++ /tmp/current_register.py 2026-05-13 15:49:57
@@ -38,6 +38,9 @@
return "v0.1.0"
def check_for_latest_version(self, fallback_version):
+ # LOCKDOWN: env-gated GitHub fetch — set DISABLE_GITHUB_VERSION_CHECK=1 to skip
+ if os.environ.get("DISABLE_GITHUB_VERSION_CHECK") == "1":
+ return fallback_version
try:
response = requests.get(
"https://api.github.com/repos/makeplane/plane/releases/latest",
@@ -65,6 +68,8 @@
raise CommandError("Machine signature is required")
instance = Instance.objects.create(
+ # LOCKDOWN: env-gated default — set DISABLE_TELEMETRY=1 to start with telemetry off
+ is_telemetry_enabled=(os.environ.get("DISABLE_TELEMETRY") != "1"),
instance_name="Plane Community Edition",
instance_id=secrets.token_hex(12),
current_version=current_version,