fix(rds): reject malformed proxy boolean flags (#5453)

This commit is contained in:
David Phillips authored and GitHub committed 2026-10-11 11:42:59 -04:00
1 parent 09a2d5c005
commit af3672ed0c
3 files changed
+61 -2

No files matched your search

@@ -1786,8 +1786,8 @@ public class RdsQueryHandler {
validateDbProxyNetworkType(targetConnectionNetworkType, "TargetConnectionNetworkType", false, "IPV4 or IPV6");
String name = params.getFirst("DBProxyName");
String engineFamily = params.getFirst("EngineFamily");
boolean requireTls = "true".equalsIgnoreCase(params.getFirst("RequireTLS"));
boolean debugLogging = "true".equalsIgnoreCase(params.getFirst("DebugLogging"));
boolean requireTls = Boolean.TRUE.equals(parseOptionalBoolean(params, "RequireTLS"));
boolean debugLogging = Boolean.TRUE.equals(parseOptionalBoolean(params, "DebugLogging"));
int idleClientTimeout = 1800;
String idleClientTimeoutValue = params.getFirst("IdleClientTimeout");
if (idleClientTimeoutValue != null) {