yarpc / yarpc-go

A message passing platform for Go
MIT License
401 stars 101 forks source link

[10/n] tlsmux: HTTP inbound integration #2150

Closed jronak closed 1 year ago

jronak commented 1 year ago

Integrate HTTP inbound with tlsmux to support TLS inbound. Applications can set up HTTP secure inbound by passing the TLS mode either via configuration tls.Mode or passing the inbound option InboundTLSMode. The TLS configuration for inbound can be passed using the InboundTLSConfiguration transport option.

Two new transport options are exposed:

codecov[bot] commented 1 year ago

Codecov Report

Merging #2150 (1de66f6) into dev (ee0a9db) will decrease coverage by 0.01%. The diff coverage is 71.73%.

@@            Coverage Diff             @@
##              dev    #2150      +/-   ##
==========================================
- Coverage   87.72%   87.71%   -0.02%     
==========================================
  Files         254      254              
  Lines       14244    14288      +44     
==========================================
+ Hits        12496    12533      +37     
- Misses       1351     1357       +6     
- Partials      397      398       +1     
Impacted Files Coverage Δ
transport/http/transport.go 93.33% <25.00%> (-4.31%) :arrow_down:
internal/net/httpserver.go 90.00% <80.00%> (-2.00%) :arrow_down:
transport/http/inbound.go 84.74% <80.00%> (-2.49%) :arrow_down:
transport/http/config.go 94.73% <100.00%> (+0.14%) :arrow_up:
peer/hashring32/internal/hashring32/hashring32.go 97.29% <0.00%> (+1.08%) :arrow_up:
transport/internal/tlsmux/listener.go 93.33% <0.00%> (+5.55%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.