[release/13.6] Correct context-based endpoint resolution guidance
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- docker, docker-compose, javascript
- Domain
- backend, cloud, documentation
Research direction
The file to edit is src/frontend/src/content/docs/architecture/resource-hierarchies.mdx. Start by reading the 'Context-based endpoint resolution' section and the linked issue #1723 to understand the container tunnel behavior. Update the resolution table and the description for DefaultAspireContainerNetwork to correctly reflect the tunnel-enabled and disabled cases, and add a note about the container resource prerequisite. Verify changes by previewing the documentation locally.
Written by the indexing model from the issue text.
Description
Problem
The Context-based endpoint resolution section in src/frontend/src/content/docs/architecture/resource-hierarchies.mdx contains stale and overgeneralized descriptions that don't account for the container tunnel behavior documented in #1723.
Container-to-host resolution
The current resolution table says:
| Container | Executable / Project | Host network (`host.docker.internal:port`). | `host.docker.internal:5000` |
With the container tunnel enabled—the default behavior—the endpoint is projected through the Aspire container tunnel address, such as aspire.dev.internal:<port>. A container host address such as host.docker.internal:<port> is used when the tunnel is disabled. The table should distinguish these cases rather than presenting the disabled-tunnel behavior as universal.
Default container network description
The current list says:
DefaultAspireContainerNetwork: Resolves to container network URLs using resource names
Resource-name DNS describes container targets, but it doesn't describe project or executable targets. Those endpoints resolve through the container tunnel when enabled, or through the container host name when disabled. The description should define the network identifier as the endpoint's reachability context rather than prescribing one hostname form.
Container resource prerequisite
The section should also explain that the default Aspire container network is created only when the app model contains at least one container resource. Explicitly resolving a project or executable endpoint for DefaultAspireContainerNetwork without any container resources fails with an actionable resource-scoped error.
Expected update
- Correct the container-to-project/executable row in the resolution table.
- Qualify the
DefaultAspireContainerNetworkdescription by target resource type and tunnel state. - Document the container-resource prerequisite for the default network.
- Review the surrounding examples and comments for assumptions that all container-network endpoints use resource-name DNS.
This should be fixed in the release/13.6 documentation.
- Dominant language
- MDX
- Stars
- 195
- Forks
- 91
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 111
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/aspire.dev
-
Docs: note that Bun resources don't trust the dev cert via NODE_EXTRA_CA_CERTS (upstream Bun bug)Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
microsoft/aspire.dev#1802 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/aspire.dev#1650 ·
Maintainers usually reply within 1 day
-
Docs: Dev Tunnels "Configure dev tunnel options" examples do not compile; options table omits RegionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
microsoft/aspire.dev#1465 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
microsoft/aspire.dev#1464 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 84/100
microsoft/aspire.dev#1463 ·
Maintainers usually reply within 1 day
All issues in microsoft/aspire.dev
Similar issues
-
good first issue no-box
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
peasant-labs/peasant#596 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
hatchet-dev/hatchet#5179 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cameri/nostream#811 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day