Scope enrollment membership migration and use pull-only deployed gateway
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user