Исправить отзыв сертификатов и подтвердить сборку ЛР 7
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / application (pull_request) Canceled after 0s

This commit is contained in:
Krep4334
2026-12-01 18:18:39 +03:00
parent 9ffa60daef
commit fcac96cc0d
12 changed files with 538 additions and 79 deletions
+9
View File
@@ -53,6 +53,15 @@ else:
print(compose("exec", "-T", "api-a", "python", "-", input=code), flush=True)
check(compose("images", "-q", "api-a") == image, "image changed during secret rotation")
from cryptography import x509
from unittest.mock import patch
from pki import issue
serial = (x509.random_serial_number() & ((1 << 156) - 1)) | (1 << 152)
with patch("pki.x509.random_serial_number", return_value=serial):
issue("api-a")
compose("restart", "api-a", "api-a-tls")
ready(client)
subprocess.run([sys.executable, "scripts/rotate.py", "certificate"], cwd=ROOT, check=True, timeout=90)
ready(client)
code = """