Skip to content

Commit

Permalink
server: adjust runner hook secret checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Nov 2, 2023
1 parent e98388f commit 75702b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rb
Expand Up @@ -277,7 +277,7 @@ def verify_runner_hook(params)
job = SharedState.instance.job(runner_name)
return if job.nil?

if job.secret != params["orchestrator_secret"]
unless Rack::Utils.secure_compare(job.secret, params["orchestrator_secret"])
$stderr.puts("Secret mismatch for #{runner_name}!")
halt 403, "Forbidden."
end
Expand Down

0 comments on commit 75702b9

Please sign in to comment.