Skip to content
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

Clear NuGet security warnings #226

Merged
merged 2 commits into from
May 31, 2024
Merged

Conversation

davidmrdavid
Copy link
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
<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
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
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
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
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
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
2 checks passed
@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