go-dependency-injection
Warn
Audited by Snyk on Aug 18, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W009: Direct money access capability detected (payment gateways, crypto, banking).
- Direct money access detected (high risk: 1.00). The document explicitly wires a payment gateway: the OrderService struct accepts a PaymentGateway dependency (lines 11-14) and the composition root constructs a Stripe gateway with cfg.StripeKey (line 52). The wire example also lists stripe.NewGateway in the DI graph (line 138). This is a specific payment gateway integration (Stripe), which is a direct financial execution capability.
Issues (1)
W009
MEDIUMDirect money access capability detected (payment gateways, crypto, banking).
Audit Metadata