dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.92k stars 479 forks source link

Aspire Assistance with HTTPS #5453

Open NapalmCodes opened 2 months ago

NapalmCodes commented 2 months ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

The Aspire dashboard provides an https OTLP endpoint for publishing observability data. Since it runs locally with dotnet dev-certs containers with their own isolated network are not able to publish metrics, traces etc. as they do not trust the dev-certs. In addition, dev-certs are only for localhost not host.docker.internal which is used to communicate with the dashboard.

Describe the solution you'd like

Aspire should help with setting up HTTPS between container and non-container resources. This would allow developers to work with SSL locally in a painless way.

Additional context

See discussion https://github.com/dotnet/aspire/discussions/5221

davidfowl commented 2 months ago

@JamesNK we should consider defaulting the OTLP url to HTTP by default. Making HTTPs work inside of arbitrary containers will be lots of work. In the mean time, maybe we can unblock the most common scenarios where it shows up.