golang-gin-database

Pass

Audited by Gen Agent Trust Hub on Mar 20, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill emphasizes secure credential management by instructing users to read sensitive information like 'DATABASE_URL' and 'REDIS_PASSWORD' from environment variables rather than hardcoding them in the source code.
  • [SAFE]: Explicit protection against SQL injection is provided through multiple examples and clear warnings, mandating the use of parameterized placeholders and named parameters ($N, :name) for both GORM and sqlx queries.
  • [SAFE]: Network security is prioritized with recommendations to use 'sslmode=verify-full' in production to prevent man-in-the-middle attacks, alongside proper connection pooling configurations to prevent resource exhaustion.
  • [SAFE]: All external software dependencies recommended for installation, such as GORM, sqlx, redis/go-redis, and golang-migrate, are standard, industry-recognized Go libraries fetched from official repositories.
  • [SAFE]: The skill implements a secure transaction pattern by propagating database transactions through Go's context, ensuring atomicity and preventing data corruption without exposing internal database handles unnecessarily.
Audit Metadata
Risk Level
SAFE
Analyzed
Mar 20, 2026, 09:10 PM