feat: update desc

This commit is contained in:
2026-05-14 23:58:47 +03:00
parent 21b3bd3aad
commit e4369df0d8
2 changed files with 119 additions and 123 deletions

View File

@@ -247,13 +247,9 @@ class Settings(BaseSettings):
s3_rel_path = self.VAULT_S3_SECRET_PATH.strip()
if s3_rel_path:
try:
s3_secret_data = client.read_secret(s3_rel_path)
except Exception as exc:
raise ValueError(
f'Vault S3 secret not readable at mount {self.VAULT_MOUNT_POINT}/{s3_rel_path}: {exc!r}'
) from exc
self._apply_s3_from_vault_secret(s3_secret_data)
s3_secret_data = client.read_secret_optional(s3_rel_path)
if s3_secret_data:
self._apply_s3_from_vault_secret(s3_secret_data)
if not self.DATABASE_URL:
raise ValueError('Database URL could not be built from Vault database secret')