Skip to content

Allow setting TLS settings on the underlying HTTPS agent #197

Closed

Description

@sidfarkus

Currently the settings for a custom certificate or two-way SSL are implemented on the IConnectionOptions interface but they don't surface back up to an object that the user of the library can easily manipulate; for example in ConnectionOptions. I think these options should be settable when establishing a new connection in https://github.com/databricks/databricks-sql-nodejs/blob/main/lib/DBSQLClient.ts#L120C16-L120C23

A workaround is to bypass the 'private' protections on DBSQLClient.getConnectionOptions but that is non-ideal.

Activity

  1. added
    enhancementNew feature or request
    Component: CoreIssues related to DBSQLClient, DBSQLSession, and DBSQLOperation
    on Apr 11, 2024
  2. vuanhphung commented on Oct 29, 2026

    @vuanhphung
    Collaborator

    This was implemented in 2.1.0 (#463). connect() now accepts customCaCert, clientCert and clientKey for mTLS, plus checkServerCertificate, so there's no need to reach into getConnectionOptions anymore. See the TLS section of CONNECTION_PARAMETERS.md. I confirmed on 2.4.0 that these options reach the HTTPS agent and that connections work with them set.

    Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreIssues related to DBSQLClient, DBSQLSession, and DBSQLOperationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions