[CONJS-144] TypeScript type ssl wrong definitions Created: 2020-08-31  Updated: 2020-10-05  Resolved: 2020-08-31

Status: Closed
Project: MariaDB Connector/node.js
Component/s: configuration, typescript
Affects Version/s: None
Fix Version/s: 2.5.0

Type: Bug Priority: Minor
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

TypeScript type definition has an error on SSL description :

  /**
   * object with ssl parameters or a string containing name of ssl profile
   */
  ssl?: string | (tls.SecureContextOptions & { rejectUnauthorized?: boolean });

must be :

  /**
   * object with ssl parameters
   */
  ssl?: boolean | (tls.SecureContextOptions & { rejectUnauthorized?: boolean });

String parameters was for specific profile saved in connector like mysql does with "Amazon RDS" but this create more problem that is helping, so not implemented.

And boolean option is missing : boolean is the basic option to set SSL when server is using well-known root Certificate Authorities, so not having to set anything client side, just enabling SSL.


Generated at Thu Feb 08 03:23:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.