Перевести пароли на 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
+2 -1
View File
@@ -9,7 +9,7 @@ import boto3
from botocore.client import Config
from botocore.exceptions import BotoCoreError, ClientError
from app import config
from app import config, tlsutil
from app.errors import AppError
logger = logging.getLogger("messenger.s3")
@@ -35,6 +35,7 @@ def _client_or_create():
read_timeout=20,
retries={"max_attempts": 2},
),
verify=tlsutil.https_verify(config.S3_ENDPOINT),
)
return _client