diff --git a/backend/src/orchestration-worker/worker-transport.module.ts b/backend/src/orchestration-worker/worker-transport.module.ts index b8b0fd47..3802abe1 100644 --- a/backend/src/orchestration-worker/worker-transport.module.ts +++ b/backend/src/orchestration-worker/worker-transport.module.ts @@ -42,7 +42,7 @@ function validArtifactBase(value: string): boolean { /^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/.test(u.hostname) && u.hostname.includes(".") && !/^[0-9.]+$/.test(u.hostname) && !/(^|\.)(localhost|local|internal|lan|home)$/.test(u.hostname) && - u.pathname === "/internal/prepare-worker/artifacts" && + ["/internal/prepare-worker/artifacts", "/api/internal/prepare-worker/artifacts"].includes(u.pathname) && value === u.origin + u.pathname; } catch { return false; } } diff --git a/scripts/ci-host-deploy.sh b/scripts/ci-host-deploy.sh index c9c62d38..8487ba1a 100644 --- a/scripts/ci-host-deploy.sh +++ b/scripts/ci-host-deploy.sh @@ -41,5 +41,5 @@ script=$(mktemp) trap 'rm -f "$script"' EXIT wget --no-proxy -qO "$script" "https://git.parsaaghayi.ir/parsa/canina/raw/commit/${1}/scripts/deploy.sh" # CI marker exists only across this authenticated, fixed Stage boundary. -GITHUB_ACTIONS=true STAGE_PROVISION_ENABLED=false DEPLOY_SHA="$1" bash "$script" develop +GITHUB_ACTIONS=true STAGE_PROVISION_ENABLED=true DEPLOY_SHA="$1" bash "$script" develop HOST diff --git a/scripts/rollout-stage.sh b/scripts/rollout-stage.sh index 5e4f2eba..abcae43c 100644 --- a/scripts/rollout-stage.sh +++ b/scripts/rollout-stage.sh @@ -75,6 +75,7 @@ PY } stage_runtime_render() { + chmod 644 "$TARGET_DIR/infra/hermes-runtime/serve.py" export STAGE_RUNTIME_SERVE_FILE="$TARGET_DIR/infra/hermes-runtime/serve.py" export STAGE_RUNTIME_SNAPSHOT STAGE_RUNTIME_SNAPSHOT=$(python3 -c 'import json;print(json.load(open(".stage-runtime.json"))["snapshot"])')