Skip to content

Enabling TLS 1.3 in Vertica-SQL-GO - #185

Merged
mkottakota1 merged 5 commits into
masterfrom
tls_1.3_suuport
Nov 19, 2025
Merged

mkottakota1 merged 5 commits into
masterfrom
tls_1.3_suuport

Conversation

@mkottakota1

Copy link
Copy Markdown
Collaborator

Current SQL GO Driver is already supports TLS 1.3.

  1. Added a new test case for testing TLS Auto Negotiation with the MinVersion supported by the client.
  2. Enabled TLS 1.3 Docker Pipelines to run the existing TLS Tests.

@CLAassistant

CLAassistant commented Oct 31, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@mkottakota1
mkottakota1 marked this pull request as draft October 31, 2025 09:38
@mkottakota1 mkottakota1 self-assigned this Oct 31, 2025
@mkottakota1
mkottakota1 force-pushed the tls_1.3_suuport branch 2 times, most recently from cfecbaa to 2d22ab0 Compare November 12, 2025 08:58
@skalampally

skalampally commented Nov 13, 2025 •

Copy link
Copy Markdown
Collaborator

As per the documentation, the tlsmode parameter can be configured with the following modes:

  none – SSL/TLS is not used for the connection.
  prefer (default) – Attempts to use SSL/TLS if the server supports it; otherwise, the connection proceeds without SSL/TLS.
  server – Requires the server to support SSL/TLS, but skips certificate verification (insecure).
  server-strict – Requires the server to support SSL/TLS and enforces verification.
  {customName} – Uses a custom registered tls.Config (refer to the “Using custom TLS config” section for details).

By default, tlsmode is set to none. Since the existing unit tests do not cover other modes, it is important to perform manual testing across all modes to verify that they function correctly, particularly when claiming TLS 1.3 support.

Please ensure that testing evidence is provided for each mode, as there are currently no automated tests validating these configurations.

I have provided all required artifacts for all the modes.

@mkottakota1

mkottakota1 commented Nov 13, 2025 •

Copy link
Copy Markdown
Collaborator Author

As per the documentation, the tlsmode parameter can be configured with the following modes:

  none – SSL/TLS is not used for the connection. 

In the Pipelines we are enabling the TLS 1.3 in Server and TLS is enabled in mutual mode.

prefer (default) – Attempts to use SSL/TLS if the server supports it; otherwise, the connection proceeds without SSL/TLS.
server – Requires the server to support SSL/TLS, but skips certificate verification (insecure).
server-strict – Requires the server to support SSL/TLS and enforces verification.
{customName} – Uses a custom registered tls.Config (refer to the “Using custom TLS config” section for details).

You are correct, In the pipeline we are running tests with Server and Custom mode.

By default, tlsmode is set to none. Since the existing unit tests do not cover other modes, it is important to perform manual testing across all modes to verify that they function correctly, particularly when claiming TLS 1.3 support.

Please ensure that testing evidence is provided for each mode, as there are currently no automated tests validating these configurations.

Sure, we can connect for this.

@mkottakota1
mkottakota1 marked this pull request as ready for review November 13, 2025 08:50
@mkottakota1

Copy link
Copy Markdown
Collaborator Author

As per the documentation, the tlsmode parameter can be configured with the following modes:

  none – SSL/TLS is not used for the connection. 

In the Pipelines we are enabling the TLS 1.3 in Server and TLS is enabled in mutual mode.

prefer (default) – Attempts to use SSL/TLS if the server supports it; otherwise, the connection proceeds without SSL/TLS.
server – Requires the server to support SSL/TLS, but skips certificate verification (insecure).
server-strict – Requires the server to support SSL/TLS and enforces verification.
{customName} – Uses a custom registered tls.Config (refer to the “Using custom TLS config” section for details).

You are correct, In the pipeline we are running tests with Server and Custom mode.

By default, tlsmode is set to none. Since the existing unit tests do not cover other modes, it is important to perform manual testing across all modes to verify that they function correctly, particularly when claiming TLS 1.3 support.
Please ensure that testing evidence is provided for each mode, as there are currently no automated tests validating these configurations.

Sure, we can connect for this.

I have explained Siva on what modes are running the TLS tests and agreed to show the verify-full tls run in local setup.

Since it can't be achieved in the Pipeline.

For verify-full I have provided the tls 1.3 connection snap with OTCAD setup

@mkottakota1

mkottakota1 commented Nov 13, 2025 •

Copy link
Copy Markdown
Collaborator Author

As per the documentation, the tlsmode parameter can be configured with the following modes:

  none – SSL/TLS is not used for the connection. 

In the Pipelines we are enabling the TLS 1.3 in Server and TLS is enabled in mutual mode.

prefer (default) – Attempts to use SSL/TLS if the server supports it; otherwise, the connection proceeds without SSL/TLS.
server – Requires the server to support SSL/TLS, but skips certificate verification (insecure).
server-strict – Requires the server to support SSL/TLS and enforces verification.
{customName} – Uses a custom registered tls.Config (refer to the “Using custom TLS config” section for details).

You are correct, In the pipeline we are running tests with Server and Custom mode.

By default, tlsmode is set to none. Since the existing unit tests do not cover other modes, it is important to perform manual testing across all modes to verify that they function correctly, particularly when claiming TLS 1.3 support.
Please ensure that testing evidence is provided for each mode, as there are currently no automated tests validating these configurations.

Sure, we can connect for this.

I have explained Siva on what modes are running the TLS tests and agreed to show the verify-full tls run in local setup.

Since it can't be achieved in the Pipeline.

For verify-full I have provided the tls 1.3 connection snap with OTCAD setup

image image

I had run tls mode server-strict in my local setup. Kindly find the below snap for reference.

image

@skalampally

Copy link
Copy Markdown
Collaborator

Since the Golang client driver also runs on the Windows platform, it’s important to validate TLS behavior on Windows as well. I’m highlighting this specifically because, in the case of the ODBC driver, TLS worked correctly on Linux but not on Windows, and I want to ensure we don’t encounter a similar issue with the Go driver.

@mkottakota1

Copy link
Copy Markdown
Collaborator Author

As per the documentation, the tlsmode parameter can be configured with the following modes:

  none – SSL/TLS is not used for the connection.
  prefer (default) – Attempts to use SSL/TLS if the server supports it; otherwise, the connection proceeds without SSL/TLS.
  server – Requires the server to support SSL/TLS, but skips certificate verification (insecure).
  server-strict – Requires the server to support SSL/TLS and enforces verification.
  {customName} – Uses a custom registered tls.Config (refer to the “Using custom TLS config” section for details).

By default, tlsmode is set to none. Since the existing unit tests do not cover other modes, it is important to perform manual testing across all modes to verify that they function correctly, particularly when claiming TLS 1.3 support.

Please ensure that testing evidence is provided for each mode, as there are currently no automated tests validating these configurations.

I have provided all required artifacts for all the modes.

@mkottakota1

Copy link
Copy Markdown
Collaborator Author

Since the Golang client driver also runs on the Windows platform, it’s important to validate TLS behavior on Windows as well. I’m highlighting this specifically because, in the case of the ODBC driver, TLS worked correctly on Linux but not on Windows, and I want to ensure we don’t encounter a similar issue with the Go driver.

Ok, Siva. Will run this TLS tests in Windows env.

@mkottakota1

Copy link
Copy Markdown
Collaborator Author

Since the Golang client driver also runs on the Windows platform, it’s important to validate TLS behavior on Windows as well. I’m highlighting this specifically because, in the case of the ODBC driver, TLS worked correctly on Linux but not on Windows, and I want to ensure we don’t encounter a similar issue with the Go driver.

Ok, Siva. Will run this TLS tests in Windows env.

I have created a CA signed certificate and verified TLS 1.3 authentication using server and server-strict mode in Windows using the same certs. Kindly find the below snap for reference.

image

I will enable the mutual mode and will run the tls_mode=custom and provide you the artifacts.

@mkottakota1

Copy link
Copy Markdown
Collaborator Author

Since the Golang client driver also runs on the Windows platform, it’s important to validate TLS behavior on Windows as well. I’m highlighting this specifically because, in the case of the ODBC driver, TLS worked correctly on Linux but not on Windows, and I want to ensure we don’t encounter a similar issue with the Go driver.

Ok, Siva. Will run this TLS tests in Windows env.

I have created a CA signed certificate and verified TLS 1.3 authentication using server and server-strict mode in Windows using the same certs. Kindly find the below snap for reference.

image I will enable the mutual mode and will run the tls_mode=custom and provide you the artifacts.

I have enabled the mutual mode and generated client certs and signed by the same RootCA. Now custom mode are also working fine in Windows. Kindly find the below snap for reference.

image

@skalampally skalampally left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes looks good. The TLS authentication is checked both on Windows and Linux. Hence approving.

@mkottakota1
mkottakota1 merged commit b5c8b05 into master Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants