-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop the apphost from running if the application url is http and ASPIRE_ALLOW_UNSECURED_TRANSPORT is not set #3177
Conversation
Are there any tests that can be written for this new functionality? |
src/Aspire.Hosting/Dashboard/DashboardAuthenticationOptionsValidator.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting/Dashboard/DashboardAuthenticationOptionsValidator.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting/Dashboard/DashboardAuthenticationOptionsValidator.cs
Outdated
Show resolved
Hide resolved
…ributedApplicationOptions.DisableDashboard to do the right thing in terms of validation.
Co-authored-by: Eric Erhardt <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nits but this is good.
/backport to release/8.0-preview5 |
Started backporting to release/8.0-preview5: https://github.com/dotnet/aspire/actions/runs/8460970955 |
@mitchdenny backporting to release/8.0-preview5 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Minimal change to kick start the branch.
Using index info to reconstruct a base tree...
M playground/TestShop/AppHost/Properties/launchSettings.json
Falling back to patching base and 3-way merge...
Auto-merging playground/TestShop/AppHost/Properties/launchSettings.json
No changes -- Patch already applied.
Applying: WIP.
Applying: WIP
Using index info to reconstruct a base tree...
M playground/TestShop/AppHost/Properties/launchSettings.json
M src/Aspire.Hosting/Dcp/ApplicationExecutor.cs
M src/Aspire.Hosting/DistributedApplicationBuilder.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Aspire.Hosting/DistributedApplicationBuilder.cs
Auto-merging src/Aspire.Hosting/Dcp/ApplicationExecutor.cs
CONFLICT (content): Merge conflict in src/Aspire.Hosting/Dcp/ApplicationExecutor.cs
Auto-merging playground/TestShop/AppHost/Properties/launchSettings.json
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0003 WIP
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@mitchdenny an error occurred while backporting to release/8.0-preview5, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
…RE_ALLOW_UNSECURED_TRANSPORT is not set (#3177)
I'm making use of the options validation APIs to blow up if the URL is http and the allow insecure environment is not set. The environment variable that binds to the option is:
Microsoft Reviewers: Open in CodeFlow