Skip to content

MonoPanel 0.8.5

Choose a tag to compare

@github-actions github-actions released this 21 Sep 16:46
· 33 commits to main since this release

v0.8.5 — закрытая документация API / API reference behind sign-in

Русский

  • Документация API (/api/v1/docs), спецификация OpenAPI и JSON-схемы отдаются только вошедшим: сессия панели или API-токен. Аноним получает 401, браузер по ссылке на документацию уходит на страницу входа, токен переезда — 403. Без входа остаются только /health и /auth/login.
  • Stoplight Elements вшит в бинарник: страница документации больше не грузит скрипты с unpkg.com и получила строгий CSP — только свой origin, без inline-скриптов и eval.
  • /health не сообщает версию панели анониму: живость видна всем, номер сборки — только вошедшему. Экран входа версию не показывает.
  • Внимание: скриптам, которые читали openapi.json без авторизации, теперь нужен заголовок Authorization: Bearer <токен>.

English

  • The API reference (/api/v1/docs), the OpenAPI specification and the JSON schemas are served to signed-in callers only: a panel session or an API token. Anonymous requests get 401, a browser following the docs link lands on the sign-in page, a migration token gets 403. Only /health and /auth/login stay open.
  • Stoplight Elements is bundled into the binary: the reference no longer loads scripts from unpkg.com and has a strict CSP — own origin only, no inline scripts, no eval.
  • /health no longer tells anonymous callers the panel version: liveness is public, the build number is for signed-in callers. The sign-in screen does not show it either.
  • Note: scripts that read openapi.json without credentials now need an Authorization: Bearer header.

Обновление

mp update
mp update apply

Панель скачает пакет для своей ОС, проверит подпись и перезапустится сама.