Repository navigation
Labels
Description
Friction
devops k8s configure-urlscan savevalkey.urlashttp://<node>:<port>, because a detected NodePort or LoadBalancer address has the schemehttp. The settings then read the host ashttp.- The code builds Valkey URLs and previews with the scheme
tcp. configure-urlswritesvalkey.hostas<hostname>:<port>with no brackets, so an IPv6 address becomes a wrong host string.
Evidence
Checked at main a752a14.
src/devops_cli/commands/k8s/networking.py:510passesdefault_scheme="tcp". The NodePort preview and the port-forward preview also usetcp.tests/test_k8s_proxy_addressing.pypins the preview.networking.py:528-531writesvalkey.hostasf"{h}:{p_valkey.port}"andvalkey.port._has_non_default_valkey_port(:446) and_should_update_valkey(:464) decide when a detected URL replaces the saved one.- fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113 lists this change as its step D. It follows step B. After the split, fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113 only tracks its child issues, and no pull request closes fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113 itself. So this candidate asks for a change that no other issue holds.
Existing tool considered
httpx2.URL(scheme="valkey", host=..., port=...)writes the brackets of an IPv6 host (probed in fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113)._apply_service_urlalready savesqdrant.urlin the same way.
Proposed remedy
- Delete
_has_non_default_valkey_portand_should_update_valkey. - Build every Valkey URL and preview as
valkey://withhttpx2.URL. - Send
valkey.urlthrough_apply_service_url, asqdrant.urlgoes. - Decision 5 of fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113 applies: a saved
valkey://localhost:6380survives detection.
Acceptance criteria
-
configure-urlssaves a detectedhttp://192.0.2.7:30637asvalkey://192.0.2.7:30637, and a detectedhttp://[2001:db8::5]:30637asvalkey://[2001:db8::5]:30637. - A saved
valkey://[2001:db8::5]:6379,valkey://[::ffff:192.0.2.5]:6379orvalkey://example.com:6379survives when detection finds a loopback URL. -
configure-urlsreplaces a saved loopback URL with a detected loopback URL. A savedvalkey://localhost:6380survives. - The NodePort preview and the port-forward preview show
valkey://.test_the_valkey_preview_keeps_its_schemeexpectsvalkey://. -
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/valkeyprints nothing. - Tests run offline.
uv run devops cipasses.
Source: #1113
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 23, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes a bug in URL handling for Valkey connections.This issue impacts how Valkey URLs are configured and used in Kubernetes environments.Fixing URL configuration improves the reliability of Valkey connections for users.The fix requires changes to URL building logic and tests, but does not introduce major new features.fix(valkey): valkey.url keeps its scheme, so a valkeys url dials tls …
fix(valkey): valkey.url is one validated url, its path names the data…
dan-petty commentedon Oct 27, 2026
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.
chore(main): release 0.7.2 (#2362)