diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dd63b3..83c6eb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Не выпущено +- Runner installer сохраняет `HOME` и XDG-пути в user-unit `docker.service` и проверяет применённое окружение после запуска. - Runner installer защищает image и mountpoint root-owned home-каталогом, оставляет регистрацию и workspace в runner-owned каталоге, безопасно форматирует образ по открытому FD и проверяет `nosuid,nodev`. - Backend `0.11.3`: ключ подписи поисковых снимков читается из Docker secret-файла, а не из аргументов процесса. Добавлена базовая инфраструктура VPS, Caddy HTTPS proxy с разделёнными Compose-сетями и CI-проверка конфигурации; публикация образов и production-деплой остаются выключены до проверки runner, registry, backup/restore и ограниченного deploy-helper. - Frontend `0.1.2`: на планшетной ширине экран поиска переходит в одну колонку, чтобы фильтры, результаты и документ помещались в окно. diff --git a/docs/operations/CURRENT_STATE.md b/docs/operations/CURRENT_STATE.md index 5e0c047..dd0120d 100644 --- a/docs/operations/CURRENT_STATE.md +++ b/docs/operations/CURRENT_STATE.md @@ -96,9 +96,10 @@ UFW rule details, and protected file metadata remain unverified. `0755` config directories, creates the image through a pinned file descriptor, rejects path replacement, and requires mount options `nosuid,nodev`. The reported installation blocker is that rootless setup receives this - protected directory as `HOME`; the fix prepared in this PR assigns writable - runner-owned HOME/XDG paths and checks them before setup. It has not been - merged or run on the VPS. + protected directory as `HOME`; the installer assigns writable runner-owned + HOME/XDG paths, persists them in the `docker.service` user-unit drop-in, and + checks the effective unit environment after startup. Local runner guards pass; + the change has not been run on the VPS. - Gitea repository runner inventory could not be read by the current API principal (403). The owner has not supplied runner state, and no runner Online status or runner-hosted workflow is claimed. The manual diff --git a/infra/runner/install-runner.sh b/infra/runner/install-runner.sh index bae4922..59ffe2e 100644 --- a/infra/runner/install-runner.sh +++ b/infra/runner/install-runner.sh @@ -145,6 +145,12 @@ TasksMax=1024 Restart=always RestartSec=5 EOF +runner_install_user_content "$runner_home/.config/systemd/user/docker.service.d/environment.conf" "$runner_user" "$runner_user" 0644 <&2 + exit 1 +fi grep -Fq 'HOME=/var/lib/akyldash-runner/.config/act-runner' infra/runner/act-runner-healthcheck.sh grep -Fq 'XDG_CONFIG_HOME=/var/lib/akyldash-runner/.config' infra/runner/act-runner-healthcheck.sh grep -Fq 'XDG_DATA_HOME=/var/lib/akyldash-runner/.config/act-runner/.local/share' infra/runner/act-runner-healthcheck.sh