Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Private intranet-level Nuget feed: Windows Integrated Security customization

I'm considering setting up Intranet-level Nuget feed(bunch of teams in my company are supposed to use it).
I've looked briefly through some tutorials + appropriate chapters in Pro Nuget book, however I still do have some question left so far:

  1. How to make windows integrated security working on private feed smoothly and customize access rights for private Nuget feed(for instance, grant everyone to get packages but grant pushing only to several domain users/groups);
  2. How to allow developers to push packages to private feed without having api key?
  3. How to save developers from making such silly mistake as pushing package to public feed? Is that enough to not configure api key for public feed as default?

Has anyone faced with one of these cases?

like image 547
alex.b Avatar asked Jul 31 '12 07:07

alex.b


People also ask

How do I create a private NuGet feed?

Go to Tools > NuGet Package Manager > Package Manager Settings, select Package Manager Sources, and then click the + button. Choose feed Name, set the feed URL to: https://nuget.telerik.com/nuget, and click OK. Create or load your project. Go to Tools > NuGet Package Manager > Manage NuGet Packages for a solution.

Where can I host private NuGet packages?

NuGet Gallery: Packages are hosted on an Internet server using the NuGet Gallery Project (github.com). NuGet Gallery provides user management and features such as an extensive web UI that allows searching and exploring packages from within the browser, similar to nuget.org.


1 Answers

I did not try this so far, but following those instructions : http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds

I would just create a network share on the server hosting the feed, with write access to specific AD group of developers.

This way your repository is public, and only some persons can add packages to it.

Even after, if you have a continuous integration server, you could allow access to the file share (or API key) only to the account building packages. This way packages are published automatically after having passed automated tests.

like image 200
mathieu Avatar answered Oct 07 '22 06:10

mathieu