Skip to content

fix(valkey): valkey.url keeps its scheme, so a valkeys url dials tls with host name checks #2026

Closed

Description

@dan-petty

Friction

valkey.url reaches the Valkey client as a host and a port, because the connection config drops the scheme. So a valkeys:// or rediss:// URL in valkey.url still connects in plaintext. Only the host argument path, which runs.index_url uses, dials TLS since #1988.

Evidence

Step B of tracking issue #1113 ("one validated URL names every Valkey endpoint") has no child issue. Intake refused it on 2026-10-23 as a duplicate of #1113. #1988 delivered step C and names this follow-up in its task file.

Proposed remedy

  • Parse valkey.url once with urllib.parse, keep its scheme, and pass it to the client, so valkeys and rediss dial TLS with host name checks.
  • A test with a valkeys:// URL shows a TLS handshake against a local CA, and a test with valkey:// shows plaintext.

Activity

  1. added
    type/security
    scope/security
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P2-Medium. This change corrects a behavior that affects TLS connections but does not introduce new functionality or security vulnerabilities.
    • Value: Medium. The fix improves connection security for users with valkeys:// URLs, but it is not critical to all users.
    • Effort: Low. The fix involves parsing the URL once and preserving the scheme, which is a small code change.
    • Related: fix(valkey): the Valkey client resolves a name once, vets every answer and dials the vetted address #1988, which asks for a different change. Both items work on Valkey client behavior, but the candidate focuses on URL scheme handling while item 1988 focuses on DNS resolution and connection vetting.
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

    scope/securitytype/security

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions