lab7: безопасность, mTLS, OpenBao и PKI lifecycle

This commit is contained in:
Vladislav Kunetskiy
2026-11-10 10:58:07 +03:00
parent 3d216fbd50
commit 3441f2269a
183 changed files with 216667 additions and 3165 deletions
+4 -2
View File
@@ -18,8 +18,10 @@ from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'tests'))
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
from client import Client, LAB, Failure, arguments, check, run # noqa: E402
from lab7_http import BASE_URL, CA_FILE # noqa: E402
def classify(error):
@@ -52,7 +54,7 @@ def main():
check(1 <= args.duration <= 3600, 'duration должен быть 1..3600')
check(1 <= args.concurrency <= 128, 'concurrency должен быть 1..128')
bootstrap = Client(args.base_url, args.ca_file)
bootstrap = Client(args.base_url or BASE_URL, args.ca_file or CA_FILE)
# Стенд в момент старта может быть в переходном состоянии (например, сразу
# после возврата БД), поэтому однократный 502 на bootstrap не должен ломать
@@ -79,7 +81,7 @@ def main():
instances = {}
def worker(worker_id):
client = Client(args.base_url, args.ca_file, timeout=5)
client = Client(args.base_url or BASE_URL, args.ca_file or CA_FILE, timeout=5)
local_latencies = []
local_errors = {}
local_instances = {}