Skip to content

fix: isolate Actions OIDC from agent container - #6894

Merged
lpcox merged 3 commits into
update-auth-proxy-docsfrom
isolate-actions-oidc-from-agent
Aug 3, 2026
Merged

fix: isolate Actions OIDC from agent container#6894
lpcox merged 3 commits into
update-auth-proxy-docsfrom
isolate-actions-oidc-from-agent

Conversation

@lpcox

@lpcox lpcox commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • keep ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN out of the agent environment across default passthrough, --env-all, --env-file, and explicit --env
  • preserve conditional forwarding to the API proxy sidecar for github-oidc authentication
  • document the separate runner-owned MCP gateway flow generated by gh-aw for remote HTTP MCP auth.type: github-oidc
  • update the normative config specification and sandbox security guidance
  • track compiler and existing lock-file compatibility in Ensure HTTP MCP GitHub OIDC bypasses the AWF agent credential boundary gh-aw#50053

Validation

  • npm run build
  • npm run lint
  • npm test -- --runInBand
  • targeted OIDC environment tests covering default, env-all, env-file, explicit env, and API-proxy sidecar paths
  • Markdown lint for all changed documents
  • npm run docs:build

Stacked on #6889.

Keep GitHub Actions OIDC request credentials in the API proxy sidecar.
Prevent default, env-all, env-file, and explicit environment paths from
exposing them to untrusted agent code.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557
Copilot AI review requested due to automatic review settings August 3, 2026 17:22
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit ae3a962

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Isolates GitHub Actions OIDC minting credentials from the untrusted agent while preserving conditional API-proxy forwarding.

Changes:

  • Excludes OIDC variables from every agent environment path.
  • Adds tests for isolation and sidecar forwarding.
  • Updates authentication and sandbox documentation.
Show a summary per file
File Description
src/services/api-proxy-service-oidc.test.ts Verifies sidecar-only OIDC forwarding.
src/services/agent-environment/excluded-vars.ts Adds OIDC variables to exclusions.
src/services/agent-environment/env-passthrough.ts Removes default OIDC passthrough.
src/services/agent-environment-credentials.test.ts Tests environment isolation paths.
src/config/sandbox-mount-policy.json Updates Azure authentication guidance.
docs/sbx-integration.md Documents sbx credential isolation.
docs/environment.md Documents environment exclusions.
docs/awf-config-spec.md Defines normative OIDC isolation behavior.
docs/authentication-architecture.md Updates OIDC architecture and MCP guidance.
docs/auth-matrix.md Notes sidecar-only OIDC handling.
docs/api-proxy-sidecar.md Documents sidecar isolation and deployment guidance.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread docs/sbx-integration.md Outdated
@lpcox

lpcox commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot address review feedback

Copilot AI commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Addressed the OIDC credential-boundary documentation feedback in 8282d23.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

Describe the runner-owned gateway flow generated by gh-aw and add direct
regression coverage for env-file credential exclusion.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557
@lpcox
lpcox merged commit 8fbc4b8 into update-auth-proxy-docs Aug 3, 2026
4 checks passed
@lpcox
lpcox deleted the isolate-actions-oidc-from-agent branch August 3, 2026 18:03
lpcox added a commit that referenced this pull request Aug 3, 2026
* docs: update authentication and API proxy guidance

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557

* fix: add Anthropic WIF beta headers (#6890)

* fix: add Anthropic WIF beta headers

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1bc91d4c-0fdf-40ff-94e6-250d18f08563

* fix: apply WIF beta headers unconditionally in _exchangeForAnthropicToken

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot-Session: 1bc91d4c-0fdf-40ff-94e6-250d18f08563

* feat: sign AWS Bedrock requests with SigV4 (#6891)

* feat: sign AWS Bedrock requests with SigV4

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 60f8a12a-5b5b-41d6-8cce-35c71f8c2ac5

* fix: reframe rewritten fallback requests

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 60f8a12a-5b5b-41d6-8cce-35c71f8c2ac5

---------

Copilot-Session: 60f8a12a-5b5b-41d6-8cce-35c71f8c2ac5

* docs: correct authentication trust boundaries

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557

* fix: isolate Actions OIDC from agent container (#6894)

* fix: isolate Actions OIDC from agent

Keep GitHub Actions OIDC request credentials in the API proxy sidecar.
Prevent default, env-all, env-file, and explicit environment paths from
exposing them to untrusted agent code.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557

* docs: clarify OIDC agent credential boundary

* docs: align OIDC isolation with MCP gateway

Describe the runner-owned gateway flow generated by gh-aw and add direct
regression coverage for env-file credential exclusion.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557

* fix: update brace-expansion to 5.0.9

Resolve GHSA-rgw5-rvv9-x895 in the main package dependency tree.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot-Session: 01b67b6c-fcd9-4c60-8409-827495c49557
Copilot-Session: 1bc91d4c-0fdf-40ff-94e6-250d18f08563
Copilot-Session: 60f8a12a-5b5b-41d6-8cce-35c71f8c2ac5
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.

3 participants