Refactor OpenSearch config to separate use_ssl and verify_certs flags (#20075)

Co-authored-by: he.huang <he.huang1@outlook.com>
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
He Huang
2025-05-22 06:14:38 +04:00
committed by GitHub
parent adca981eee
commit 6f48af2610
5 changed files with 14 additions and 2 deletions

View File

@@ -33,6 +33,11 @@ class OpenSearchConfig(BaseSettings):
default=False,
)
OPENSEARCH_VERIFY_CERTS: bool = Field(
description="Whether to verify SSL certificates for HTTPS connections (recommended to set True in production)",
default=True,
)
OPENSEARCH_AUTH_METHOD: AuthMethod = Field(
description="Authentication method for OpenSearch connection (default is 'basic')",
default=AuthMethod.BASIC,