aws / aws/aws-codedeploy-agent

[Feature Request]Appspec.yml validation

オープン
#369 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
337
フォーク
195
平均マージ
10時間 54分
マージ済み PR(30日)
4

説明

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
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず appspec.yml の解析と権限処理の場所を特定し、次に issue で説明されている不正な `type: file` のケースを再現してください。不正な形式の値がエージェントをクラッシュさせるのではなく、明確な診断メッセージとともに拒否されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ruby, yaml
領域
devops
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。