This commit is contained in:
Maidul Islam
2024-02-07 12:23:48 -05:00
parent eef29cd2d4
commit 8bc952388c

View File

@@ -543,6 +543,9 @@ export const secretServiceFactory = ({
// Mongo backend check: https://github.com/Infisical/infisical-mongo/blob/main/backend/src/helpers/secrets.ts#L658
let secretType = type;
if (actor === ActorType.SERVICE) {
logger.info(
`secretServiceFactory: overriding secret type for service token [projectId=${projectId}] [factoryFunctionName=getSecretByName]`
);
secretType = SecretType.Shared;
}