Make it impossible to accidentally define a nonfunctional secret extension
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start by inspecting the JSON Schema rules for extension manifests and the process_secret_args function. Compare enforcing one name argument with appending the secret name at runtime, including the optional vault argument. Done means non-functional secret definitions are prevented or clearly handled, with the limitation surfaced through dsc extension list or trace messages.
索引モデルが issue の本文から書いたものです。
説明
Summary of the new feature / enhancement
As an extension developer,
I want a clear contract for defining a secret extension that prevents defining a non-functional extension,
so that I can correctly define my extension without reading the implementation code in the DSC engine library.
In the current implementation:
- The
secret.argsfield for an extension manifest is optional. - The
secret.argsfield doesn't require exactly one instance of the name argument (like{"nameArg": "--secret-name"}). This makes it possible to define an extension that can't lookup specific secrets. Presumably, it will always return the same secret regardless of name, which seems counter to the spirit of thesecret(<name>[, <vault>])function. - The
secret.argsfield doesn't limit the inclusion of name and vault arguments to a single instance. - The
process_secret_argsfunction doesn't have any way to pass the secret name to an extension except with the name argument - no handling for ifnamewasn't processed in args. - The implementation doesn't signal to the user that no name can be provided. There's no surfacing of this information either in the representation for
dsc extension listor through trace messages.
Proposed technical implementation details (optional)
There are two different paths we can take:
- Update the JSON Schema to explicitly require
argsand to require a single name argument and optionally allow a single vault argument. - Update the implementation to append the secret name as the final argument to the executable when
argsisn't defined or is defined without a name argument.
The current implementation allows for non-functional extension manifest definitions. While it could be considered a breaking change to make the schema modifications, since they only exclude non-functional definitions this may be acceptable.
- 主要言語
- Rust
- スター
- 536
- フォーク
- 76
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/DSC のほかの issue
-
Issue-Enhancement Needs Triage
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
PowerShell/DSC#1750 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Issue-Bug Need-Review
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
PowerShell/DSC#1749 ·
メンテナーはふだん 1 日以内に返信
-
Issue-Bug Need-Review
難易度 3/5 1〜2日 初心者へのやさしさ 40/100
PowerShell/DSC#1748 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
"apt install dsc" will install the preview release instead of stable対応中かも @SteveL-MSFT が 1 日前に担当しました。 オープンIssue-Bug Need-Review
PowerShell/DSC#1746 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Issue-Enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PowerShell/DSC#1737 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
awaiting-response bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wildcard/caro#1562 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/sodg.rs#301 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
HakanSeven12/OpenCADStudio#1706 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Completion info popup (.cm-completionInfo) ignores the configured editor font対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rescript-lang/rescript#8765 ·
メンテナーはふだん 1 日以内に返信