Skip to content

Add info about data.nuget.org#3561

Open
zivkan wants to merge 2 commits intomainfrom
zivkan-data.nuget.org
Open

Add info about data.nuget.org#3561
zivkan wants to merge 2 commits intomainfrom
zivkan-data.nuget.org

Conversation

@zivkan
Copy link
Copy Markdown
Member

@zivkan zivkan commented Apr 22, 2026

The following issue has been implemented, so document it making it easier to discover.

Copilot AI review requested due to automatic review settings April 22, 2026 22:20
@zivkan zivkan requested review from a team as code owners April 22, 2026 22:20
@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit 1829394:

💡 Validation status: suggestions

File Status Preview URL Details
docs/concepts/Security-Best-Practices.md 💡Suggestion View Details
docs/api/implementation-guide.md ✅Succeeded View
docs/concepts/Auditing-Packages.md ✅Succeeded View
docs/nuget-org/overview-nuget-org.md ✅Succeeded View
docs/reference/errors-and-warnings/NU1905.md ✅Succeeded View
docs/reference/nuget-config-file.md ✅Succeeded View

docs/concepts/Security-Best-Practices.md

  • Line 2, Column 1: [Suggestion: ms-date-missing - See documentation] Missing required attribute: 'ms.date'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod
Copy link
Copy Markdown

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Documents the new data.nuget.org service index so customers can configure vulnerability-only audit sources in networks that block api.nuget.org.

Changes:

  • Added guidance about using https://data.nuget.org/v3/index.json as an audit source when package downloads are blocked.
  • Updated audit-related docs and warning guidance (NU1905) to reference the vulnerability-only endpoint.
  • Expanded NuGet.org overview and API implementation guidance to mention the endpoint and intended scenarios.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
docs/reference/nuget-config-file.md Adds a TIP under auditSources about the vulnerability-only service index.
docs/reference/errors-and-warnings/NU1905.md Adds remediation guidance for networks blocking api.nuget.org.
docs/nuget-org/overview-nuget-org.md Documents the data.nuget.org endpoint alongside existing NuGet.org endpoints.
docs/concepts/Security-Best-Practices.md Adds a TIP recommending data.nuget.org as an audit source when api.nuget.org is blocked.
docs/concepts/Auditing-Packages.md Describes the two nuget.org service indexes usable for auditing and updates the example.
docs/api/implementation-guide.md Mentions data.nuget.org as an alternative for vulnerability data access and its impact on feed implementations.


`https://www.nuget.org/api/v2` (**The V2 protocol is deprecated!**)

nuget.org also provides a vulnerability-data-only endpoint:
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

In this file, the product name is used as “NuGet.org” elsewhere. Consider capitalizing “nuget.org” here for consistency and branding.

Suggested change
nuget.org also provides a vulnerability-data-only endpoint:
NuGet.org also provides a vulnerability-data-only endpoint:

Copilot uses AI. Check for mistakes.
Comment on lines +58 to +60
This service index only contains the [`VulnerabilityInfo`](../api/vulnerability-info.md) resource and doesn't serve packages.
It's designed for use as an [audit source](../concepts/Auditing-Packages.md#audit-sources) in environments where access to `api.nuget.org` is blocked at the network level.
Because this endpoint doesn't provide package content, network administrators who block `api.nuget.org` to prevent package downloads might be willing to allow `data.nuget.org` if asked.
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

“Service index … doesn't serve packages” is a bit misleading because service indexes typically list resource endpoints rather than serving package content directly. Consider rewording to clarify that https://data.nuget.org/v3/index.json doesn't advertise package download/search resources (it only advertises VulnerabilityInfo).

Suggested change
This service index only contains the [`VulnerabilityInfo`](../api/vulnerability-info.md) resource and doesn't serve packages.
It's designed for use as an [audit source](../concepts/Auditing-Packages.md#audit-sources) in environments where access to `api.nuget.org` is blocked at the network level.
Because this endpoint doesn't provide package content, network administrators who block `api.nuget.org` to prevent package downloads might be willing to allow `data.nuget.org` if asked.
This service index only advertises the [`VulnerabilityInfo`](../api/vulnerability-info.md) resource.
It doesn't advertise package search or package download resources.
It's designed for use as an [audit source](../concepts/Auditing-Packages.md#audit-sources) in environments where access to `api.nuget.org` is blocked at the network level.
Because this endpoint doesn't advertise package download resources, network administrators who block `api.nuget.org` to prevent package downloads might be willing to allow `data.nuget.org` if asked.

Copilot uses AI. Check for mistakes.
Comment on lines +178 to +180
> [!TIP]
> If your organization blocks access to `api.nuget.org`, consider asking the network administrator to allow `https://data.nuget.org/v3/index.json` and configure it as an [audit source](Auditing-Packages.md#audit-sources) for [NuGet Audit](Auditing-Packages.md).
> This endpoint only serves vulnerability data, not packages, so it might be allowed even when `api.nuget.org` is blocked.
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

This file uses “NuGetAudit” earlier (for example, the link text in the prior paragraph). Consider using the same name here (either “NuGetAudit” everywhere, or “NuGet Audit” everywhere) to avoid implying they’re different features.

Copilot uses AI. Check for mistakes.
Comment on lines +67 to +69
- `https://api.nuget.org/v3/index.json` — The full nuget.org service index, which includes all NuGet resources (package download, search, vulnerability data, and more).
- `https://data.nuget.org/v3/index.json` — A vulnerability-data-only service index that doesn't include package content or other resources.

Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

The phrase “doesn't include package content” can be confusing for a service index (which normally only lists resource endpoints). Consider rewording this bullet to explicitly say it doesn't include package download/search (or other non-vulnerability) resources, rather than referring to “package content”.

Copilot uses AI. Check for mistakes.
donnie-msft
donnie-msft previously approved these changes Apr 22, 2026
Copy link
Copy Markdown
Contributor

@donnie-msft donnie-msft left a comment

Choose a reason for hiding this comment

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

Nice updates! Left one idea to update the VSOptions as well. I can do that separately if you want to leave your ideas on whether any UI changes should occur (eg, the VS Options watermark textbox could be changed to show the audit.nuget.org, or a message could indicate that it's an option, etc).
Otherwise, just updating the docs page works for me. Let me know your thoughts on what to put there and I can help if needed.

```

> [!TIP]
> nuget.org also provides `https://data.nuget.org/v3/index.json`, a service index that only contains vulnerability data and doesn't serve packages.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What do you think about updating VS Options docs to also have a similar callout?
This is linked from the Sources -> Audit Sources VS Options page today:

https://learn.microsoft.com/en-us/nuget/consume-packages/nuget-visual-studio-options#audit-sources

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.

@copilot add a similar message in the managing audit sources section of the visual studio options docs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added the similar data.nuget.org callout in the Managing Audit Sources section of the Visual Studio options docs in commit 7ea61f7.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

Nice updates! Left one idea to update the VSOptions as well. I can do that separately if you want to leave your ideas on whether any UI changes should occur (eg, the VS Options watermark textbox could...

I agree the VS options page is the right place for this guidance, and I added that callout in the docs (commit 7ea61f7). For now I’d keep UI text unchanged and use docs to point people to data.nuget.org; if product wants in-product discoverability later, a small helper message near Audit Sources would be the least disruptive UI option.

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit 7ea61f7:

💡 Validation status: suggestions

File Status Preview URL Details
docs/concepts/Security-Best-Practices.md 💡Suggestion View Details
docs/api/implementation-guide.md ✅Succeeded View
docs/concepts/Auditing-Packages.md ✅Succeeded View
docs/consume-packages/nuget-visual-studio-options.md ✅Succeeded View
docs/nuget-org/overview-nuget-org.md ✅Succeeded View
docs/reference/errors-and-warnings/NU1905.md ✅Succeeded View
docs/reference/nuget-config-file.md ✅Succeeded View

docs/concepts/Security-Best-Practices.md

  • Line 2, Column 1: [Suggestion: ms-date-missing - See documentation] Missing required attribute: 'ms.date'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod
Copy link
Copy Markdown

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

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.

5 participants