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
+3 -1
View File
@@ -20,9 +20,11 @@ from pathlib import Path
from urllib.parse import quote
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 tests_helpers import compose, containers_by_hostname, messages_path # noqa: E402
from lab7_http import BASE_URL, CA_FILE # noqa: E402
WINDOW_SECONDS = 15.0
RECOVERY_DEADLINE_SECONDS = 10.0
@@ -164,7 +166,7 @@ def main():
script = Path(args.action_script).expanduser().resolve()
check(script.is_file() and os.access(script, os.X_OK), 'hook должен существовать и быть исполняемым')
client = Client(args.base_url, args.ca_file)
client = Client(args.base_url or BASE_URL, args.ca_file or CA_FILE)
alice, _, _, chat = client.bootstrap()
observed = observed_instances(client, alice)