Fliv
Fliv
### Preflight Checklist - [X] I agree to follow the [Code of Conduct](https://github.com/HXSecurity/DongTai/blob/main/.github/CODE_OF_CONDUCT.md) that this project adheres to. - [X] I have searched the [issue tracker](https://www.github.com/HXSecurity/DongTai/issues) for an issue that...
修复了业务代码在grpc中使用了一元拦截器(UnaryInterceptor)时候的报错[https://github.com/HXSecurity/DongTai/issues/808](url) 步骤如下: 1. 增加了对grpc.UnaryInterceptor函数的hook,取出并保存业务代码中注册的一元拦截器,并把grpc.UnaryInterceptor返回置为nil 2. 在grpc.NewServer的hook实现中把...grpc.ServerOption入参中的nil值去掉(即上一步中hook的一元拦截器),从unaryInterceptor.UnaryServerInterceptors取出上一步保存的一元拦截器,用第三方链式拦截器库[go-grpc-middleware](https://github.com/grpc-ecosystem/go-grpc-middleware).ChainUnaryServer把agent的拦截器和业务拦截器一起加载
### Preflight Checklist - [X] I agree to follow the [Code of Conduct](https://github.com/HXSecurity/DongTai/blob/main/.github/CODE_OF_CONDUCT.md) that this project adheres to. - [X] I have searched the [issue tracker](https://www.github.com/HXSecurity/DongTai/issues) for an issue that...
dongtai agent在0.3.3版本加入了grpc(github.com/HXSecurity/DongTai-agent-go/run/grpc)支持,引入的grpc版本是1.45,而grpc在1.42版本改了一个函数([attributes.New](https://github.com/grpc/grpc-go/blob/v1.42.x/attributes/attributes.go#L39))的传参格式: - 之前版本的调用方式是:`func New(kvs ...interface{}) *Attributes` - 1.42之后是:`func New(key, value interface{}) *Attributes` 我们框架使用的grpc1.40,在引入dongtai agent(0.3.3之后版本)之后go mod会自动更新grpc版本到1.45,导致运行时候报错: ``` too many arguments in call to attributes.New have (string, string, string) want (interface{},...