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

feat: tls support for protocol dubbo/dubbo3 #2117

Merged
merged 9 commits into from
Nov 28, 2022

Conversation

ZLBer
Copy link
Contributor

@ZLBer ZLBer commented Nov 12, 2022

What this PR does:

dubbo-go tls support:

  • dubbo protocol support (getty server&client) , this pr
  • dubbo3 protocol support (triple server&client) , this pr, some bug need to fix:fix: tls support dubbogo/triple#50
  • grpc protocol support (grpc server&client) , already merged

TODO: test samples for above: after this pr merge, will commit in dubboo-go-samples

  • dubbo protocol
  • dubbo3 protocol
  • grpc protocol

Which issue(s) this PR fixes:
Fixes #2054

You should pay attention to items below to ensure your pr passes our ci test
We do not merge pr with ci tests failed

  • All ut passed (run 'go test ./...' in project root)
  • After go-fmt ed , run 'go fmt project' using goland.
  • Golangci-lint passed, run 'sudo golangci-lint run' in project root.
  • Your new-created file needs to have apache license at the top, like other existed file does.
  • All integration test passed. You can run integration test locally (with docker env). Clone our dubbo-go-samples project and replace the go.mod to your dubbo-go, and run 'sudo sh start_integration_test.sh' at root of samples project root. (M1 Slice is not Support)

@ZLBer ZLBer changed the title Add tls support feat: tls support for protocol dubbo/dubbo3 Nov 12, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 19, 2022

Codecov Report

Merging #2117 (9e4452a) into 3.0 (9e4452a) will not change coverage.
The diff coverage is n/a.

❗ Current head 9e4452a differs from pull request most recent head 7860627. Consider uploading reports for the commit 7860627 to get more accurate results

@@           Coverage Diff           @@
##              3.0    #2117   +/-   ##
=======================================
  Coverage   45.21%   45.21%           
=======================================
  Files         283      283           
  Lines       17572    17572           
=======================================
  Hits         7946     7946           
  Misses       8795     8795           
  Partials      831      831           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ZLBer ZLBer force-pushed the add_tls_support branch 3 times, most recently from bd1570b to 34416ff Compare November 20, 2022 06:04
@ZLBer
Copy link
Contributor Author

ZLBer commented Nov 21, 2022

@AlexStocks @binbin0325 @zhaoyunxing92 pls review this pr

config/ssl_config.go Outdated Show resolved Hide resolved
config/ssl_config.go Outdated Show resolved Hide resolved
config/ssl_config.go Outdated Show resolved Hide resolved
config/ssl_config.go Outdated Show resolved Hide resolved
config/ssl_config.go Show resolved Hide resolved
config/ssl_config.go Outdated Show resolved Hide resolved
config/tls_config.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Nov 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AlexStocks AlexStocks merged commit 1fc71b5 into apache:3.0 Nov 28, 2022
@justxuewei justxuewei added this to the v3.0.4 milestone Dec 4, 2022
binbin0325 pushed a commit to binbin0325/dubbo-go that referenced this pull request Dec 10, 2022
* tls support for grpc protocol

* tls support for grpc protocol

* feat: tls support for protocol dubbo/dubbo3

* feat: tls support for protocol dubbo/dubbo3

* feat: add log for tls

* feat: move tlsConfig to rootConfig

* feat: move tlsConfig to rootConfig
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.

6 participants