ARIS EP — omni-route gateway for ARIS stack (Rust/axum)
  • Rust 99.2%
  • Dockerfile 0.8%
Find a file
ARIS 690c3ac27e
Some checks failed
Code Review (Codex) / review (push) Failing after 3m18s
review: fix all 17 findings from Codex review (3 P1, 13 P2, 1 P3)
P1:
- admin UI: probe buttons now POST /providers/{id}/probe (provider and
  connection rows) and show the result; connection key entry uses a
  masked password form instead of prompt()
- import: merge instead of clobber — destination-only records preserved,
  ID collisions rejected unless --force
- base URL guard: host parsed via url::Url (authority), a second "://"
  in the path can no longer bypass the metadata-host block

P2:
- probe runs without holding the store mutex (credential+URL read under
  the lock, request after release); discovery persisted only for a
  connection validated against the requested provider
- Discovery now stores the model list returned by probe (UI count works)
- probe response body read in chunks with a 1 MiB hard limit
- ARIS_EP_EXTRA_CA: operator CA (PEM) for upstreams with private certs
  (e.g. GigaAM), certificate verification stays enabled
- master.key: created 0600 before any byte is written (O_EXCL), data dir
  locked exclusively (flock) for the store lifetime; startup fails if
  the dir/key are accessible to other users
- save(): tmp file synced before rename, parent dir synced after
- upsert_connection: staged state, validated and persisted before
  in-memory publish; base URL change invalidates discovery/models
- provider-level disable now gates all its connections (view + credential)
- decrypt: IV must be exactly 12 bytes, tag 16 (no Nonce panic)
- hint(): last 4 chars on UTF-8 boundaries (no byte-slice panic)

Tests: +3 (metadata bypass, multibyte hint, bad IV, import collision)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-11-21 20:44:59 +00:00
.forgejo/workflows CI: drop workflow_dispatch — manual dispatch on feature branch could reach Codex mount (review P1) 2026-11-21 19:59:18 +00:00
src review: fix all 17 findings from Codex review (3 P1, 13 P2, 1 P3) 2026-11-21 20:44:59 +00:00
.dockerignore aris-ep skeleton: axum gateway (healthz, admin placeholder), Dockerfile (UID 1001), README 2026-11-21 18:51:27 +00:00
.gitignore aris-ep skeleton: axum gateway (healthz, admin placeholder), Dockerfile (UID 1001), README 2026-11-21 18:51:27 +00:00
Cargo.lock review: fix all 17 findings from Codex review (3 P1, 13 P2, 1 P3) 2026-11-21 20:44:59 +00:00
Cargo.toml review: fix all 17 findings from Codex review (3 P1, 13 P2, 1 P3) 2026-11-21 20:44:59 +00:00
Dockerfile Dockerfile: copy src before cargo fetch (manifest needs targets to parse) 2026-11-21 19:56:37 +00:00
README.md aris-ep skeleton: axum gateway (healthz, admin placeholder), Dockerfile (UID 1001), README 2026-11-21 18:51:27 +00:00

aris-ep

Наследник ARIS Gateway — omni-route для стека ARIS на VPS (.193): единая точка входа, роутинг на соседние контейнеры по loopback/WG, админ-панель.

Состояние

Скелет (Rust, axum): /healthz, /admin_ilka1999 (заглушка админки), /. Omni-роутинг на сервисы — следующий этап.

Запуск локально

cargo run                          # бинд 192.168.200.1:3001 (по умолчанию)
ARIS_EP_BIND=127.0.0.1:3001 cargo run   # для локальной проверки

Переменные окружения

Переменная По умолчанию Назначение
ARIS_EP_BIND 192.168.200.1:3001 адрес:порт (WG-интерфейс VPS)
ARIS_EP_DATA_DIR /data папка данных (состояние, конфиг)
RUST_LOG info уровень логов

Docker

docker build -t aris-ep:dev .

Образ: debian:bookworm-slim, бинарник ~10–20 МБ, работает от non-root UID 1001 (конвенция VPS: 1000 = forgejo, 1001 = aris-ep, 1002+ — следующие).

На VPS контейнер поднимается compose-файлом /opt/aris/aris-ep/docker-compose.yml (network_mode: host, volume /var/lib/aris/aris-ep:/data).

Публичный доступ

https://aris-ep.webdbg.io/admin_ilka1999 — через nginx на webdbg.io по WireGuard-туннелю; префикс /admin_ilka1999 пробрасывается в сервис как есть. Доступ — только IP владельца.