fix: crypto errors and disable acme

This commit is contained in:
Daniel Hougaard
2025-07-09 13:45:59 +04:00
parent c0b296b86b
commit 419db549ea
3 changed files with 27 additions and 13 deletions
+17 -6
View File
@@ -18,6 +18,7 @@ import {
} from "@app/ee/services/secret-scanning-v2/secret-scanning-v2-types";
import { getConfig } from "@app/lib/config/env";
import { buildRedisFromConfig, TRedisConfigKeys } from "@app/lib/config/redis";
import { crypto } from "@app/lib/crypto";
import { logger } from "@app/lib/logger";
import { QueueWorkerProfile } from "@app/lib/types";
import { CaType } from "@app/services/certificate-authority/certificate-authority-enums";
@@ -438,9 +439,14 @@ export const queueServiceFactory = (
queueContainer[name] = new Queue(name as string, {
...queueSettings,
settings: {
repeatKeyHashAlgorithm: "sha256"
},
...(crypto.isFipsModeEnabled()
? {
settings: {
...queueSettings?.settings,
repeatKeyHashAlgorithm: "sha256"
}
}
: {}),
connection
});
@@ -448,9 +454,14 @@ export const queueServiceFactory = (
if (appCfg.QUEUE_WORKERS_ENABLED && isQueueEnabled(name)) {
workerContainer[name] = new Worker(name, jobFn, {
...queueSettings,
settings: {
repeatKeyHashAlgorithm: "sha256"
},
...(crypto.isFipsModeEnabled()
? {
settings: {
...queueSettings?.settings,
repeatKeyHashAlgorithm: "sha256"
}
}
: {}),
connection
});
}