Skip to content

Authenticate dataset-eval to otari by workload identity federation - #7652

Open
evgenyrp wants to merge 1 commit into
dataset-eval-open-model-harnessesfrom
otari-wif
Open

evgenyrp wants to merge 1 commit into
dataset-eval-open-model-harnessesfrom
otari-wif

Conversation

@evgenyrp

Copy link
Copy Markdown
Contributor

Stacked on #7607.

Lets the dataset-eval job authenticate to otari as its service account instead of with an OTARI_API_KEY secret, by the same Workload Identity Federation as Anthropic, OpenAI and W&B (otari docs).

omp, OpenCode and DeepSeek Harness read one static key when they start, and can't exchange or reread a token. So, with OTARI_FEDERATION_RULE_ID set, the prompt executor runs a local proxy for them:

  • The proxy exchanges the job's Google identity token at otari's /v1/oauth/token, and renews the access token before it expires.
  • It forwards every request, streamed responses included, to otari with that token.
  • OTARI_BASE_URL points the harnesses at the proxy, and OTARI_API_KEY is a placeholder.

Without a rule nothing changes, so local runs keep using OTARI_API_KEY.

To enable it:

  1. Add a federation rule to the otari key, for the job's service account: issuer https://accounts.google.com, audience https://api.otari.ai, and the account's email or subject.
  2. Set OTARI_FEDERATION_RULE_ID in the job's deploy config instead of the key.

Tested:

  • Unit tests cover the exchange and renewal, the proxy and the inert mode.
  • omp, OpenCode and DeepSeek Harness each complete a task through the proxy against otari, using a key in place of the exchanged token.
  • Not tested: the exchange itself, which needs a deployed job and a rule. otari's docs don't name the exchange response's fields, so the code assumes the OAuth-standard access_token and expires_in.

@evgenyrp
evgenyrp added this pull request to stack #7653 November 24, 2026 18:24
@evgenyrp
evgenyrp marked this pull request as ready for review November 24, 2026 18:24
@evgenyrp
evgenyrp requested a review from a team as a code owner November 24, 2026 18:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant