Skip to content

cli,server: enable SQL clients on TCP with non-TLS modes #44842

@knz

Description

@knz

Today CockroachDB requires TLS for all client connections on TCP soon as a cluster is runnign securely.

(Unix socket connections already do not require TLS).

As discussed in #16188 (comment) and following, it may be interesting to introduce an alternate listener when the network environment (e.g. k8s) provides its own layer of transport security.

When this becomes available, the authentication should be configurable in a different way than TLS certificates (for example, to require passwords).

PostgreSQL already supports this by distinguishing hostssl and hostnossl rules in the HBA configuration. CockroachDB could do something similar.

Note that this enhancement does not require separate listeners, because the pg protocol already supports mixed TLS / non-TLS connections over a single port.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-kv-serverRelating to the KV-level RPC serverA-sql-pgwirepgwire protocol issues.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions