(dsc): Support credentials, `acceptLicense` and PSGallery registration
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C#
- Estrellas
- 576
- Forks
- 114
- Merge medio
- 23 h 17 min
- PR fusionados (30 d)
- 8
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectory Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
PowerShell/PSResourceGet#2013 · 3 comentarios ·
-
feature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 1 asignado ·
-
Needs-Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
PowerShell/PSResourceGet#2055 ·
-
Needs-Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
PowerShell/PSResourceGet#2054 ·
Todos los issues de PowerShell/PSResourceGet
Issues similares
-
[Feat] 조합 영역 구분선 개선 Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
type/automation type/tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
t/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
ci-failure-cause test-failure
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100