Skip to content

Commit 44e1dce

Browse files
committed
fix: pass VALIDATOR_SECRET_KEY to challenge containers
Orchestrator now passes VALIDATOR_SECRET_KEY env var to challenge containers so they can sign requests for the validator worker.
1 parent a4713e9 commit 44e1dce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/challenge-orchestrator/src/docker.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,10 @@ impl DockerClient {
550550
if let Ok(validator_hotkey) = std::env::var("VALIDATOR_HOTKEY") {
551551
env.push(format!("VALIDATOR_HOTKEY={}", validator_hotkey));
552552
}
553+
// Pass validator secret key for signing requests (needed by challenge validator workers)
554+
if let Ok(validator_secret) = std::env::var("VALIDATOR_SECRET_KEY") {
555+
env.push(format!("VALIDATOR_SECRET={}", validator_secret));
556+
}
553557
// Pass owner/sudo hotkey for challenge sudo operations
554558
if let Ok(owner_hotkey) = std::env::var("OWNER_HOTKEY") {
555559
env.push(format!("OWNER_HOTKEY={}", owner_hotkey));

0 commit comments

Comments
 (0)