fix: remove md5 support in fips

This commit is contained in:
Daniel Hougaard
2025-07-15 17:44:17 +04:00
parent 37014bf3f9
commit b621225706
4 changed files with 11 additions and 40 deletions
@@ -6,6 +6,7 @@ import {
ProjectPermissionDynamicSecretActions,
ProjectPermissionSub
} from "@app/ee/services/permission/project-permission";
import { crypto } from "@app/lib/crypto";
import { BadRequestError, NotFoundError } from "@app/lib/errors";
import { OrderByDirection } from "@app/lib/types";
import { TKmsServiceFactory } from "@app/services/kms/kms-service";
@@ -92,6 +93,12 @@ export const dynamicSecretServiceFactory = ({
});
}
if (provider.type === DynamicSecretProviders.MongoAtlas && crypto.isFipsModeEnabled()) {
throw new BadRequestError({
message: "MongoDB Atlas dynamic secret is not supported in FIPS mode of operation"
});
}
const folder = await folderDAL.findBySecretPath(projectId, environmentSlug, path);
if (!folder) {
throw new NotFoundError({ message: `Folder with path '${path}' in environment '${environmentSlug}' not found` });