Исправить отзыв сертификатов и подтвердить сборку ЛР 7
This commit is contained in:
@@ -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 = """
|
||||
|
||||
Reference in New Issue
Block a user