ARIS EP — omni-route gateway for ARIS stack (Rust/axum)
- Rust 99.2%
- Dockerfile 0.8%
|
Some checks failed
Code Review (Codex) / review (push) Failing after 3m18s
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>
|
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Dockerfile | ||
| README.md | ||
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 владельца.