Commit Graph
127 Commits
Author SHA1 Message Date
karpenokandCursor c99c4cd10c fix(remnawave): не создавать повторно конфиг подписки Homelab
ansible-core-net / deploy (push) Successful in 19s
Список API отдаёт config=null, POST ловил 400 «name already exists».

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:42:36 +07:00
karpenokandCursor 0699aa9476 fix(remnawave): логи bootstrap видны, ключи только в файле
ansible-core-net / deploy (push) Failing after 11s
no_log остаётся на чтении секретов, Infisical и .env.
stdout задачи — статус без токена и SECRET_KEY.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:41:37 +07:00
karpenokandCursor e4fc3fce69 fix(remnawave): пользователи из файла, ротация API-токена без логов
ansible-core-net / deploy (push) Failing after 14s
users.yml — источник правды (homelab — первый). Именованный токен
перевыпускается каждый прогон и пишется в Infisical; stdout/stderr
секретов в CI закрыты no_log и redact.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:39:18 +07:00
karpenokandCursor 928c04ce9d fix(ger-nod-02): NODE_PORT с обоих WAN-провайдеров панели
ansible-core-net / deploy (push) Canceled after 0s
ansible-ger-nod-02 / deploy (push) Successful in 1m12s
213.128.28.107 — провайдер 1 (МТС), 185.160.137.140 — провайдер 2.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:26:38 +07:00
karpenokandCursor 1733a9f977 fix(ger-nod-02): правильный egress панели для NODE_PORT
ansible-core-net / deploy (push) Canceled after 5s
ansible-ger-nod-02 / deploy (push) Successful in 1m3s
В UFW был 213.128.28.107 (МТС), реал egress core-net —
185.160.137.140; панель не достукивалась до 2222, Xray не
поднимал 443.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:24:57 +07:00
karpenokandCursor 0a56b935de fix(ger-nod-02): пароль как у central, HTTP-01 без ACME TXT, кавычки SECRET_KEY
ansible-rus-central / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-core-net / deploy (push) Canceled after 0s
ansible-core-mon / deploy (push) Canceled after 24s
ansible-ger-nod-02 / deploy (push) Successful in 4m1s
Падение было на :443 — SECRET_KEY без кавычек ломал ноду.
DNS-01 убран: LE через standalone HTTP-01, старые _acme-challenge чистим.
ansible_password только из /VPS; host в плейбуке как у rus-central.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:20:02 +07:00
karpenokandCursor 0f7fe4e352 fix(ger-nod-02): передавать SSH args через JSON @file
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-net / deploy (push) Successful in 36s
ansible-core-secrets / deploy (push) Successful in 13s
ansible-ger-nod-02 / deploy (push) Failing after 3m21s
ansible-opnsense / deploy (push) Successful in 4s
ansible-rus-central / deploy (push) Successful in 1m6s
-e ansible_ssh_common_args=-o ... резало значение по пробелам,
ssh получал голый -o и падал с UNREACHABLE.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:09:33 +07:00
karpenokandCursor 385505b5f7 fix(ger-nod-02): читать PASS из /VPS, Cloudflare из /ci-cd
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 36s
ansible-core-secrets / deploy (push) Successful in 13s
ansible-ger-nod-02 / deploy (push) Failing after 2s
ansible-opnsense / deploy (push) Successful in 4s
ansible-rus-central / deploy (push) Successful in 1m6s
Реальные пути в Infisical: CLOUDFLARE_API в /ci-cd, PASS_GER_NOD_02
в /VPS — без пароля SSH был Permission denied.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 23:06:05 +07:00
karpenokandCursor 6aa2b26f47 fix(remnawave): healthcheck subscription через docker health
ansible-core-net / deploy (push) Successful in 12s
Корень / рвёт коннект без Traefik+shortUuid; официальный probe —
/internal/health внутри контейнера (State.Health.Status).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:58:35 +07:00
karpenokandCursor dd19301c33 fix(remnawave): не светить ключи в CI + заметка в BOOTSTRAP
ansible-core-net / deploy (push) Failing after 1m0s
no_log на bootstrap; stderr API редáctит privateKey/SECRET_KEY/токены;
в BOOTSTRAP — правило для новых установок.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:53:40 +07:00
karpenokandCursor a4a0655888 fix(remnawave): парсить keypairs[] из x25519 generate v3
ansible-core-net / deploy (push) Failing after 1m27s
API отдаёт массив пар, а не одиночные privateKey/publicKey.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:48:29 +07:00
karpenokandCursor 8872b8765e fix(remnawave): bootstrap на admin JWT, API-токен со scopes *
ansible-core-net / deploy (push) Failing after 11s
Не переключаемся на API-токен mid-bootstrap (из-за этого был 403
на /keygen/). Токен создаём с wildcard; если нельзя — явный assert.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:45:51 +07:00
karpenokandCursor 6a59391a6c fix(remnawave): X-Remnawave-Client-Type browser для admin JWT
ansible-core-net / deploy (push) Failing after 12s
Без заголовка v3 отвечает 403 на /tokens и остальной API;
секреты админа всегда пишем в /services/remnawave.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:40:24 +07:00
karpenokandCursor 25bf393cab fix(remnawave): не парсить JSON bootstrap при rc!=0
ansible-core-net / deploy (push) Failing after 10s
Иначе Ansible глотает stderr; fail-таска печатает ошибку API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:37:25 +07:00
karpenokandCursor d2d3c704be fix(remnawave): показать stderr bootstrap в CI
ansible-core-net / deploy (push) Failing after 9s
Админ уже создан; нужно увидеть, на каком API v3 падает дальше.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:34:48 +07:00
karpenokandCursor 39d1f66663 fix(remnawave): убрать ${#arr} из bootstrap-шаблона
ansible-core-net / deploy (push) Failing after 11s
Иначе lookup(template) ломается на Jinja-комментарии.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:31:45 +07:00
karpenokandCursor 8f17cbbb62 fix(remnawave): упростить запись секретов в Infisical
ansible-core-net / deploy (push) Failing after 12s
Убрать условные массивы и комментарии с {#, из-за которых
Ansible ломал разбор shell-задачи.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:31:12 +07:00
karpenokandCursor d8fc365ee8 fix(remnawave): не ломать shell на ${#args[@]} в Jinja
ansible-core-net / deploy (push) Failing after 1s
Ansible воспринимает {# как начало комментария.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:30:08 +07:00
karpenokandCursor 58aba40bc0 fix(remnawave): admin password v3 + bootstrap под Remnawave 3.4 API
ansible-core-mon / deploy (push) Failing after 2s
ansible-core-net / deploy (push) Failing after 1s
ansible-core-secrets / deploy (push) Failing after 2s
ansible-ger-nod-02 / deploy (push) Failing after 1s
ansible-opnsense / deploy (push) Failing after 2s
ansible-rus-central / deploy (push) Failing after 2s
Генерируем REMNAWAVE_ADMIN_* (≥24) в /services/remnawave; токены
через name/expiresInDays/scopes; SECRET_KEY ноды из GET /api/keygen/.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:29:10 +07:00
karpenokandCursor 5e0c2553ca fix(remnawave): убрать ulimits nofile для LXC на core-net
ansible-core-net / deploy (push) Failing after 26s
На unprivileged LXC rlimit 1048576 блокирует старт контейнеров;
pull вынесен отдельно с ретраями.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:21:48 +07:00
karpenokandCursor f9fc058b1a fix(remnawave): ensure Infisical folder exists before writing secrets
ansible-core-net / deploy (push) Failing after 1m8s
Create /services/remnawave if missing and pass INFISICAL_* into delegated localhost tasks explicitly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:18:52 +07:00
karpenokandCursor 8caaddc779 feat(remnawave): declarative panel on core-net and SelfSteal node on ger-nod-02
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-ger-nod-02 / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-rus-central / deploy (push) Canceled after 0s
ansible-core-net / deploy (push) Failing after 26s
Add Remnawave panel+subscription behind Traefik (rw/sub.gunihome.ru), API bootstrap into Infisical, and ger-nod-02 node with Cloudflare DNS-01 SelfSteal (yali.gunis.top). Leaves remna.gunihome.ru on Golova untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 22:15:45 +07:00
karpenok a0ec829eee fix(monitoring): escape go templates with raw block in alertmanager-ntfy template
ansible-core-mon / deploy (push) Successful in 12s
2026-11-11 21:06:52 +07:00
karpenok 317b5d6207 feat(monitoring): integrate alertmanager-ntfy and fix host dropdown in node exporter dashboard
ansible-core-mon / deploy (push) Failing after 21s
ansible-core-net / deploy (push) Successful in 24s
ansible-core-secrets / deploy (push) Successful in 13s
ansible-rus-central / deploy (push) Successful in 1m1s
2026-11-11 20:54:55 +07:00
karpenok bf4144a767 docs & refactor: sync secrets docs and clean up env var lookups
ansible-core-mon / deploy (push) Successful in 22s
ansible-core-net / deploy (push) Successful in 24s
ansible-core-secrets / deploy (push) Successful in 15s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 40s
2026-11-11 18:26:51 +07:00
karpenok e443b0fd97 feat(ci): fallback netbird admin credentials to /USER/ADMIN
ansible-core-mon / deploy (push) Successful in 22s
ansible-core-net / deploy (push) Successful in 24s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 4s
ansible-rus-central / deploy (push) Successful in 37s
2026-11-11 18:09:36 +07:00
karpenok f78d765bac chore(monitoring): remove one-off grafana session cleanup task
ansible-core-mon / deploy (push) Successful in 10s
2026-11-11 18:07:24 +07:00
karpenok 583dd98566 feat(monitoring): enable ntfy web login and purge stale grafana oauth sessions
ansible-core-mon / deploy (push) Successful in 11s
2026-11-11 18:00:49 +07:00
karpenok 18a6b1fbe4 fix(authentik): use bool filter for authentik_enabled conditional
ansible-core-net / deploy (push) Successful in 6s
2026-11-11 17:48:38 +07:00
karpenok c0a9d7f0c8 refactor(auth): remove Authentik SSO, restore basic auth and provision Node Exporter dashboard
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-net / deploy (push) Failing after 25s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 37s
2026-11-11 17:45:21 +07:00
karpenok 94a143623b fix(auth): add email fallback scope for Grafana OAuth and set attribute paths
ansible-core-mon / deploy (push) Successful in 9s
ansible-core-net / deploy (push) Successful in 18s
2026-11-11 17:07:00 +07:00
karpenok 811d65526b feat(auth): integrate Grafana and Ntfy with Authentik SSO
ansible-core-mon / deploy (push) Successful in 24s
ansible-core-net / deploy (push) Successful in 39s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 3s
ansible-rus-central / deploy (push) Successful in 36s
2026-11-11 16:52:38 +07:00
karpenok 3670bb6033 feat(monitoring): sync grafana admin password from infisical via stdin
ansible-core-mon / deploy (push) Successful in 7s
2026-11-11 16:20:19 +07:00
karpenok 0205a5502a fix(host): clean up legacy docker exporter on core-mon
ansible-core-mon / deploy (push) Successful in 20s
ansible-core-net / deploy (push) Successful in 28s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-rus-central / deploy (push) Successful in 37s
2026-11-11 16:15:15 +07:00
karpenok 7b2f6790c4 feat(host): install and enable prometheus-node-exporter on all managed hosts
ansible-core-mon / deploy (push) Failing after 31s
ansible-core-net / deploy (push) Successful in 50s
ansible-core-secrets / deploy (push) Successful in 38s
ansible-rus-central / deploy (push) Successful in 59s
2026-11-11 16:12:05 +07:00
karpenok 065c47aee2 fix(monitoring): copy alerts.yml without jinja2 templating
ansible-core-mon / deploy (push) Successful in 1m8s
ansible-core-net / deploy (push) Successful in 18s
2026-11-11 16:08:38 +07:00
karpenok 2445df7146 ci(core-mon): trigger full bootstrap of core-mon container
ansible-core-mon / deploy (push) Failing after 1m13s
2026-11-11 16:06:08 +07:00
karpenok f26e0bfe57 feat(monitoring): add core-mon ansible playbook, roles, workflows, and traefik routes
ansible-core-mon / deploy (push) Failing after 7s
ansible-core-net / deploy (push) Successful in 26s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 3s
ansible-rus-central / deploy (push) Successful in 44s
2026-11-11 16:00:53 +07:00
karpenok 38fc67048a fix(opnsense): set timeout for netbird up action
ansible-opnsense / deploy (push) Successful in 12s
2026-11-11 14:53:32 +07:00
karpenok ca604926d1 feat(traefik): add TCP SNI passthrough for central.gunihome.ru
ansible-core-net / deploy (push) Successful in 17s
2026-11-11 14:51:47 +07:00
karpenok 514d758600 fix(opnsense): use custom HTTPS WebGUI port 4433 for OPNsense REST API
ansible-opnsense / deploy (push) Failing after 33s
2026-11-11 13:00:43 +07:00
karpenok 822ae43992 feat(opnsense): add declarative NetBird plugin role and CI workflow
ansible-opnsense / deploy (push) Failing after 33s
2026-11-11 12:57:44 +07:00
karpenok 11b6539a7b fix(netbird): extract plain_token from PAT response and add OAuth2 PKCE token fallback
ansible-rus-central / deploy (push) Successful in 20s
2026-11-11 12:56:27 +07:00
karpenok 324327ee24 feat(netbird): automate admin setup, API token, setup key, and LAN route on rus-central
ansible-core-net / deploy (push) Successful in 25s
ansible-core-secrets / deploy (push) Successful in 10s
ansible-rus-central / deploy (push) Failing after 1m24s
2026-11-11 12:46:01 +07:00
karpenok 842a633916 chore(ansible,ci): align workflow paths, shared letsencrypt_email, and netbird task tags
ansible-core-net / deploy (push) Successful in 27s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-rus-central / deploy (push) Successful in 36s
2026-11-11 11:35:45 +07:00
karpenokandCursor a0507719b0 refactor: drop the finished secrets migration from the deploy path
Product tags now come from the role directory, and edits to the CI scripts no longer redeploy every machine.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 00:09:23 +07:00
karpenokandCursor 9f337445a9 fix(authentik): pin Redis 8 so the existing RDB dump loads
ansible-core-net / deploy (push) Successful in 13s
Redis 7.4 refuses the dump written by the previous redis:alpine image, so Authentik stays down after deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-10 23:59:31 +07:00
karpenokandCursor 9c692522fb refactor: split machine deploys from one-time secrets migration
ansible-core-net / deploy (push) Failing after 39s
ansible-rus-central / deploy (push) Failing after 15s
ansible-core-secrets / deploy (push) Successful in 30s
Roles stay under the machine that runs them, CI applies only a known product, and the /opt/secrets move is a one-shot playbook instead of part of every core-secrets run.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-10 23:55:34 +07:00
karpenok 341538fba9 refactor: update authentik configuration and convert core_net dashboard template to static file
ansible-core-net / deploy (push) Successful in 25s
2026-11-10 23:10:50 +07:00
karpenokandCursor a243ae281c fix(authentik): grant the embedded outpost access to its providers
ansible-core-net / deploy (push) Successful in 41s
The outpost service account could not see the Traefik provider, so the forward-auth path stayed on Django and returned Not Found.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-10 21:58:31 +07:00