Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,16 @@ async fn authorize_handler(
"1 scope".to_string()
}
);

// Store mandate in mandate store for /v1/execute endpoint
if let Some(ref mandate_store) = state.mandate_store {
mandate_store.store(mandate.clone());
debug!(
"Stored mandate {} for execution proxying",
mandate.claims.mandate_id
);
}

decision.mandate = Some(mandate);
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,13 @@ async fn main() -> anyhow::Result<()> {
"Chain delegation enabled (max_depth: {}, ttl: {}s)",
cli.max_delegation_depth, delegation_ttl_s
);

// Add mandate store for /v1/execute endpoint support
// This enables execution proxying (zero-trust mode)
use predicate_authorityd::mandate::MandateStore;
let mandate_store = MandateStore::new();
state = state.with_mandate_store(mandate_store);
info!("Execution proxying enabled (/v1/execute endpoint)");
}

// Initialize control-plane client if in cloud_connected mode
Expand Down