Proposal: SSHDConfig Set Support for Match Blocks
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Microsoft.OpenSSH/SSHDConfig リソースと既存の SSHD -T 検証パスから着手し、グローバル設定の処理を #1340 で説明されている繰り返し可能なキーワードの処理と比較します。完了条件は、match スコープのリソースが _scope と _criteria、match ブロックの作成、更新、パージ、SSHDConfig.Repeatable による明示的な削除をサポートし、検証でサポートされていないキーワードを拒否することです。
索引モデルが issue の本文から書いたものです。
説明
Summary of the new feature / enhancement
As a user, I want to be able to use the Microsoft.OpenSSH/SSHDConfig resource to configure the settings within a match block. Ideally, the experience should be similar to the way that I would configure global settings.
Proposed technical implementation details (optional)
This design aims to manage the match criteria like other repeatable keywords (see #1340) and manage the contents of the match block by treating it as its own configuration (leveraging the existing SSHD -T validation to verify that keywords are allowed within the match block).
To do so, add _scope and _criteria properties to the existing Microsoft.OpenSSH/SSHDConfig resource, so the schema would look like the following:
_scope: "global" | "match" # default: global
_criteria: # required when _scope: match
user: Vec<string>
group: Vec<string>
host: Vec<string>
address: Vec<string>
localaddress: Vec<string>
localport: Vec<string>
rdomain: Vec<string>
# + any keywords targeted for match block
Match Block Lifecycle
- Creation: Implicit when
_scope: "match"is used with any keyword(s) - Removal: Explicit via
Microsoft.OpenSSH/SSHDConfig.Repeatablewith_exist: falseand match keyword using typed criteria
Examples:
- Configure an initial match block:
- type: Microsoft.OpenSSH/SSHDConfig
properties:
_scope: "match"
_criteria:
user:
- admin
PasswordAuthentication: true
AuthorizedKeysFile: "__PROGRAM_DATA__/ssh/administrators_authorized_keys"
match user admin
PasswordAuthentication yes
AuthorizedKeysFile __PROGRAM_DATA__/ssh/administrators_authorized_keys
- To update a keyword in a match block:
- type: Microsoft.OpenSSH/SSHDConfig
properties:
_scope: "match"
_criteria:
user:
- admin
PasswordAuthentication: false
match user admin
PasswordAuthentication no
AuthorizedKeysFile __PROGRAM_DATA__/ssh/administrators_authorized_keys
- To update all keywords in a match block (purge):
- type: Microsoft.OpenSSH/SSHDConfig
properties:
_scope: "match"
_criteria:
user:
- admin
_purge: true
PasswordAuthentication: false
match user admin
PasswordAuthentication no
- To remove the entire match block:
- type: Microsoft.OpenSSH/SSHDConfig.Repeatable
properties:
_exist: false
match:
- user:
- admin
- 主要言語
- 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
-
bug user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rescript-lang/rescript#8765 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nautechsystems/nautilus_trader#5287 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
farion1231/cc-switch#8072 ·
メンテナーはふだん 1 日以内に返信
-
Python 3.15 support対応中かも @amnesiaof が今日担当しました。 オープンL: python L: python:uv
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dependabot/dependabot-core#16524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信