Skip to content

feat: secure Agent Runtime API from contracts 2.1.0 - #8

Merged
DanliaQwerty20 merged 3 commits into
mainfrom
feature/contract-2.1-secure-api
Sep 13, 2026
Merged

DanliaQwerty20 merged 3 commits into
mainfrom
feature/contract-2.1-secure-api

Conversation

@DanliaQwerty20

Copy link
Copy Markdown
Contributor

Что сделано

  • Agent Runtime следует контракту 2.1.0: text, timeZone, availableConnectors и camelCase-ответы;
  • tenant и пользователь берутся только из проверенного JWT;
  • проверяются подпись RS256, issuer, audience agent-runtime, exp, iat, sub и tenant_id;
  • добавлены Trusted Host и выключение Swagger/OpenAPI для production;
  • релизная схема хранится локально, обновляется с checksum + attestation и проверяется contract-тестом;
  • русская документация и runbook обновлены.

Проверки

  • 25 pytest, покрытие ProposalService 100%;
  • Ruff + format;
  • strict mypy;
  • MkDocs strict;
  • проверка документации и PowerShell-синтаксиса.

@DanliaQwerty20
DanliaQwerty20 requested review from a team as code owners September 13, 2026 12:34
@DanliaQwerty20
DanliaQwerty20 merged commit c1ebd39 into main Sep 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant