feat: update desc
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user