Skip to content

[docs] docs: sync authentication-architecture.md for 5-provider api-proxy - #2313

Merged
lpcox merged 1 commit into
mainfrom
docs/sync-auth-arch-multi-provider-88f2e45a9f81a71c
Apr 30, 2026
Merged

lpcox merged 1 commit into
mainfrom
docs/sync-auth-arch-multi-provider-88f2e45a9f81a71c

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Documentation Sync - April 2026

This PR synchronizes docs/authentication-architecture.md with the multi-provider API proxy architecture introduced and stabilized in recent commits.

Changes Made

  • Updated docs/authentication-architecture.md:
    • Replaced the 2-provider introductory note with a full port/provider/auth-header table covering all 5 providers (10000 OpenAI, 10001 Anthropic, 10002 Copilot, 10003 Gemini, 10004 OpenCode)
    • Updated the ASCII architecture diagram to show all 5 proxy ports and the COPILOT_API_URL env var in the agent container
    • Added COPILOT_API_URL and GEMINI_API_BASE_URL to the agent service configuration YAML example
    • Expanded the agent env-var code block and supported SDK/CLI list (added GitHub Copilot CLI, Google Gemini CLI)
    • Added port sections for 10002 (Copilot), 10003 (Gemini), and 10004 (OpenCode)
    • Updated "runs two HTTP servers" → "runs five HTTP servers"
    • Updated Layer 4 domain whitelist note to include api.githubcopilot.com
    • Updated "Ports 10000 and 10001" note → "Ports 10000–10004"

Code Changes Referenced

  • Commit 2d8498d: api-proxy: expose models_fetch_complete in /health, fix port tables, add readiness polling docs — this commit added 5-port support to server.js and updated docs/api-proxy-sidecar.md, but left authentication-architecture.md with stale 2-provider descriptions

Verification

  • Port numbers verified against src/types.ts (API_PROXY_PORTS constant)
  • Environment variables verified against src/docker-manager.ts (lines ~1849–1930)
  • Auth header formats verified against containers/api-proxy/server.js
  • Consistent with existing documentation style

Generated by Documentation Maintainer · ● 2.7M · ◷

- Expand introductory note to include a full port/provider/auth-header
  table (10000 OpenAI, 10001 Anthropic, 10002 Copilot, 10003 Gemini,
  10004 OpenCode) instead of only mentioning 2 providers
- Update ASCII architecture diagram to show all 5 proxy ports and the
  COPILOT_API_URL env var in the agent container
- Add agent service configuration YAML entries for
  COPILOT_API_URL and GEMINI_API_BASE_URL
- Expand agent env-var code block and supported SDK list
- Add port 10002-10004 sections (Copilot, Gemini, OpenCode)
- Replace 'runs two HTTP servers' with 'runs five HTTP servers'
- Update Layer 4 domain whitelist note to include Copilot domain
- Broaden 'Ports 10000 and 10001' note to 'Ports 10000-10004'

Triggered by commit 2d8498d (api-proxy: expose models_fetch_complete
in /health, fix port tables, add readiness polling docs).

Co-authored-by: Copilot <[email protected]>
@github-actions
github-actions Bot requested a review from Mossaka as a code owner April 30, 2026 12:58
@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation smoke-copilot-byok labels Apr 30, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit 173f4a6

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK (Offline Mode)

Test Result
GitHub MCP connectivity ✅
GitHub.com HTTP ⚠️ (template vars not expanded)
File write/read ⚠️ (path not provided; file not found)
BYOK inference (api-proxy → api.githubcopilot.com) ✅

Running in BYOK offline mode (COPILOT_OFFLINE=true) via api-proxy → api.githubcopilot.com. PR author: @github-actions[bot]. No assignees.

Overall: PASS (core BYOK path confirmed ✅)

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test

  • "api-proxy: expose models_fetch_complete in /health, fix port tables, add readiness polling docs"
  • "[docs] docs: sync Gemini proxy documentation with conditional setup behavior"
  • GitHub review ✅ | safeinputs-gh query ❌ | Playwright ✅ | Tavily ❌
  • File write ✅ | Bash verify ✅ | Discussion check ❌ | Build ✅
  • Overall: FAIL

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • registry.npmjs.org

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "registry.npmjs.org"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex

@github-actions

Copy link
Copy Markdown
Contributor Author

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ✅ 1/1 passed ✅ PASS
Bun hono ✅ 1/1 passed ✅ PASS
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world ✅ N/A ✅ PASS
.NET json-parse ✅ N/A ✅ PASS
Go color ✅ 1/1 passed ✅ PASS
Go env ✅ 1/1 passed ✅ PASS
Go uuid ✅ 1/1 passed ✅ PASS
Java gson ✅ 1/1 passed ✅ PASS
Java caffeine ✅ 1/1 passed ✅ PASS
Node.js clsx ✅ All passed ✅ PASS
Node.js execa ✅ All passed ✅ PASS
Node.js p-limit ✅ All passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — ✅ PASS

Generated by Build Test Suite for issue #2313 · ● 446.6K · ◷

@github-actions

Copy link
Copy Markdown
Contributor Author

🔬 Smoke Test Results

Test Status
GitHub MCP connectivity ✅ PASS
GitHub.com HTTP connectivity ❓ N/A (template vars not expanded)
File write/read ❓ N/A (template vars not expanded)

PR: [docs] docs: sync authentication-architecture.md for 5-provider api-proxy
Author: @github-actions[bot] · Reviewer: @Mossaka

⚠️ Pre-step outputs (steps.smoke-data.outputs.*) were not substituted — HTTP and file tests could not be verified.

Overall: PARTIAL (MCP ✅, pre-computed data unavailable)

📰 BREAKING: Report filed by Smoke Copilot

@lpcox
lpcox merged commit 613dd87 into main Apr 30, 2026
50 of 55 checks passed
@lpcox
lpcox deleted the docs/sync-auth-arch-multi-provider-88f2e45a9f81a71c branch April 30, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant