connection_url_parser.dart accepts any sslmode string. Values like prefer, allow, invalid are silently passed through to the driver and cause runtime crashes.
Impact: Bad UX: failures happen late, during connect, not at input time.
Expected: Validate and reject unsupported sslmode values while parsing the URL.
Acceptance criteria:
connection_url_parser.dartaccepts anysslmodestring. Values likeprefer,allow,invalidare silently passed through to the driver and cause runtime crashes.Impact: Bad UX: failures happen late, during connect, not at input time.
Expected: Validate and reject unsupported
sslmodevalues while parsing the URL.Acceptance criteria:
sslmodevalues not in{disable, require, verify-ca, verify-full}for PostgreSQL.parseConnectionUrlInput.