forked from mtusi2026/mtusi2026lab7
wip: apply pki-ingress-mtls groups 1-4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user