Skip to content

PgClient: Support parsing ssl key and cert paths from connection uri #1665

@mmwinther

Description

@mmwinther

Describe the feature

We are using Vert.x via the Micronaut framework where the options and client instantiation is handled by the framework based on declarative configuration. We are using a Postgres connection URI which contains all the necessary details for connecting to our Postgres instance via TLS. According to the documentation, not all connection parameters are supported: https://vertx.io/docs/vertx-pg-client/java/#_connection_uri

From the documentation it looks like this configuration could be supplied via the PemKeyCertOptions class but we strongly prefer externalized declarative configuration.

The following parameters are present in our connection URI:

  • sslcert
  • sslkey
  • sslrootcert

Supporting these parameters would make the Vert.x client much easier to configure for certain use cases.

Contribution

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions