mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-17 04:37:03 +00:00
After StubEnv was removed, the EnvSource trait had only two impls (ProcessEnv unit struct and a blanket HashMap impl) and tests already passed HashMaps. Replace the trait with a free `process_env_snapshot()` function and take `HashMap<String, String>` by value in `ServerSecrets::load` and the startup validators. Also flatten `StartupResolution` to a `(AuthMode, ServerSecrets)` tuple and drop the `StartupValidationError` wrapper in favor of `anyhow::Result`, and inline the `*_with_lookup` test-only wrappers in `spawn_env.rs` so tests call `apply_allowlist` directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests/it | ||
| build.rs | ||
| Cargo.toml | ||