Skip to content

Clear NuGet security warnings#226

Merged
davidmrdavid merged 2 commits intomainfrom
dajusto/pass-nuget-security-checks
May 31, 2024
Merged

Clear NuGet security warnings#226
davidmrdavid merged 2 commits intomainfrom
dajusto/pass-nuget-security-checks

Conversation

@davidmrdavid
Copy link
Copy Markdown
Member

This is the DTFx-MSSQL version of this PR: Azure/azure-functions-durable-extension#2842

As part of the 1ES migration, we have new supply chain requirements around our repo's nuget.config files.

In particular, we're getting errors due to use MyGet. This PR removes our MyGet usage. It also addresses warnings regarding missing <clear/> statements.

nuget.config Outdated
<clear/>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="azure-appservice-staging" value="https://www.myget.org/F/azure-appservice-staging/api/v3/index.json" />
<add key="azure-appservice" value="https://www.myget.org/F/azure-appservice/api/v3/index.json" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will need to be removed or replaced with an ADO feed as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I missed there were two of these. Fixing promptly

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jviau - fixed in next commit

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, I guess that if we only have nuget.org, we don't really need a nuget.config....but I think we'll eventually want to add the ADO feed so I'll keep it around

Copy link
Copy Markdown
Member

@jviau jviau May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are expected to always have a nuget.config, because the <clear /> element is important. Otherwise you might pick up a nuget.config in a parent directory, or some other inherited sources. Which leaves this open to a potential supply-chain attack.

@davidmrdavid davidmrdavid requested a review from jviau May 31, 2024 20:55
@davidmrdavid davidmrdavid merged commit 4725c66 into main May 31, 2024
@davidmrdavid davidmrdavid deleted the dajusto/pass-nuget-security-checks branch May 31, 2024 21:10
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