Skip to content

[Codex Security] Native Gemini bypasses provider egress isolation - #850

Closed
luvs01 wants to merge 1 commit into
devfrom
codex-security/arp_243dcb2c25e181621e68e72b0eecbe1d
Closed

luvs01 wants to merge 1 commit into
devfrom
codex-security/arp_243dcb2c25e181621e68e72b0eecbe1d

Conversation

@luvs01

@luvs01 luvs01 commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Native Gemini now enforces Google Antigravity provider egress before transmitting OAuth credentials or prompt bodies.

  • Every initial and OAuth-replay send resolves the final Antigravity destination through the shared provider egress policy.
  • Direct and matching noProxy routes set proxy: false, preventing inheritance of an excluded global proxy.
  • Explicit HTTP(S) and SOCKS routes use the configured outbound transport, while absent overrides preserve inherited routing.
  • Existing deadlines, manual redirects, pacing, OAuth refresh, JSON preservation, cancellation, and response handling remain intact.
  • Assessment used static source evidence only; runtime checks were not performed.

Static Verification Checks

  • Native egress enforcement (Passed) — src/server/gemini-native.ts resolves provider egress before every deadline-wrapped send, closing the OAuth credential and prompt disclosure path.

  • Routing variants preserved (Passed) — resolveProviderEgress and configuredOutboundFetch preserve direct, noProxy, HTTP(S), SOCKS, and inherited routing behavior.

  • Malformed routes fail closed (Passed) — src/lib/provider-egress.ts rejects malformed egress instead of inheriting global routing, preventing fail-open credential dispatch.

  • Native regression assertions (Passed) — tests/server/gemini-native.test.ts asserts direct, matching noProxy, and explicit proxy options reach the native transport.

  • Existing behavior preserved (Passed) — tests/server/gemini-native.test.ts asserts manual redirects, preserved JSON, OAuth refresh, cancellation, and successful buffered responses remain supported.

  • Finding: acf_df3c32b9fdf42177d7f805007566036e

  • Patch: arp_243dcb2c25e181621e68e72b0eecbe1d

  • Base commit: 8ef15263e6a4318adc15db83dd054adde07d0ee0

  • Patch SHA-256: c88f7416da7a04ea7fc447c9a3bdf0ff6f99d821d7c0ba80953e70f4128e344f

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

luvs01 commented Nov 29, 2026

Copy link
Copy Markdown
Owner Author

Superseded by lidge-jun#9066 at e436084. I compared the shared Gemini send path and routing tests with b97ac4a. The upstream PR covers these routes for buffered and streaming requests, including the next send after an OAuth refresh. I found no separate change to carry from this branch. The upstream PR is still open and tracks the fix through review.

@luvs01 luvs01 closed this Nov 29, 2026
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