feat: flag internet-facing load balancers with no WAF

オープン
#128 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, rust
領域
cloud, security

調査の方向性

Read docs/recipes/README.md and docs/recipes/add-a-finding.md, then inspect src/app/findings.rs and src/models/elb.rs. Follow the a_failed_tag_lookup_is_not_reported_as_unowned pattern and check how WAF fetch status and associated resources are represented. Done means the predicate and rule tests cover the four cases, the roadmap and minor changeset are updated, and the requested Rust checks pass; this issue is blocked by #127.

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

説明

size: S

Why

Every public Fells endpoint goes through one ALB. If its WAF association is ever dropped, the geo allow-list and rate limit silently stop applying.

Follow docs/recipes/add-a-finding.md.

Steps

  1. Add the web ACLs to FindingContext.
  2. Rule load_balancer_without_waf (Hygiene, High): an application load balancer with scheme internet-facing whose ARN is not in any ACL's associated resources.
  3. Only judge when the WAF fetch succeeded. If the WAF status is not OK, the rule must report nothing (see a_failed_tag_lookup_is_not_reported_as_unowned for the pattern).
  4. Tests: covered ALB is quiet, uncovered ALB fires, internal ALB is quiet, failed WAF fetch is quiet.

Where to look

  • src/app/findings.rs
  • src/models/elb.rs

Done when

  • Predicate on the model with unit tests (one firing case, one quiet case)
  • Rule added to FINDING_RULES with tests in src/app/findings.rs
  • docs/findings-roadmap.md lists the rule under Current Findings
  • Changeset added (minor)
  • cargo fmt --all, cargo clippy --all-targets -- -D warnings, and cargo test --all pass, with output pasted in the PR

Check against AWS

Optional. Unit tests are enough for this issue.

Blocked by

#127. Start this after that is merged.

Size: S. Read docs/recipes/README.md before starting.

主要言語
Rust
スター
2
フォーク
0
平均マージ
4時間 8分
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fells-code/seamless-glance のほかの issue

fells-code/seamless-glance の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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