(dsc): Support credentials, `acceptLicense` and PSGallery registration
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C#
- スター
- 576
- フォーク
- 114
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/PSResourceGet のほかの issue
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectory オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2013 · コメント 3 件 ·
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2055 ·
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
PowerShell/PSResourceGet#2054 ·
-
(dsc): Export ignores `--input` filter for `Repository` and `PSResourceList` on DSC 3.3.* or above オープンNeeds-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
PowerShell/PSResourceGet#2053 ·
PowerShell/PSResourceGet の issue をすべて見る
似ている issue
-
bug documentation frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
azurenoops/spin_agent#975 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
dotnet/AspNetCore.Docs#37699 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SubtitleEdit/subtitleedit#15108 · コメント 1 件 ·
-
area/docs-content Bug pulumi/docs
難易度 1/5 1〜3時間 初心者へのやさしさ 94/100