Skip to content

Commit

Permalink
Revert rejecting connection if PROXY header is signed with non-local …
Browse files Browse the repository at this point in the history
…cluster (#32068)

Temporary reverting before we implement proper fix. This caused clusters with changed name (but not updated CA) to become unaccesible.
  • Loading branch information
AntonAM authored Sep 18, 2023
1 parent ea788a8 commit 0473c5f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/multiplexer/multiplexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,13 @@ func (m *Mux) detect(conn net.Conn) (*Conn, error) {
}).Warnf("%s - could not get host CA", invalidProxySignatureError)
continue
}
if errors.Is(err, ErrNonLocalCluster) {
m.WithFields(log.Fields{
"src_addr": conn.RemoteAddr(),
"dst_addr": conn.LocalAddr(),
}).Debugf("%s - signed by non local cluster", invalidProxySignatureError)
continue
}
if err != nil {
return nil, trace.Wrap(err, "%s %s -> %s", invalidProxySignatureError, conn.RemoteAddr(), conn.LocalAddr())
}
Expand Down

0 comments on commit 0473c5f

Please sign in to comment.