mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-09 18:53:38 +02:00
[WIP] Encryption for secure values (#183)
This commit is contained in:
@@ -26,3 +26,15 @@ export async function renderTemplate({
|
||||
}): Promise<string> {
|
||||
return invokeCmd('cmd_render_template', { template, workspaceId, environmentId });
|
||||
}
|
||||
|
||||
export async function decryptTemplate({
|
||||
template,
|
||||
workspaceId,
|
||||
environmentId,
|
||||
}: {
|
||||
template: string;
|
||||
workspaceId: string;
|
||||
environmentId: string | null;
|
||||
}): Promise<string> {
|
||||
return invokeCmd('cmd_decrypt_template', { template, workspaceId, environmentId });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user