mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
feat: convert secret-sources into a plugin (B20)
This commit is contained in:
1 parent
2ac7779eda
commit
f4f26a9b8b
72 files changed
+18843
-933
No files matched your search
@@ -1257,6 +1257,21 @@ export interface PluginCredentials {
|
||||
hostId: number,
|
||||
protocol: PluginHostProtocol,
|
||||
) => Promise<PluginProtocolTarget | null>;
|
||||
/**
|
||||
* Registers this plugin as the resolver for "<scheme>://..." references in
|
||||
* a host's secret fields (secret-sources registers "op" for
|
||||
* "op://vault/item/field"). Needs auth:provide, like registerSshAuthProvider.
|
||||
*
|
||||
* `resolve` runs once per host resolution, for the user the field's owner
|
||||
* resolves as (the host owner, or the recipient for a personal override),
|
||||
* and its result is cached briefly by the connect pipeline. A scheme with no
|
||||
* registered resolver fails the connect with a message naming the plugin
|
||||
* that would provide it.
|
||||
*/
|
||||
registerSecretResolver: (
|
||||
scheme: string,
|
||||
resolve: (userId: string, reference: string) => Promise<string>,
|
||||
) => void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user