aws / aws/aws-codedeploy-agent
Some request missing SNI field
- Vorherrschende Sprache
- Rust
- Sterne
- 337
- Forks
- 195
- Ø Merge
- 10 Std. 54 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
We are trying to implement a whitelist for AWS Network Firewall for Egress filtering. A majority of the requests coming from CodeDeploy agent do properly have SNI such that Surricata rules can use tls.sni to filter and whitelist the requests. However, there are many requests to codedeploy-commands.{region}.amazonaws.com that do not contain tls.sni field during ssl hello. We were hoping to keep all aws traffic internal, but it doesn't seem like codedeploy has a vpc endpoint option.
My uneducated guess is that some one off request, [maybe the validation of the certificate](https://github.com/aws/aws-codedeploy-agent/blob/main/lib/instance_agent/plugins/codedeploy/codedeploy_control.rb#L70)(?), is not utilizing SNI.
Beitragsleitfaden
Rechercherichtung
Beginne mit lib/instance_agent/plugins/codedeploy/codedeploy_control.rb ungefähr bei Zeile 70 und verfolge die Anfragen an codedeploy-commands.{region}.amazonaws.com. Vergleiche Anfragen, die SNI enthalten, mit solchen, die dies nicht tun, und konzentriere dich auf den vermuteten Pfad der Zertifikatsvalidierung. Die Untersuchung ist abgeschlossen, wenn die für das fehlende SNI verantwortliche Anfrage identifiziert und entweder eine Ursache auf Agent-Seite bestätigt oder dokumentiert wurde, dass sie außerhalb des Agents liegt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, ruby
- Bereich
- cloud, networking
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100