(dsc): Support credentials, `acceptLicense` and PSGallery registration
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start by tracing the Repository registration flow for Register-PSResourceRepository and the PSResourceList install flow for Install-PSResource. Verify PSGallery parameter-set handling, credentialInfo and acceptLicense support, then check that get, test and export expose only vault and secret names.
Written by the indexing model from the issue text.
Description
Summary of the new feature / enhancement
The DSC resources cannot express three things that the underlying cmdlets support and that are needed in real deployments:
- Credentials.
Register-PSResourceRepository -CredentialInfoandInstall-PSResource -Credentialare not modelled, so a private feed (Azure Artifacts, GitHub Packages, an internal NuGet server) cannot be used from a configuration. acceptLicense.Install-PSResource -AcceptLicenseis not passed, so a module that requires license acceptance fails duringsetwith exit code 4.- PSGallery registration.
Register-PSResourceRepository -PSGalleryis a separate parameter set. Declaring{ name: PSGallery }in aRepositoryinstance on a machine where it was unregistered fails, because the script always callsRegister-PSResourceRepository -Name -Uri.
Example of what this could look like:
resources:
- name: Internal feed
type: Microsoft.PowerShell.PSResourceGet/Repository
properties:
name: Internal
uri: https://pkgs.dev.azure.com/contoso/_packaging/internal/nuget/v3/index.json
trusted: true
credentialInfo:
vaultName: ContosoVault
secretName: InternalFeedPat
- name: Modules
type: Microsoft.PowerShell.PSResourceGet/PSResourceList
properties:
repositoryName: Internal
acceptLicense: true
resources:
- name: Contoso.Tools
Proposed technical implementation details (optional)
Repository: add an optionalcredentialInfoobject (vaultName,secretName) mapped to-CredentialInfoon register and set, and handlename: PSGallerywithouturiby callingRegister-PSResourceRepository -PSGallery.PSResourceList: add an optionalacceptLicenseboolean passed toInstall-PSResource -AcceptLicense, and allowcredentialviaSecretManagementrather than plain text in the configuration.- Never emit secrets in
get,testorexportoutput; return only the vault and secret names.
- Dominant language
- C#
- Stars
- 576
- Forks
- 114
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectory Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PowerShell/PSResourceGet#2013 · 3 comments ·
-
Needs-Triage
Difficulty 3/5 1-2 days Newbie friendliness 68/100
PowerShell/PSResourceGet#2055 ·
-
Needs-Triage
Difficulty 3/5 1-2 days Newbie friendliness 72/100
PowerShell/PSResourceGet#2054 ·
-
(dsc): Export ignores `--input` filter for `Repository` and `PSResourceList` on DSC 3.3.* or above OpenNeeds-Triage
Difficulty 3/5 1-2 days Newbie friendliness 72/100
PowerShell/PSResourceGet#2053 ·
All issues in PowerShell/PSResourceGet
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100