Skip to content

Disallow http feeds when looking for templates in NuGet#6313

Merged
maridematte merged 7 commits intodotnet:mainfrom
maridematte:disallowHttp
Apr 14, 2023
Merged

Disallow http feeds when looking for templates in NuGet#6313
maridematte merged 7 commits intodotnet:mainfrom
maridematte:disallowHttp

Conversation

@maridematte
Copy link
Copy Markdown
Member

@maridematte maridematte commented Mar 24, 2023

Problem

Solution for this issue #5859

Solution

When installing or updating packages, if --force is not specified, do not search feeds that are not secure (http feeds) and give a warning about that.

Checks:

  • Added unit tests
  • Added #nullable enable to all the modified files ?

@maridematte maridematte requested a review from a team as a code owner March 24, 2023 22:30
@maridematte maridematte changed the title Disallow http Disallow http feeds when looking for templates in NuGet Mar 24, 2023
@maridematte
Copy link
Copy Markdown
Member Author

Waiting on discussion about NuGet's https everywhere initiative and if it would impact the way this change is done.

@YuliiaKovalova
Copy link
Copy Markdown
Member

Looks good!

@maridematte
Copy link
Copy Markdown
Member Author

Warning message with current change:

image

@maridematte maridematte merged commit 93e3fb7 into dotnet:main Apr 14, 2023
mmitche pushed a commit to dotnet/sdk that referenced this pull request Apr 2, 2026
…ating#6313)

Added http filter similar to NuGet's to warn bout http feeds being used.

Commit migrated from dotnet/templating@93e3fb7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants