Skip to content

PostgreSQL Connector: Add support mutual TLS (client certificate auth) #3857

@can-oezkan

Description

@can-oezkan

Problem Description

Currently I can use the postgresql connector with the following configuration:

def __init__(
self,
host,
port,
user,
password,
database,
schema,
tables,
ssl_enabled,
ssl_ca,
logger_,
retry_count=DEFAULT_RETRY_COUNT,
fetch_size=DEFAULT_FETCH_SIZE,
):

There is no option to configure the connector to use mutual TLS.

https://www.elastic.co/docs/reference/search-connectors/es-connectors-postgresql

Proposed Solution

It would like to be able to use client certificate auth.

The connection string with mutual TLS would look something like this:

postgresql://{host}:{port}/{database}?sslmode=prefer&sslkey={path to client.key}&sslcert={path to client.crt}&user={user}

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions