idunn-launch: credentials only under CREDENTIALS_DIRECTORY, bounded route acceptor, lease lock inherited by the child, startup probe rules pinned

Soul s1 fixes. Credential placeholders resolve files under
$CREDENTIALS_DIRECTORY only, never an environment variable. The route
acceptor has a first-byte deadline, a total challenge deadline and a
connection cap with unspawned refusal; a dead acceptor degrades presence.
The shared lease lock is a plain descriptor the child inherits, so the lock
lives as long as any writer. Tests pin a late-healthy child and a hung probe.
One commit: the spawner and lease trait signatures change together with
their fakes. Builds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 23:16:42 +02:00
commit d36786f76c
2 changed files with 624 additions and 94 deletions

View file

@ -42,11 +42,12 @@ fn main() -> std::process::ExitCode {
);
let health_path = contract.health_path.clone();
let ports = Ports {
credentials: std::sync::Arc::new(EnvCredentials),
credentials: std::sync::Arc::new(CredentialsDirectory::from_environment()),
clock: std::sync::Arc::new(SystemClock),
sink: std::sync::Arc::new(sink),
lease: std::sync::Arc::new(lease),
spawner: Box::new(ProcessSpawner),
route_bounds: RouteBounds::default(),
health: Box::new(move |endpoint| {
std::sync::Arc::new(HttpHealthProbe {
endpoint: endpoint.clone(),

File diff suppressed because it is too large Load diff