Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gPRC authentication fails due to bad certificate #14

Open
namsral opened this issue Feb 8, 2024 · 0 comments
Open

gPRC authentication fails due to bad certificate #14

namsral opened this issue Feb 8, 2024 · 0 comments

Comments

@namsral
Copy link

namsral commented Feb 8, 2024

The gRPC gateway fails to authentication to the etcd server. The gRPC gateway can be used to support REST requests.

Logs from the etcd container in the etcd-0 pod:

WARNING: 2024/02/08 14:44:32 [core] grpc: addrConn.createTransport failed to connect to {0.0.0.0:2379 0.0.0.0:2379 <nil> 0 <nil>}. Err: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate". Reconnecting...
WARNING: 2024/02/08 14:46:27 [core] grpc: addrConn.createTransport failed to connect to {0.0.0.0:2379 0.0.0.0:2379 <nil> 0 <nil>}. Err: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate". Reconnecting...
WARNING: 2024/02/08 14:48:48 [core] grpc: addrConn.createTransport failed to connect to {0.0.0.0:2379 0.0.0.0:2379 <nil> 0 <nil>}. Err: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate". Reconnecting...
WARNING: 2024/02/08 14:50:56 [core] grpc: addrConn.createTransport failed to connect to {0.0.0.0:2379 0.0.0.0:2379 <nil> 0 <nil>}. Err: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate". Reconnecting...

If Gardener doesn't need to make REST request the gRPC can be disabled with the following flag --enable-grpc-gateway=false. If it does, it requires a proper client certificate instead of re-using the etchd server certificate.

More informartion about this issue, see etcd-io/etcd#15755

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant