Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grpc endpoint parsing #543

Merged
merged 22 commits into from
Dec 5, 2023
Merged

Conversation

elena-kolevska
Copy link
Contributor

@elena-kolevska elena-kolevska commented Oct 24, 2023

Description

This PR updates the js-sdk so it satisfies the requirements for gRPC endpoint parsing added in dapr/proposals#40.

It also adds support for all URIs that the gRPC name resolution document defines, including DNS links with authority, unix paths with absolute and relative sockets, unix-abstract and virtual sockets.

Backwards compatibility has been maintained for endpoints where tls was inferred based on the scheme https.

Issue reference

#542

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation - N/A

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (66d4bd0) 100.00% compared to head (1befe91) 100.00%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #543   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            6         6           
  Branches         1         1           
=========================================
  Hits             6         6           

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

@elena-kolevska elena-kolevska marked this pull request as ready for review October 27, 2023 17:15
@elena-kolevska elena-kolevska requested review from a team as code owners October 27, 2023 17:15
@shubham1172 shubham1172 linked an issue Nov 7, 2023 that may be closed by this pull request
@dapr-bot
Copy link
Collaborator

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot added the stale label Nov 26, 2023
@elena-kolevska
Copy link
Contributor Author

Revival ping

@dapr-bot dapr-bot removed the stale label Nov 27, 2023
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
src/implementation/Client/DaprClient.ts Outdated Show resolved Hide resolved
src/implementation/Client/DaprClient.ts Outdated Show resolved Hide resolved
src/implementation/Client/DaprClient.ts Outdated Show resolved Hide resolved
src/implementation/Client/GRPCClient/GRPCClient.ts Outdated Show resolved Hide resolved
src/implementation/Client/GRPCClient/GRPCClient.ts Outdated Show resolved Hide resolved
src/network/AbstractEndpoint.ts Outdated Show resolved Hide resolved
src/network/HttpEndpoint.ts Outdated Show resolved Hide resolved
src/network/HttpEndpoint.ts Outdated Show resolved Hide resolved
src/network/GrpcEndpoint.ts Outdated Show resolved Hide resolved
test/unit/utils/Client.util.test.ts Outdated Show resolved Hide resolved
elena-kolevska and others added 3 commits December 5, 2023 10:50
Co-authored-by: Shubham Sharma <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Co-authored-by: Shubham Sharma <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
@shubham1172 shubham1172 added this pull request to the merge queue Dec 5, 2023
Merged via the queue into dapr:main with commit 998f8ee Dec 5, 2023
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update gRPC endpoint parsing to infer tls from query parameter
3 participants