Scope enrollment membership migration and use pull-only deployed gateway

This commit is contained in:
2026-11-17 16:03:54 +01:00
parent 7fd17272d5
commit 60f8f21f54
8 changed files with 258 additions and 67 deletions
+6 -2
View File
@@ -179,8 +179,12 @@ async fn main() -> Result<()> {
.route(
"/agent/v1/artifacts/{artifact}",
get(agent_artifacts::download),
)
.route("/agent/v1/connect", get(gateway::connect));
);
// The deployed gateway delivers work only in HTTP responses to the agent.
// The combined local development fixture still exercises the historical wire codec.
if dev && role.api() {
routes = routes.route("/agent/v1/connect", get(gateway::connect));
}
if !role.api() {
// Public gateway never accepts browser or automation credentials.
routes = routes.route("/api/v1/job-signing-key", get(api::agent_job_signing_key));