docker-build
Fail
Audited by Gen Agent Trust Hub on Feb 17, 2026
Risk Level: HIGHCREDENTIALS_UNSAFE
Full Analysis
- [CREDENTIALS_UNSAFE] (HIGH): Hardcoded plaintext credentials detected in environment variables.
- The
POSTGRES_PASSWORDis set to a weak default value ('postgres'). - The
DATABASE_URLstring contains the hardcoded 'postgres:postgres' credential pair. - [NETWORK_SECURITY] (MEDIUM): Exposure of internal services.
- Database (5432) and Redis (6379) ports are mapped to the host's public interface (0.0.0.0). In production, these should be restricted to the internal network.
- [EXTERNAL_DOWNLOADS] (SAFE): Use of trusted official images.
- The configuration pulls
postgres:16-alpineandredis:7-alpinefrom Docker Hub, which are considered trusted sources. - [COMMAND_EXECUTION] (SAFE): Standard healthcheck implementations.
- The use of
pg_isready,redis-cli, andurllib.requestwithin healthchecks follows established best practices for container orchestration.
Recommendations
- AI detected serious security threats
Audit Metadata