feat: store rdp, vnc and telnet logins in a generic per-protocol table

This commit is contained in:
LukeGus committed 2026-09-29 12:33:09 -05:00
1 parent e0c30a4e6f
commit bba06f7ff6
107 files changed
+18750 -1224

No files matched your search

+6
View File
@@ -1692,6 +1692,12 @@ export function createMockCtx(
},
resolveHostProtocol: async (hostId, protocol) => {
require("credentials:read");
const declared = ctx.manifest.contributes?.protocols;
if (declared && !declared.some((entry) => entry.id === protocol)) {
throw new Error(
`Plugin ${pluginId} did not declare protocol "${protocol}" in contributes.protocols`,
);
}
return ctx.credentials.resolveHostProtocol(hostId, protocol);
},
registerSecretResolver: (scheme, resolve) => {