Fir for broken V1 db connection (#11382)

This commit is contained in:
Tim O'Farrell 2025-10-15 06:07:43 -06:00 committed by GitHub
parent 15e7709ff6
commit 72179f45d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ class DbSessionInjector(BaseModel, Injector[async_sessionmaker]):
if self.user is None:
self.user = os.getenv('DB_USER', 'postgres')
if self.password is None:
self.password = SecretStr(os.getenv('DB_PASS', 'postgres'))
self.password = SecretStr(os.getenv('DB_PASS', 'postgres').strip())
if self.gcp_db_instance is None:
self.gcp_db_instance = os.getenv('GCP_DB_INSTANCE')
if self.gcp_project is None: