Перевести пароли на Argon2id и читать секреты через AppRole.

Лимит входа общий для реплик, размер тела ограничен, исходящие клиенты проверяют TLS, если задан CA.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-26 19:40:28 +03:00
co-authored by Cursor
parent 54b4b9e509
commit fb566d874c
19 changed files with 445 additions and 20 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
"""Time one Argon2id hash with the stand parameters. Prints milliseconds only."""
import os
import time
from app.passwords import ITERATIONS, MEMORY_KIB, PARALLELISM, hash_password
password = os.environ.get("ARGON2_SAMPLE_PASSWORD", "synthetic-measurement-password")
started = time.perf_counter()
hash_password(password)
elapsed_ms = (time.perf_counter() - started) * 1000
print(
"argon2id memory_kib=%s iterations=%s parallelism=%s elapsed_ms=%.1f"
% (MEMORY_KIB, ITERATIONS, PARALLELISM, elapsed_ms)
)