prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Adds server settings models

Open desertaxle opened this issue 4 months ago • 1 comments

This PR adds four new settings models:

  • ServerSettings
  • ServerAPISettings
  • ServerDatabaseSettings
  • ServerEphemeralSettings

In general, many settings previously in the PREFECT_API_ namespace will move under the ServerSetting model.

Support for the old names is maintained via validation aliases for backward compatibility. A new source EnvFilterSettingsSource is also added to be able to filer environment variables. It turns out all entries in validation_alias are used to load values via environment variables. I ran into this with the user field on ServerDatabaseSettings model since Unix-based operating systems have a USER environment variable that was getting picked up. Now, all AliasPath alias choices will be excluded when looking for values via environment variables.

desertaxle avatar Oct 18 '24 17:10 desertaxle