(dsc): Support credentials, `acceptLicense` and PSGallery registration
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 576
- Fork
- 114
- Merge medio
- 1g 2h
- PR unite (30g)
- 7
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectory Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PowerShell/PSResourceGet#2013 · 3 commenti ·
-
Needs-Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
PowerShell/PSResourceGet#2055 ·
-
Needs-Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
PowerShell/PSResourceGet#2054 ·
-
(dsc): Export ignores `--input` filter for `Repository` and `PSResourceList` on DSC 3.3.* or above ApertaNeeds-Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
PowerShell/PSResourceGet#2053 ·
Tutte le issue di PowerShell/PSResourceGet
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
sillsdev/languageforge-lexbox#2665 ·
-
bug documentation frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
azurenoops/spin_agent#975 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SubtitleEdit/subtitleedit#15108 · 1 commento ·