aws / aws/aws-codedeploy-agent
[Feature Request]Appspec.yml validation
- 主要语言
- Rust
- 星标
- 337
- 派生
- 195
- 平均合并
- 10 小时 54 分钟
- 30 天内合并 PR
- 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` 情况。完成标准是:格式不正确的值会被拒绝并给出明确的诊断,而不是导致 agent 崩溃。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ruby, yaml
- 领域
- devops
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100