Bug 203426

Summary: Add SSL support for peformance dashboard database connection.
Product: WebKit Reporter: dewei_zhu
Component: New BugsAssignee: dewei_zhu
Status: RESOLVED FIXED    
Severity: Normal CC: dewei_zhu, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch rniwa: review+

Description dewei_zhu 2019-10-25 11:29:51 PDT
Add SSL support for peformance dashboard database connection.
Comment 1 dewei_zhu 2019-10-25 11:34:04 PDT
Created attachment 381948 [details]
Patch
Comment 2 Ryosuke Niwa 2019-10-25 13:38:01 PDT
Comment on attachment 381948 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=381948&action=review

> Websites/perf.webkit.org/public/include/db.php:121
> +        $connectionString = 'host=' . $databaseConfig['host'] . ' port=' . $databaseConfig['port']
> +            . ' dbname=' . $databaseConfig['name'] . ' user=' . $databaseConfig['username'] . ' password=' . $databaseConfig['password'];

This string concatenation is hard to read. Can we define local variables and do:
"host=$host port=$port dbname=$dbname user=$user password=$password"?

> Websites/perf.webkit.org/public/include/db.php:136
> +                $sslConfigString .= ' ssl' . $key . '=' . $path;

Why not just $sslConfigString .= "ssl $key = $path"?
Comment 3 dewei_zhu 2019-10-25 15:45:16 PDT
Landed in r251607.