| ▲ | qntty a day ago |
| I use Pydantic Settings for this, would be nice to see a comparison to that. I do like the idea of keeping this in a configuration file. |
|
| ▲ | domenkozar a day ago | parent | next [-] |
| Two things: - Secrets don't belong in config https://secretspec.dev/blog/secrets-dont-belong-in-config/ - You want to have flexibility of choosing between any secrets provider: https://secretspec.dev/blog/but-i-use-sops/ |
| |
| ▲ | eigencoder a day ago | parent | next [-] | | But secrets are a kind of configuration, right? I agree they should be kept separate from non-secret config; ideally non-secret configuration can be committed to your codebase somewhere depending on the environment it's running in. | |
| ▲ | tomjakubowski a day ago | parent | prev [-] | | pydantic-settings is not limited to loading from config files. It is easy to populate a settings model from environment variables, for example. With a little bit of glue code it could load from the secretspec sdk. |
|
|
| ▲ | triyambakam a day ago | parent | prev [-] |
| Yeah Pydantic Settings is pretty nice |