SigNoz/signoz

Move db calls to prepared statements with context

Aperta

#1353 aperta il 4 lug 2022

 (11 commenti) (0 reazioni) (1 assegnatario)TypeScript (976 fork)batch import
backendgood first issue

Metriche repository

Star
 (16.037 stelle)
Metriche merge PR
 (Merge medio 5g 22h) (224 PR mergiate in 30 g)

Descrizione

Move all db calls to prepared statements and specifically with context if possible to make signoz more secure from sql injections. A query should not be a string prepared from fmt.sprintf(...) if it has args to pass. We should try to avoid string formatting for args.

Guida contributor