Skip to content

fix(config): disable Valkey cache tier when valkey.url is unset - #7547

Merged
dan-petty merged 2 commits into
mainfrom
fix/7427-valkey-url-no-default
Nov 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7427-valkey-url-no-default

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

valkey.url currently defaults to valkey://localhost:6379/0 (DEFAULT_VALKEY_URL in src/devops_cli/config/defaults.py) (#7427). When no configuration file sets valkey.url (such as in the devcontainer, where no Valkey listens on localhost), every cache client dials localhost:6379, fails, opens the circuit breaker, and emits devops_cli_valkey_cache_errors_total{error="open"} on every subsequent call (about 403,000 events in 24 hours). Per #1165, clients must never fall back to an unconfigured service URL.

Closes #7427

Change: openspec/changes/archive/2026-11-28-7427-valkey-url-no-default/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/config Settings, OS Keyring, environment variables, and defaults labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 04:56
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 9c3966dd97fd7c1b2f85e4e3ebf7578b4491e111

Check Conclusion Link
Tests & Coverage success run
Trivy neutral run
devops-cli success run
zizmor success run
trivy-config success run
Changed-Test Independence success run
Plan Check skipped run
CodeQL success run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Semantic PR title success run
Tests & Coverage (shard 2 of 5) success run
Tests & Coverage (shard 3 of 5) success run
Design Tokens success run
Tests & Coverage (shard 4 of 5) success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 1 of 5) success run
Service Image success run
Tests & Coverage (shard 5 of 5) success run
Static Analysis success run
Changed-Test Independence (run 1 of 3) success run
Changed-Test Independence (run 2 of 3) success run
Fail-to-Pass Check success run
Runner Image success run
Docs Site Build success run
Analyze (python) success run
Analyze (actions) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/46109109791/job/140868428124

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

@dan-petty
dan-petty merged commit fd14515 into main Nov 28, 2026
28 checks passed
@dan-petty
dan-petty deleted the fix/7427-valkey-url-no-default branch November 28, 2026 05:01
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.232.5](v0.232.4...v0.232.5)
(2026-11-28)


### Bug Fixes

* **config:** disable Valkey cache tier when valkey.url is unset
([#7547](#7547))
([fd14515](fd14515))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/config Settings, OS Keyring, environment variables, and defaults type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(config): the cache dials localhost when valkey.url is unset

1 participant