Files
mtusi2026lab7-safronov/src/infra/tls/__init__.py
T
2026-11-16 06:42:44 +03:00

24 lines
723 B
Python
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.
"""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",
]