Skip to content

fix(k8s): configure-urls saves valkey.url as a valkey:// URL built with httpx2.URL, and keeps a saved non-loopback URL #1990

Description

@dan-petty

Friction

  • devops k8s configure-urls can save valkey.url as http://<node>:<port>, because a detected NodePort or LoadBalancer address has the scheme http. The settings then read the host as http.
  • The code builds Valkey URLs and previews with the scheme tcp.
  • configure-urls writes valkey.host as <hostname>:<port> with no brackets, so an IPv6 address becomes a wrong host string.

Evidence

Checked at main a752a14.

Existing tool considered

Proposed remedy

Acceptance criteria

  • configure-urls saves a detected http://192.0.2.7:30637 as valkey://192.0.2.7:30637, and a detected http://[2001:db8::5]:30637 as valkey://[2001:db8::5]:30637.
  • A saved valkey://[2001:db8::5]:6379, valkey://[::ffff:192.0.2.5]:6379 or valkey://example.com:6379 survives when detection finds a loopback URL.
  • configure-urls replaces a saved loopback URL with a detected loopback URL. A saved valkey://localhost:6380 survives.
  • The NodePort preview and the port-forward preview show valkey://. test_the_valkey_preview_keeps_its_scheme expects valkey://.
  • rg -n 'tcp://|"tcp"' src/devops_cli/commands/k8s/networking.py src/devops_cli/commands/ai_runs.py src/devops_cli/ai/run_store.py src/devops_cli/valkey prints nothing.
  • Tests run offline. uv run devops ci passes.

Source: #1113

Activity

  1. added
    source/agent
    type/bug
    on Oct 23, 2026
  2. dan-petty commented on Oct 23, 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.

    • Type: type/bug. The candidate fixes a bug in URL handling for Valkey connections.
    • Priority: P2-Medium. This issue impacts how Valkey URLs are configured and used in Kubernetes environments.
    • Value: High. Fixing URL configuration improves the reliability of Valkey connections for users.
    • Effort: Medium. The fix requires changes to URL building logic and tests, but does not introduce major new features.
  3. dan-petty commented on Oct 27, 2026

    @dan-petty
    OwnerAuthor

    This issue was delivered already by commit 12fa20c (#2087). That commit removed _has_non_default_valkey_port and _should_update_valkey. It made configure-urls build valkey:// URLs with httpx2.URL. It added tests for each acceptance criterion in tests/test_k8s_networking.py and tests/test_k8s_proxy_addressing.py. Pull request #2087 closed #2060, and noted that it also delivered #1990. Because main contains the complete implementation, no code change is possible. Returning to New for person review.

  4. added a commit that references this issue on Oct 27, 2026
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

    source/agenttype/bug

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions