An issue in the API key middleware allows unauthenticated attackers to obtain a temporary AWS IAM database password. When database connection failures occur, sending a well-formed but invalid API key triggers error responses that leak the password. This allows unauthorized access to the PostgreSQL database for a duration of 15 minutes.