Open JamesNK opened 4 weeks ago
If AllowUsecuredTransport=true then TransportOptionsValidator stops validating the address. For example, there is no validation that no value is specified if AllowUsecuredTransport=true.
TransportOptionsValidator
https://github.com/dotnet/aspire/blob/08dd9928cdf483947fd01d35ea77e8cd5d1294a2/src/Aspire.Hosting/Dashboard/TransportOptionsValidator.cs#L14-L16
AllowUsecuredTransport=true only impacts validating whether the transport is secure or not.
No response
TransportOptionsValidator is doing more than validating TransportOptions. It also validates a bunch of transport related environment variables.
TransportOptions
Is there an existing issue for this?
Describe the bug
If AllowUsecuredTransport=true then
TransportOptionsValidator
stops validating the address. For example, there is no validation that no value is specified if AllowUsecuredTransport=true.https://github.com/dotnet/aspire/blob/08dd9928cdf483947fd01d35ea77e8cd5d1294a2/src/Aspire.Hosting/Dashboard/TransportOptionsValidator.cs#L14-L16
Expected Behavior
AllowUsecuredTransport=true only impacts validating whether the transport is secure or not.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
No response
Anything else?
No response