Skip to content

Commit bf98857

Browse files
Diagnose Regression of Runner Auth (#626)
* Diagnose Regression of Runner Auth * set RequireFipsCryptography to false for the time being on the server
1 parent 9b5807d commit bf98857

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/Runner.Server/Controllers/AgentController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public async Task<ActionResult> Replace(int poolId, ulong agentId, [FromBody, Vs
9999
}
100100
agent.TaskAgent.ProvisioningState = tagent.ProvisioningState;
101101
agent.TaskAgent.Enabled = tagent.Enabled;
102+
// Runner.Listener <= 2.323.0 cannot connect if RequireFipsCryptography is true and this has been changed to be true by default
103+
// This Property is used to override the default value
104+
// https://github.com/ChristopherHX/runner.server/pull/626
105+
agent.TaskAgent.Properties.Add("RequireFipsCryptography", "false");
102106
_context.SaveChanges();
103107
tagent = agent.TaskAgent;
104108
}

src/Runner.Server/Models/Agent.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public static Agent CreateAgent(IMemoryCache cache, SqLiteDb db, int poolId, Tas
6262
_agent.Capabilities.Add(new Capability() { Name = kv.Key, Value = kv.Value });
6363
}
6464
}
65+
// Runner.Listener <= 2.323.0 cannot connect if RequireFipsCryptography is true and this has been changed to be true by default
66+
// This Property is used to override the default value
67+
// https://github.com/ChristopherHX/runner.server/pull/626
68+
agent.Properties.Add("RequireFipsCryptography", "false");
6569
db.Agents.Add(_agent);
6670
return _agent;
6771
}

0 commit comments

Comments
 (0)