Files
buryan-infra/ops/sso/HOME-ASSISTANT.md
T

35 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# SSO в Home Assistant
Уже развёрнуто и работает по цепочке:
```
https://home.buryans.ru
│ auth_request /oauth2/auth
▼
oauth2-proxy-home (CT106, порт 9130)
│ OIDC, client_id=home-assistant-proxy
▼
Authentik → ha-strip (:8130) → Home Assistant (:8123)
```
## Проверка
```
curl -sI https://home.buryans.ru/ | grep -i location
# 302 → https://authentik.buryans.ru/application/o/authorize/?client_id=home-assistant-proxy
```
`oauth2-proxy-home` — `Up`, `/ping` = 200.
## Что осталось (отдельная задача)
- Двухфакторка для HA: сейчас вход идёт через общий поток Authentik
(с нашим passwordless-изменением — сначала TOTP).
Владелец решил: **пока без 2FA**, поправит отдельно.
- Мобильное приложение HA: ходит по токенам напрямую, прокси не затрагивает.
## Откат
Убрать `auth_request /oauth2/auth` из блока `home.buryans.ru`,
`nginx -t && systemctl reload nginx`.