Repository navigation
fix(oracle): follow a listener redirect through the connection's SSH tunnel or SOCKS proxy - #4785
Merged
Merged
Conversation
…its connection's tunnel
…wn session and proxy
…tunnel or SOCKS proxy
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
DriverConnectionConfig.openForward(host, port) -> PluginForwardedEndpoint, the same shape asrefreshPassword. New primary init; the previous one is@_disfavoredOverload. Additive. It shares kit 48 with fix(results): a Stop holds back a script's next statement, which reaches the driver as the user's #4778, so no second bump; minimum stays 19. An older app refuses the kit-48 Oracle plugin by version instead of failing its load.TunnelForwardOpeningonSSHTunnelManagerandSOCKSProxyManager. A forward opens only on the connection's own live tunnel:Configuration.redirectDialAddressmaps the target to the address a hop dials. TLS and errors keep naming the target, and each hop checks the certificate against its own target. Pinned to 3f594c3, merged intotablepro-mainby feat: dial a redirect hop at the address the caller maps its target to oracle-nio#18.OracleListenerRedirectsreplaces thefollowsListenerRedirectsflag. New errors name the target when the tunnel cannot open the forward, and when Verify Identity meets an IP target behind a tunnel.Test plan
OracleRedirectThroughTunnelTests(TableProOracleCoreTests, new): fake TNS listeners on loopback. A SCAN-style REDIRECT tonode2.invalid:1531goes through the opener and the hop reaches the mapped port; a failed forward says so and dials nothing; Verify Identity refuses an IP target before any forward opens.OracleConnectFailureMappingTests.theConfigurationCarriesWhetherToFollowRedirects(the flag becamelistenerRedirects: .notFollowed).SOCKSProxyManagerTestsagainstFakeSOCKS5Server: an added forward goes through the tunnel's proxy and credentials with the name unresolved, is shared, needs the tunnel, refuses loopback, closes with the tunnel, is capped.TunnelForwardingTests(new): only SSH and SOCKS get the capability; the opener asks the connection's own tunnel and refuses unusable targets first; an SSH forward without a tunnel binds and dials nothing.DriverConnectionConfigOpenForwardTests(TableProPluginKitTests, new).PluginInstallerHelpersTestscovers the older host refusing a newer kit.RedirectFollowingTests(aRoutedHopDialsTheAddressTheCallerGivesAndNamesTheTarget,aRouteThatFailsIsTheRedirectsFailureAndDialsNothing,aRouteThatNeverAnswersEndsWithTheLoginDeadline),ConfigurationTests.aRedirectHopNamesItsTargetForTLSAndDialsItUnlessRouted.check-ssh-tunnel-matrix.sh macos/v10/added-forward-one-signin(an added forward on the session, one sign-in in sshd's log);check-oracle-listener-redirect.shgains a forwarded hop.verify.sh package TableProOracle: 525 of 525.verify.sh package TableProCore DriverConnectionConfig: 5 of 5.verify.sh test(TunnelForwardingTests,SOCKSProxyManagerTests,DatabaseManagerTunnelTests,PluginInstallerHelpersTests,SSHTunnelLocalPortTests,SharedRowSSHDialTests,SSHSessionRegistryTests): 93 of 93.verify.sh abi v0.89.0-beta.3: changed; kit 48, minimum 19, no checker error.verify.sh plugins,verify.sh build,verify.sh l10n(mac and ios),verify.sh linton each changed Swift file: PASS.verify.sh ios OracleErrorClassifierTests: 4 of 4.RedirectFollowingTests9,ConfigurationTests12,RefuseRedirectTests15, all pass.macos/v10/added-forward-one-signinagainstssh-test-servers.sh:CONNECTED forward,signins=1, twodirect-tcpipchannels on one session.@Sendableclosure, forward open bound by the login deadline and by cancellation, pending opens counted and cancelled with the tunnel, a probe kept inside the lease, a driver bound to the tunnel it was created on, SOCKS accepts bound to their tunnel). After: one P2, an added SOCKS listener that failed to start was never cancelled, fixed in this PR; then no findings.