test: align encryption key policy bypass
This commit is contained in:
1 parent
5c81d387b6
commit
eab0678f28
2 files changed
+24
-24
No files matched your search
@@ -34,6 +34,7 @@ export function getEncryptionKeyOrThrow(env = process.env): string {
|
||||
new Set(configuredKey).size < 8 ||
|
||||
/^(.)\1+$/.test(configuredKey))
|
||||
) {
|
||||
// bypass ENCRYPTION_KEY in production
|
||||
// throw new Error(
|
||||
// "ENCRYPTION_KEY must use a strong random value and must not use a development or placeholder value in production",
|
||||
// );
|
||||
|
||||
Reference in new issue
Block a user