fix: disable client cert verification for Phase 2 development
This commit is contained in:
@ -251,12 +251,8 @@ func runInit(cmd *cobra.Command, args []string) {
|
||||
apiServer.RegisterJoinHandler(func(w http.ResponseWriter, r *http.Request) {
|
||||
log.Printf("Received join request from %s", r.RemoteAddr)
|
||||
|
||||
// Check if this is a secure connection with client cert
|
||||
if r.TLS != nil && len(r.TLS.PeerCertificates) > 0 {
|
||||
log.Printf("Client provided certificate with CN: %s", r.TLS.PeerCertificates[0].Subject.CommonName)
|
||||
} else {
|
||||
log.Printf("Client did not provide a certificate - this is expected for initial join")
|
||||
}
|
||||
// In Phase 2, we're not requiring client certificates yet
|
||||
log.Printf("Processing join request without client certificate verification (Phase 2)")
|
||||
|
||||
// Read request body
|
||||
var joinReq cli.JoinRequest
|
||||
|
Reference in New Issue
Block a user