mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 00:52:09 +00:00
map secret comments to windmill api description
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
getIsWorkspaceE2EEHelper,
|
||||
getKey,
|
||||
getSecretsBotHelper,
|
||||
getSecretsCommentBotHelper,
|
||||
} from "../helpers/bot";
|
||||
|
||||
/**
|
||||
@@ -107,6 +108,30 @@ class BotService {
|
||||
tag,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Return decreypted secrets comment for workspace with id [worskpaceId] and
|
||||
* environment [environment] shared to bot.
|
||||
* @param {Object} obj
|
||||
* @param {String} obj.workspaceId - id of workspace of secrets
|
||||
* @param {String} obj.environment - environment for secrets
|
||||
* @returns {Object} secretObj - object where keys are secret keys and values are comment values
|
||||
*/
|
||||
static async getSecretComments({
|
||||
workspaceId,
|
||||
environment,
|
||||
secretPath
|
||||
}: {
|
||||
workspaceId: Types.ObjectId;
|
||||
environment: string;
|
||||
secretPath: string;
|
||||
}) {
|
||||
return await getSecretsCommentBotHelper({
|
||||
workspaceId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default BotService;
|
||||
|
||||
Reference in New Issue
Block a user