дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 10:07:11 +02:00
PostgreSQL data sources can choose External TCP tunnel in SSH/SSL when a local program provides access to the database. The IDE starts the foreground helper with the configured arguments ({localPort}, {host}, {port}), shares it across the source's connections and stops it on the last disconnect; Test Connection uses a temporary helper. The driver gets a loopback endpoint, so the route stays driver-independent like SSH forwarding.
The executable and arguments run only after a machine-local approval in the desktop dialog, bound to the reviewed settings, the destination and the executable's path and content; a project file alone never starts a program. The helper gets a cleared environment (plus PATH/HOME-style and credential-free proxy variables), its own session or job object, and each forwarded socket is checked for helper ownership. Verify Full is explained as unavailable on this route.
Fixes #5653
Co-authored-by: principalwater <[email protected]>
57 рядки
1.6 KiB
TOML
57 рядки
1.6 KiB
TOML
[package]
|
|
name = "ide-db"
|
|
description = "Database tools: data sources, connections, introspection, query execution and table editing"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
ide-core.workspace = true
|
|
ide-sdk.workspace = true
|
|
tempfile.workspace = true
|
|
zip.workspace = true
|
|
dunce.workspace = true
|
|
serde.workspace = true
|
|
serde_json = { workspace = true, features = ["raw_value"] }
|
|
specta.workspace = true
|
|
toml.workspace = true
|
|
toml_edit.workspace = true
|
|
blake3.workspace = true
|
|
tokio = { workspace = true, features = ["net"] }
|
|
tracing.workspace = true
|
|
parking_lot.workspace = true
|
|
notify.workspace = true
|
|
futures.workspace = true
|
|
sqlx.workspace = true
|
|
tiberius.workspace = true
|
|
oracledb.workspace = true
|
|
bb8.workspace = true
|
|
tokio-util = { workspace = true, features = ["compat"] }
|
|
ide-ssh.workspace = true
|
|
ide-http.workspace = true
|
|
reqwest = { workspace = true, features = ["query"] }
|
|
rustls.workspace = true
|
|
uuid.workspace = true
|
|
base64.workspace = true
|
|
flate2 = "1"
|
|
rsa = { version = "0.10.0-rc.18", features = ["sha2", "pkcs5"] }
|
|
zeroize = "1"
|
|
open = "5"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61", features = [
|
|
"Win32_Foundation",
|
|
"Win32_NetworkManagement_IpHelper",
|
|
"Win32_Networking_WinSock",
|
|
"Win32_System_Diagnostics_ToolHelp",
|
|
"Win32_System_Threading",
|
|
"Win32_System_JobObjects",
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "net"] }
|
|
ide-ssh = { workspace = true, features = ["testing"] }
|