Require a credential
A service built with create-benchmark-service accepts every request unless it runs withAUTH_REQUIRED=true. With it set, the service rejects requests until you implement the
check. Override check_auth in your benchmark class:
401 Unauthorized. The
create-benchmark-service README
shows how to allow some callers only some datasets.
Save the credential with the service
Store the credential as a secret of your organization, exactly as the header carries it, such asBearer TOKEN, where TOKEN is the service’s token. Then name the secret when you save the service URL:
Authorization header on every request to that
service, for your runs and task listings. To use another header, add
--auth-header X-Service-Token. Headers that Valkyrie controls, such as Host and
X-Api-Key, are refused.
- To change the credential, run
valkyrie secret set swebench-tokenagain. To stop sending it, save the service again without--auth-secret. - Retries and resumes don’t send the saved credential. Pass it with
-H Authorization "Bearer TOKEN"tovalkyrie run retryorvalkyrie run resume. - Runs with
--ignore-custom-servicesuse the hosted service and don’t send the credential. - A local Tracker that reads secrets from a file can’t send a saved credential.
Send request headers
-H NAME VALUE adds a header to the benchmark service requests of one run. Repeat it for
more headers:

