mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-07 02:55:24 +00:00
feat: connect policy hook so plugins can require approved access
This commit is contained in:
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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user