wip: apply pki-ingress-mtls groups 1-4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 06:42:44 +03:00
co-authored by Claude Opus 5.5
parent 44fe7110a2
commit 5c514b09e8
28 changed files with 2067 additions and 60 deletions
+23
View File
@@ -0,0 +1,23 @@
"""TLS процесса API (change `pki-ingress-mtls`): контекст сервера и проверка
`[api_tls]` — `context.py` (без логгера); протокол с allowlist identity —
`protocol.py`, его импортирует только uvicorn по строке
`PROTOCOL_IMPORT_PATH`."""
from src.infra.tls.context import (
api_tls_problems,
build_server_context,
client_identities,
is_allowed_client,
ssl_context_factory,
)
PROTOCOL_IMPORT_PATH = "src.infra.tls.protocol:AllowlistHttpToolsProtocol"
__all__ = [
"PROTOCOL_IMPORT_PATH",
"api_tls_problems",
"build_server_context",
"client_identities",
"is_allowed_client",
"ssl_context_factory",
]