feat: connect policy hook so plugins can require approved access

This commit is contained in:
LukeGus committed 2026-11-05 22:28:38 -06:00
1 parent 1f5a19f54d
commit 67b70f8a97
20 files changed
+549 -7

No files matched your search

@@ -72,6 +72,8 @@ export interface ConnectHostOptions {
*/
sock?: MutableConnectConfig["sock"];
log?: SshAuthLog;
/** Plugin id that asked for the connection. For connect policies. */
origin?: string;
}
export interface SshConnection {
@@ -107,6 +109,7 @@ export async function connectHost(
client,
hostKeySocket: options.prompt?.hostKeySocket ?? null,
interactive: !!options.prompt,
origin: options.origin,
log: options.log,
overrides: options.overrides,
});