dbos-inc / dbos-transact

The TypeScript framework for backends that scale
https://docs.dbos.dev
MIT License
291 stars 20 forks source link

Allow proxy debug mode with undefined password #485

Closed qianl15 closed 1 month ago

qianl15 commented 1 month ago

This PR fixes an issue where the undefined PGPASSWORD env in dbos-config.yaml was parsed as null not an empty string. This makes schema validation failed (i.e., debug mode with undefined password) because null is not a string type. The fix is to move the check for database password in parseConfigFile and assign the password to "PROXY-MODE" if not set.

Tests: