exec-server: add Noise relay transport by viyatb-oai · Pull Request #26242 · openai/codex · GitHub
Skip to content

exec-server: add Noise relay transport#26242

Merged
viyatb-oai merged 49 commits into
mainfrom
codex/viyatb/noise-relay-state
Jun 15, 2026
Merged

exec-server: add Noise relay transport#26242
viyatb-oai merged 49 commits into
mainfrom
codex/viyatb/noise-relay-state

Conversation

@viyatb-oai

@viyatb-oai viyatb-oai commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Why

Rendezvous forwards traffic between the orchestrator and exec-server. The endpoints need to authenticate each other and encrypt that traffic without trusting Rendezvous with plaintext or endpoint keys.

Changes

  • Adds a hybrid Noise IK channel through Clatter using X25519, ML-KEM-768, AES-256-GCM, and SHA-256.
  • Binds each handshake to environment_id, executor_registration_id, and stream_id.
  • Pins the registry-provided executor key and carries the harness authorization inside the encrypted handshake.
  • Orders relay frames before consuming Noise nonces and fragments large JSON-RPC messages into bounded records.
  • Bounds handshake payloads, frames, streams, and message reassembly.

Runtime activation is in openai/codex#26245.

Stack

  1. openai/codex#26242: Noise channel and relay transport
  2. openai/codex#26245: remote registration and runtime activation

Verification

  • just test -p codex-exec-server
  • Oversized initiator payload regression coverage
  • just fix -p codex-exec-server
  • just bazel-lock-check
  • cargo shear

Comment thread codex-rs/exec-server/src/noise_channel.rs
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-wire branch from d293187 to a7ef55a Compare June 9, 2026 22:21
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-state branch from f7c6737 to 491c3a6 Compare June 9, 2026 22:21
Co-authored-by: Codex noreply@openai.com
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-state branch from 491c3a6 to 2488836 Compare June 9, 2026 23:20
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-wire branch from a7ef55a to 657fe01 Compare June 9, 2026 23:20
@viyatb-oai viyatb-oai changed the title exec-server: Noise relay transport exec-server: add Noise relay transport Jun 10, 2026
@viyatb-oai viyatb-oai changed the base branch from codex/viyatb/noise-relay-wire to codex/viyatb/noise-channel-foundation June 10, 2026 09:04
Co-authored-by: Codex <noreply@openai.com>
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-state branch from fa5ddce to e9ec60c Compare June 10, 2026 16:35
Co-authored-by: Codex noreply@openai.com
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-state branch from e9ec60c to 1c45005 Compare June 10, 2026 16:47
Co-authored-by: Codex noreply@openai.com
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-state branch from 1c45005 to 592f3d2 Compare June 10, 2026 16:51
viyatb-oai and others added 2 commits June 11, 2026 19:52
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex <noreply@openai.com>
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/noise-relay-state branch from 2dc2270 to bbd64c3 Compare June 12, 2026 02:57
@viyatb-oai viyatb-oai changed the base branch from codex/viyatb/noise-channel-foundation to main June 12, 2026 02:57
viyatb-oai and others added 2 commits June 11, 2026 20:16
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex noreply@openai.com
viyatb-oai and others added 12 commits June 11, 2026 21:05
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
…b/noise-relay-state

# Conflicts:
#	codex-rs/exec-server/src/noise_channel.rs
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex <noreply@openai.com>
@viyatb-oai viyatb-oai marked this pull request as ready for review June 12, 2026 17:43
@viyatb-oai

Copy link
Copy Markdown
Collaborator Author

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Comment thread codex-rs/exec-server/src/noise_relay/harness.rs Outdated
Comment thread codex-rs/exec-server/src/noise_relay/harness.rs
Comment thread codex-rs/exec-server/src/noise_relay/harness.rs Outdated
Comment thread codex-rs/exec-server/src/noise_relay/harness.rs
@viyatb-oai viyatb-oai merged commit 428cd44 into main Jun 15, 2026
45 checks passed
@viyatb-oai viyatb-oai deleted the codex/viyatb/noise-relay-state branch June 15, 2026 23:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants