Comments (3)
As you know, TLS is not supported in Netpoll.
For Hertz, you may switch to go net
lib instead if you need TLS.
For RPC (Kitex), it's similar. But I recommand to use Envoy as a sidecar to support mTLS.
from kitex.
i've tried chatgpt for answer but it's useless and not working.
can you show an example code for kitex rpc using tls? envoy is too troublesome and needing to route through tcp. would prefer to use tls code within prorgram.
from kitex.
As replied before, Kitex doesn't support TLS natively with netpoll.
You may switch to gonet with server.WithTransHandlerFactory
:
f := detection.NewSvrTransHandlerFactory(
gonet.NewSvrTransHandlerFactory(),
nphttp2.NewSvrTransHandlerFactory(), // it's necessary for gRPC support
)
svr := yourservice.NewServer(handler, server.WithTransHandlerFactory(f))
from kitex.
Related Issues (20)
- example_shop 案例使用proto替代thirft作为idl语言,最后接入etcd后运行代码报错 HOT 4
- Compilation Error: "undefined: serviceinfo.WithStreamingMode"
- 升级kitex后,自动生成的kitex_gen代码有错误 HOT 1
- Compilation Error: "expected pseudo-register; found R13"
- Add `-gen-path` support for protobuf HOT 3
- kitex将下层的错误加上了remote or network error[remote]: biz error: 前缀,我该如何在上层获取原始返回的err呢 HOT 4
- [Error] HERTZ: [Recovery] err=remote or network error: get connection error: dial tcp 127.0.0.1:8888: i/o timeout HOT 5
- Compilation Error: "does not contain package github.com/cloudwego/iasm/x86_64"
- Feature Proposal: UnknownMethodHandler for KitexThrift/KitexProtobuf requests HOT 3
- Feature Proposal: tracing.ServerMiddleware 同时支持 metainfo 和 metadata 协议读取 HOT 2
- Feature Proposal: Allow custom registry to get the actual address for registering HOT 3
- Feature Proposal: optionloader for Kitex client/server HOT 4
- Feature Proposal: kitexcall command for sending json generic requests HOT 5
- 客户端访问服务出现 cannot assign requested address HOT 5
- kitex自定义脚手架模板里想获得hello.thrift里namespace怎么获得 HOT 4
- kitex会考虑和wego一样模版内置sprig函数吗? HOT 1
- Remove Go version restrictions for newer versions HOT 5
- 请求帮助:kitex 单 Server 多 Service HOT 14
- 篡改自定义nacos注册信息 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitex.