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

Fall back to using API key also for pushing symbol packages if nothing else was specified as parameter or config #5122

Merged

Conversation

jwfx
Copy link
Contributor

@jwfx jwfx commented Apr 3, 2023

Bug

Fixes: NuGet/Home#11846

Regression? Last working version:

Description

Currently it is not possible to reuse the package API key also for symbol sources on 3rd party NuGet servers.
For nuget.org this is possible because it receives a special treatment in CommandRunnerUtility.GetApiKey().

This change makes it possible for the symbol source API key to fall back to the package source API key if nothing else is specified via parameter or config.

Additional documentation should not be required, as this change brings it in line what is already documented here (Step 3 in particular).

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

…ng else was specified via parameter or config #11846
@jwfx jwfx requested a review from a team as a code owner April 3, 2023 21:27
@ghost ghost added the Community PRs created by someone not in the NuGet team label Apr 3, 2023
@jwfx
Copy link
Contributor Author

jwfx commented Apr 3, 2023

@dotnet-policy-service agree

…ymbolPackagePublish service to avoid leaking keys
@jwfx jwfx requested a review from kartheekp-ms April 11, 2023 15:56
@kartheekp-ms
Copy link
Contributor

kartheekp-ms commented Apr 12, 2023

@jwfx The changes look good to me. I just need some more time to review the tests. I plan to complete the review as soon as possible. Thanks for understanding.

@kartheekp-ms kartheekp-ms merged commit ae9e41f into NuGet:dev Apr 19, 2023
@jwfx
Copy link
Contributor Author

jwfx commented Apr 19, 2023

Thank you guys for your quick reaction and taking the time to review this. 👍

@kartheekp-ms
Copy link
Contributor

Thank you guys for your quick reaction and taking the time to review this. 👍

@jwfx I appreciate the effort you put into contributing to the NuGet Client repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: dotnet nuget push not detecting apikey for 3rd party symbol server
3 participants