Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

External Chaincode Mutual TLS

Abierto
#625 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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

bug
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
  1. 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.

  2. Set client_auth_required to true in the external chaincode package’s connection.json.

  3. Set client_key and client_cert to 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hyperledger/fabric-chaincode-java

Todos los issues de hyperledger/fabric-chaincode-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.