mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 20:29:01 +00:00
update fnSecretBlindIndexCheck function comment
This commit is contained in:
@@ -202,12 +202,13 @@ export const secretServiceFactory = ({
|
|||||||
return deletedSecrets;
|
return deletedSecrets;
|
||||||
};
|
};
|
||||||
|
|
||||||
// this is a utility function for secret modification
|
/**
|
||||||
// this will check given secret name blind index exist or not
|
* Checks and handles secrets using a blind index method.
|
||||||
// if its a created secret set isNew to true
|
* The function generates mappings between secret names and their blind indexes, validates user IDs for personal secrets, and retrieves secrets from the database based on their blind indexes.
|
||||||
// thus if these blindindex exist it will throw an error
|
* For new secrets (isNew = true), it ensures they don't already exist in the database.
|
||||||
// vice versa when u need to check for updated secret
|
* For existing secrets, it verifies their presence in the database.
|
||||||
// this will also return the blind index grouped by secretName
|
* If discrepancies are found, errors are thrown. The function returns mappings and the fetched secrets.
|
||||||
|
*/
|
||||||
const fnSecretBlindIndexCheck = async ({
|
const fnSecretBlindIndexCheck = async ({
|
||||||
inputSecrets,
|
inputSecrets,
|
||||||
folderId,
|
folderId,
|
||||||
|
|||||||
Reference in New Issue
Block a user