Proposal: SSHDConfig Set Support for Match Blocks
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza en el recurso Microsoft.OpenSSH/SSHDConfig y en la ruta de validación existente de SSHD -T; después compara su tratamiento de la configuración global con las palabras clave repetibles descritas en #1340. Se considera terminado cuando los recursos con ámbito de match admitan _scope y _criteria, la creación de bloques match, actualizaciones, purgado y eliminación explícita mediante SSHDConfig.Repeatable, y la validación rechace las palabras clave no compatibles.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Rust
- Estrellas
- 536
- Forks
- 76
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 15
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la 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/DSC
-
Issue-Enhancement Needs Triage
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
PowerShell/DSC#1750 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Issue-Bug Need-Review
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
PowerShell/DSC#1749 ·
Los mantenedores suelen responder en 1 día
-
Issue-Bug Need-Review
Dificultad 3/5 1-2 días Aptitud para principiantes 40/100
PowerShell/DSC#1748 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
"apt install dsc" will install the preview release instead of stablePosiblemente ocupada @SteveL-MSFT la tomó hace 2 días. AbiertoIssue-Bug Need-Review
PowerShell/DSC#1746 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Issue-Enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
PowerShell/DSC#1737 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de PowerShell/DSC
Issues similares
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
NuSkooler/enigma-bbs#907 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
bug pixi-build-r
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
prefix-dev/pixi#7229 ·
Los mantenedores suelen responder en 1 día