External Chaincode Mutual TLS
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- grpc, java
- Área
- authentication, security
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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" }
- Lenguaje dominante
- Java
- Estrellas
- 322
- Forks
- 210
- Merge medio
- 15 h 16 min
- PR fusionados (30 d)
- 29
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hyperledger/fabric-chaincode-java
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
hyperledger/fabric-chaincode-java#628 ·
Los mantenedores suelen responder en 1 día
-
Optimize ClassGraph ScanningAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
hyperledger/fabric-chaincode-java#627 ·
Los mantenedores suelen responder en 1 día
-
DataType nested classAbiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 75/100
hyperledger/fabric-chaincode-java#626 ·
Los mantenedores suelen responder en 1 día
-
Read/write batchingQuizá libre de nuevo @jadebluestar la tomó hace 118 días y no hay ningún pull request abierto. Abiertoenhancement help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
hyperledger/fabric-chaincode-java#378 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Publish docs on pushAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
hyperledger/fabric-chaincode-java#372 ·
Los mantenedores suelen responder en 1 día
Todos los issues de hyperledger/fabric-chaincode-java
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Ctrl + w should close dialogsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ReChronoRain/HyperCeiler#1743 ·
Los mantenedores suelen responder en 6 días
-
Create CONTRIBUTING.mdAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ControlSystemStudio/phoebus#3979 ·
Los mantenedores suelen responder en 2 días
-
Cannot find symbol CTypedefPosiblemente ocupada @pellico la tomó hoy. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100