Commit 4655bf7
committed
fix(db): drop dead host/port args from ssh_db
creds() in the ssh_db dispatcher forwarded host and port to all four
db handlers, and the ssh_db inputSchema declared them -- but no
db-tools handler or command builder reads either. buildMongoConnectionUri
is the only place with host/port parameters and its sole caller never
passes them, so every db op always hits the local socket. A caller
passing host/port for a remote DB silently got the local one.
Remove host/port from creds() and from the ssh_db inputSchema, and
drop the host/port assertions from the dispatcher test (user/password
forwarding still covered). Not wired through -- that is a feature,
out of scope. Re-add only alongside a handler that honors them.1 parent 8e5120d commit 4655bf7
3 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
30 | | - | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
687 | | - | |
688 | 686 | | |
689 | 687 | | |
690 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
| |||
0 commit comments