forked from mtusi2026/mtusi2026lab7
24 lines
723 B
Python
24 lines
723 B
Python
"""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",
|
||
]
|