From 2a30def39795a8c32fcc76c14ff3ae502ed2c8fb Mon Sep 17 00:00:00 2001 From: codex Date: Sun, 15 Nov 2026 18:51:41 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=D1=83=D1=81=D1=82=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BD=D1=84=D0=BB=D0=B8=D0=BA?= =?UTF-8?q?=D1=82=D1=83=D1=8E=D1=89=D0=B8=D0=B5=20=D0=B8=D0=BD=D1=81=D1=82?= =?UTF-8?q?=D1=80=D1=83=D0=BA=D1=86=D0=B8=D0=B8=20=D0=BF=D0=BE=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B7=D1=83=D0=BB=D1=8C=D1=82=D0=B0=D1=82=D0=B0=D0=BC=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B2=D1=8C=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 4 +-- docs/operations/ACCESS.md | 63 +++++++++++++++------------------------ 2 files changed, 26 insertions(+), 41 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0a48ed7..604b162 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -72,8 +72,8 @@ Python, SQLite и OpenSearch. Для инфраструктурных задач changelog и отправь коммит в тот же PR. Повтори полное ревью итогового diff и CI. Для docs-only задачи версию приложения повышай только при явном требовании к этой правке. -- Разрешённый Merge выполняется через Gitea Agent MCP после независимого ревью. - Перед слиянием проверь `admin/akyldash`, номер PR, автора `codex`, base +- Merge через Gitea Agent MCP допускается после независимого ревью и только + при явном разрешении владельца репозитория. Перед слиянием проверь `admin/akyldash`, номер PR, автора `codex`, base `main`, ожидаемую ветку и точные SHA head/base. Нужны все успешные обязательные checks и gates, отсутствие открытых блокеров и действующих `REQUEST_CHANGES`, формальный `APPROVED` от `agent` с diff --git a/docs/operations/ACCESS.md b/docs/operations/ACCESS.md index 156f89c..9445d1c 100644 --- a/docs/operations/ACCESS.md +++ b/docs/operations/ACCESS.md @@ -2,20 +2,14 @@ ## Discover existing access first -In a new Codex session, inspect the SSH alias and key file metadata without -printing key contents, then check the connection: +For repository work in Windows Codex, use `commerce-infra` to read the +`commerce/akyldash` context through Gitea Infrastructure Registry MCP. Use +Gitea Codex MCP to read the project sources and prepare changes. +Use the repository PR rules for formal review and permitted merge. -```bash -ssh -F ~/.ssh/config -G akyldash_vps | awk '$1 == "hostname" || $1 == "user" || $1 == "port" || $1 == "identityfile" { print }' -test -r ~/.ssh/akyldash_codex && echo 'SSH key is available' -ssh -F ~/.ssh/config -o BatchMode=yes akyldash_vps id -ssh -F ~/.ssh/config -o BatchMode=yes akyldash_vps hostname -f -gitea-api GET /version -gitea-api GET /repos/admin/akyldash -``` - -Do not ask for the host, login, password, token, or key again before these -checks. Never print a private key, token, or complete environment file. +Host access is needed only for separately authorized runtime diagnostics. +Check the configured SSH alias and key metadata without reading key contents. +Do not request passwords, tokens, or keys, or print a complete environment file. ## VPS @@ -42,36 +36,27 @@ checks. Never print a private key, token, or complete environment file. It does not start Compose or create volumes. - Never connect to other VPS hosts or Synology as part of this deployment. -This execution environment is WSL2. The repository is on the Windows-mounted -`/mnt/d` filesystem, while SSH config and the identity file are in the Linux -home directory. Do not assume Windows SSH credentials are available or copy -keys between environments. Plain `ssh akyldash_vps` failed because the system -SSH config include had unsafe permissions. Use `ssh -F ~/.ssh/config ...`; in a -network-restricted session this read-only command may also require approved -execution. If the key is missing in a future environment, report that -limitation and do not retrieve it elsewhere. +For authorized runtime diagnostics, use the configured read-only SSH access. +Validate the resolved alias, hostname, user and port before connecting. Only +use an existing approved key for this environment. If access is unavailable, +record the limitation. Do not copy keys between environments. ## Gitea - Repository: `https://git.vakanaut.ru/admin/akyldash`. -- Use the installed `gitea-api` helper; it reads credentials from the - environment. Never inspect local credential files, print environment values, - or construct HTTP authorization headers. -- The audited API token can read/write this repository and create issues, but - does not have `read:user` or `read:package`. Listing repository Actions - runners returns `403` because the API principal is not the repository owner. - An API `403` caused by missing scope/ownership is not evidence that no runner - exists. -- Protected `main` requires one approval. Do not push directly to `main`, merge - automatically, or start a review. Work on a feature branch and use a PR. -- Gitea Actions and package features are enabled for the repository. The Actions - task API currently returns no runs, but runner availability and package - publishing permissions have not been confirmed. The repository-level runner - is prepared by `infra/runner/install-runner.sh`, but is not installed or - registered yet. Only a repository owner may obtain its registration token in - `admin/akyldash` Settings → Actions → Runners; do not use organization or - instance tokens and never put the token in Git, a command argument, or a - report. See [CI_RUNNER.md](CI_RUNNER.md). +- Use Gitea Codex MCP to read the repository, prepare changes in a separate + branch and open the PR. Use Gitea Agent MCP for formal review, approval and + permitted merge according to [AGENTS.md](../../AGENTS.md#согласование-изменений). + Do not inspect credential files, print secret environment values, or construct + authorization headers. +- Protected `main` requires at least one independent approval and the required + CI checks. Direct push to `main` is prohibited. Merge requires the current + head approval and the checks listed in AGENTS.md. +- A `403` can indicate missing scope or owner permissions. It does not establish + runner absence. Only a repository owner may obtain the repository runner + registration token in `admin/akyldash` Settings → Actions → Runners. Do not use + organization or instance tokens or put the token in Git, a command argument, + or a report. See [CI_RUNNER.md](CI_RUNNER.md). ## Who can do what