Skip to content

OpenAI WIF follow-up: release pin, detector id-token permission, allowlist and evals #76290

Done

Description

@benissimo

Summary

Follow-up to #75871, #76221, #75927 and #76236. The AWF proxy side of OpenAI WIF has since merged but is not released, and a few gh-aw items from the #75927 and #76236 reviews are still open.

Current state

Open items

  1. No minimum AWF version check. provider: openai compiles against any AWF version. Once a release containing Smoke Test: Copilot - 21259049881 #11364 exists, add a compile-time minimum for AWF and the API-proxy image, bump DefaultFirewallVersion, and document the version.
  2. Same-engine detector override may omit id-token: write. buildDetectionJob now checks only detectionAuthData.EngineConfig.Auth (pkg/workflow/threat_detection_job.go). An explicit safe-outputs.threat-detection.engine override is cloned on its own, so Auth is nil, while mergeThreatDetectionEngineEnv still merges the main engine's env (which carries AWF_AUTH_TYPE=github-oidc). The detector then runs with OIDC auth but without permission to request a token. Reviewer comment: Harden OpenAI WIF detection and firewall wiring #76236 (comment). It has no reply and the thread is unresolved. I have not compiled a workflow to confirm.
  3. auth.openai.com in the agent allowlist. Harden OpenAI WIF detection and firewall wiring #76236 adds auth.openai.com to the agent and detection allowlists. Review on gh-aw-firewall#11364 found the proxy sidecar already reaches token endpoints through http_access allow from_api_proxy, so listing the host for the agent only opens it, and its subdomains, to the agent; that PR removed the auto-add. Decide whether gh-aw should still add it, at least to the agent allowlist, and whether the docs example should list it.
  4. Evals. On Harden OpenAI WIF detection and firewall wiring #76236, pelikhan asked Copilot to "also support configuring evals". Copilot replied that evals call the Decisions API directly rather than through the AWF proxy, and asked whether evals need their own auth configuration or a proxy path. There is no visible answer and the merged PR does not mention evals.
  5. No end-to-end trial. The merged tests cover compilation and the Codex harness. None exercises a real token exchange through the proxy.

Done when

  • A released AWF includes Smoke Test: Copilot - 21259049881 #11364, gh-aw pins it and enforces it as a minimum.
  • Items 2 to 4 are fixed or answered.
  • A trial Codex workflow authenticates to the OpenAI API with no OPENAI_API_KEY secret.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions