Repository navigation
Resolve enclave MCP gateway DNS after network attachment - #11393
Merged
Merged
Conversation
1 task done
Copilot
AI
changed the title
[WIP] Fix failed jobs in smoke enclave build test
Resolve enclave MCP gateway DNS after network attachment
Nov 10, 2026
lpcox
marked this pull request as ready for review
November 10, 2026 02:48
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The startup-critical sed -i edit of Docker-managed /etc/hosts needs validation in the supported gateway container because tests mock docker exec and the available environment could not verify the mount behavior.
No open issues 🎉
What changed in this PR
This PR addresses enclave MCP service resolution for a prestarted gateway after it joins the private control network, targeting the startup failure associated with #11392.
Changes:
- Validates network membership and the enclave MCP server’s IPv4 address before configuring the gateway’s
/etc/hosts. - Rejects failed host mapping and disconnects the gateway when setup fails.
- Adds regression cases for successful mapping, invalid addresses, and mapping failures.
| File | Description |
|---|---|
src/enclave/gateway.ts |
Adds validated service host mapping during gateway network attachment. |
src/enclave/gateway.test.ts |
Covers host mapping and fail-closed cleanup behavior. |
Review effort: Balanced (auto)
Contributor
|
✅ Copilot review passed with no inline comments. @copilot Add the |
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Smoke Enclave Build Test timed out because its prestarted MCP gateway could not resolve the enclave service after joining the private control network. The downstream verification job then failed because no token-usage records were produced.
/etc/hosts: