Audit binding to all interfaces
Recipe ID
org.openrewrite.golang.codequality.AuditBindAllInterfacesArtifactgithub.com/moderneinc/recipes-goFind network listeners bound to all interfaces (e.g. :8080, 0.0.0.0, [::]). This exposes the service beyond loopback and may be unintended; prefer an explicit host such as 127.0.0.1 (gosec G102).
Single recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.golang.codequality.AuditBindAllInterfacesIf the recipe isn’t available locally, install it with:
mod config recipes go install github.com/moderneinc/recipes-go