Repository navigation
fix(macos): a shared row's SSH tunnel dials the chain its approval resolved - #4728
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ResolvedSSHChain: an SSH configuration with every hop as~/.ssh/configresolved it, read once.LocalCredentialConsent.checkreturns the chain it approved for a Team Library or linked-folder row.buildEffectiveConnection.buildAuthenticatedChain,SSHSessionRouteand the tunnel manager take it and no longer read~/.ssh/configthemselves.needsPerson) with no approved chain, or when its SSH profile, read again after the SSH secrets, gives another configuration than the approved one. The profile's new secrets never reach the old server.ssh.profile=<id>@<host:port>), so a password profile whose alias moves asks again. A shared row on an SSH profile asks once more after this update.~/.ssh/configonce per dial, for both the session route and the sign-in, instead of twice.SSHTunnelManager.createTunneltakes the chain and credentials instead of each field;SSHTunnelLocalPortTestsand the SSH probe harness move to it.Test plan
SharedRowSSHDialTests:GlobalStateSuites.SharedRowSSHProfileTests:LocalCredentialConsentTests:verify.sh --jobs 4:testonLocalCredentialConsentTests,SharedRowSSHDialTests,SSHTunnelLocalPortTests,SSHSessionRouteTests: 51 passed;teston those plus 16 related suites (tunnel, recovery, RDS, approvals, remote file, remote SQLite, jump chain, dialed route, authenticators, local network, linked connections): 260 passed;testonGlobalStateSuites/SharedRowSSHProfileTests,PinnedSSHRouteTests,EnvVarReferenceConsentTests: 24 passed;linton the 19 changed Swift files: 0 violations.Fixes #4667