aws / aws/aws-codedeploy-agent
[Feature Request]Appspec.yml validation
- Vorherrschende Sprache
- Rust
- Sterne
- 337
- Forks
- 195
- Ø Merge
- 10 Std. 54 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
There is a gap where the appspec.yml can be a valid yaml but incorrectly formatted which can cause the Ruby interpreter to crash.
An example is the permissions section:
```yaml
permissions:
- object: /tmp/my-app
pattern: "*-3.txt"
owner: adm
group: wheel
mode: 464
type:
- file
```
where type is expecting an array. If a str is given
```yaml
type: file
```
this will crash the agent with a message similar to the following:
```
put_host_command_complete(command_status:"Failed",diagnostics:{format:"JSON",payload:"{\"error_code\":5,\"script_name\":\"\",\"message\":\"undefined method `each' for \\\"file\\\":String\",\"log
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Parsen von appspec.yml und die Berechtigungsbehandlung zu lokalisieren, und reproduziere anschließend den im Issue beschriebenen fehlerhaften Fall `type: file`. Erledigt ist die Aufgabe, wenn falsch formatierte Werte mit einer klaren Diagnose abgelehnt werden, anstatt einen Absturz des Agenten zu verursachen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ruby, yaml
- Bereich
- devops
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100