refactor(notstrap): replace EnvInjector with SecretResolver
Some checks failed
Public Repo Readiness / Check Public Repo Readiness (push) Has been cancelled

Remove the EnvInjector closure and replace with a secrets_config path
that loads notsecrets.toml and uses SecretResolver for env injection.
Existing parse_env_line validation (blocked keys, null bytes) is
preserved in the injection loop.
This commit is contained in:
2026-06-06 09:57:20 -04:00
parent 1359def673
commit 50ff598684
3 changed files with 43 additions and 33 deletions

View File

@@ -71,7 +71,7 @@ fn make_opts(env: &TestEnv, force: bool) -> BootstrapOptions {
dotfiles: Some(env.dotfiles.path().to_path_buf()),
tailscale: Some(None), // skip Tailscale in tests
check_prereqs: None,
env_injector: None,
secrets_config: None,
}
}
@@ -219,7 +219,7 @@ fn test_bootstrap_fails_fast_on_bad_key() {
dotfiles: Some(d.to_path_buf()),
tailscale: Some(None), // skip Tailscale in tests
check_prereqs: None,
env_injector: None,
secrets_config: None,
};
let report = run(opts).expect("run() should return Ok even when a step fails");