PowerShell / PowerShellGallery

228 stars 65 forks source link

How to apply API Key to publish module on PSGallery #112

Open dingmeng-xue opened 4 years ago

dingmeng-xue commented 4 years ago

I'm from Azure PowerShell team. We have an API Key to publish Azure PowerShell modules including Azure Stack powershell module.

How can we allow Azure Stack team own their API Key and publish their module by themselves? We cannot share our key because it is not only for Azure Stack module but also other Azure PowerShell modules.

Below are sample modules from Azure Stack https://www.powershellgallery.com/packages/Azs.Subscriptions/0.9.0-preview https://www.powershellgallery.com/packages/Azs.Compute.Admin/0.9.0-preview

dingmeng-xue commented 4 years ago

@bganapa @erich-wang for your awareness.

SydneyhSmith commented 4 years ago

When creating an API key you can use the glob pattern to associated an API with a particular package or subset of packages...does that help address this issue image

bganapa commented 4 years ago

@dingmeng-xue For publishing the .NET SDKs, we delegate the permissions of each SDK to the individual RP team. I am not sure how that is achieved in nuget.org. Can we explore how we do that with nuget.org and then we can mimic the same with powershellgallery.com (if that option is available)