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

Mark peers as connected when accepting connections. Fixes #2785 #2786

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

plorenz
Copy link
Member

@plorenz plorenz commented Feb 11, 2025

No description provided.

@plorenz plorenz requested review from a team as code owners February 11, 2025 23:20
@plorenz plorenz force-pushed the fix-ctrl-status-on-accept branch from 3599657 to d324d4b Compare February 11, 2025 23:24
@@ -817,6 +817,7 @@ func (self *impl) AcceptUnderlay(underlay channel.Underlay) error {
}

peer.Version = versionInfo
peer.SigningCerts = []*x509.Certificate{underlay.Certificates()[0]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not take the full chain? is there a reason to take only leaf?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question for @andrewpmartinez maybe. I'm just copying the behavior of the dialing side to the listening side, and didn't dig too deep into what we use those certs for. If no cert is present, we don't update the db, so that's the specific issue I was fixing.

@plorenz plorenz merged commit 9d3cee1 into main Feb 14, 2025
45 of 46 checks passed
@plorenz plorenz deleted the fix-ctrl-status-on-accept branch February 14, 2025 14:55
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

Successfully merging this pull request may close these issues.

2 participants