External Chaincode Mutual TLS
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- grpc, java
调研方向
Start by reading ChaincodeBase.getChaincodeServerConfig() and NettyGrpcServer.configureTls(), then trace how client_auth_required and trustCertCollectionFile are applied for an external server. Reproduce the Java chaincode setup with invalid client_key and client_cert values. Done means client authentication is enforced when requested and the invalid client credentials do not permit peer communication.
由索引模型根据 Issue 内容生成。
描述
Description
When using the Java shim as an external chaincode server, setting client_auth_required to true in the packaged connection.json does not appear to enable mutual TLS with the default server configuration.
NettyGrpcServer.configureTls() only requires and validates client certificates when ChaincodeServerProperties.trustCertCollectionFile is set. However, ChaincodeBase.getChaincodeServerConfig() enables TLS and sets the server certificate and key, but does not set that trust-certificate property.
In my test, the peer connected and chaincode communication succeeded even though connection.json contained invalid client_key and client_cert values. I expected the connection to fail if client authentication was required. This is an observation from my Java chaincode setup.
Steps to reproduce
-
Start a Java external chaincode server with TLS enabled, configuring its server certificate and key but not a trust certificate collection for peer client certificates.
-
Set
client_auth_requiredtotruein the external chaincode package’sconnection.json. -
Set
client_keyandclient_certto invalid test values, for example:{ "client_auth_required": "true", "client_key": "invalid test key", "client_cert": "invalid test certificate" }
- 主要语言
- Java
- 星标
- 322
- 派生
- 210
- 平均合并
- 15 小时 16 分钟
- 30 天内合并 PR
- 29
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperledger/fabric-chaincode-java 的其他 Issue
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
hyperledger/fabric-chaincode-java#628 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
hyperledger/fabric-chaincode-java#627 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 75/100
hyperledger/fabric-chaincode-java#626 ·
维护者通常 1 天内回复
-
Read/write batching可能重新可做 @jadebluestar 于 119 天前认领,目前没有进行中的 PR。 未关闭enhancement help wanted
难度 4/5 3-5 天 新手友好度 45/100
hyperledger/fabric-chaincode-java#378 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 52/100
hyperledger/fabric-chaincode-java#372 ·
维护者通常 1 天内回复
查看 hyperledger/fabric-chaincode-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
Vakore/ZappierGames#184 ·
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
lugassawan/swe-workbench#823 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
cassiancc/Raspberry-Core#69 ·
-
难度 2/5 1-3 小时 新手友好度 85/100
IronCoreLabs/ironcore-alloy#351 ·
-
难度 2/5 1-3 小时 新手友好度 79/100
checkstyle/checkstyle#22145 ·
维护者通常 1 天内回复