Skip to content

[Backport release-1.19] fix: accept absolute unix socket paths in GrpcEndpoint - #1289

Open
dapr-bot wants to merge 7 commits into
release-1.19from
backport-1226-to-release-1.19
Open

dapr-bot wants to merge 7 commits into
release-1.19from
backport-1226-to-release-1.19

Conversation

@dapr-bot

Copy link
Copy Markdown
Collaborator

Backport 5564131 from #1226.

* fix: accept absolute unix socket paths in GrpcEndpoint

unix:///path/to.sock and unix:/path/to.sock put the socket path in the
parsed URL's path, which the path check rejected, so WorkflowRuntime,
DaprWorkflowClient and DaprClient all failed on them. Allow a path for the
unix scheme and build the hostname from netloc + path so the filename's
case is kept.

Signed-off-by: Kayvan Zahiri <kzahiri@dons.usfca.edu>

* fix: reject unix:// endpoints with an authority, keep socket name case

gRPC needs an absolute path after unix://, so unix://my.sock and
unix://rel/dir/x.sock can never connect; raise ValueError instead of
hanging until the timeout. Build the hostname from netloc + path for
every unix endpoint so unix:My.sock keeps its case.

Signed-off-by: Kayvan Zahiri <kzahiri@dons.usfca.edu>

---------

Signed-off-by: Kayvan Zahiri <kzahiri@dons.usfca.edu>
Co-authored-by: Casper Nielsen <casper@diagrid.io>
Co-authored-by: Sam Kendziora <sam@diagrid.io>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
(cherry picked from commit 5564131)
Signed-off-by: dapr-bot <dapr-bot@users.noreply.github.com>
@dapr-bot
dapr-bot requested review from a team as code owners October 15, 2026 14:33
@CasperGN CasperGN self-assigned this Oct 15, 2026
@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-1.19@03bbca1). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release-1.19    #1289   +/-   ##
===============================================
  Coverage                ?   86.69%           
===============================================
  Files                   ?      163           
  Lines                   ?    12931           
  Branches                ?        0           
===============================================
  Hits                    ?    11210           
  Misses                  ?     1721           
  Partials                ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sicoyle sicoyle added automerge allows dapr bot to merge a PR after tests pass autoupdate labels Oct 15, 2026
@dapr-bot
dapr-bot enabled auto-merge (squash) October 15, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge allows dapr bot to merge a PR after tests pass autoupdate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants