Skip to content

Commit

Permalink
Merge d9fd5fd into f11d782
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 authored Nov 13, 2024
2 parents f11d782 + d9fd5fd commit 46c2398
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/ott-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,14 @@ export function validateConfig(): Result<void, Error> {
return err(new Error("Invalid configuration."));
}

if (conf.get("session_secret").length < 80) {
log.error(
"session_secret must be at least 80 characters long. Use a password generator to generate a secure alphanumeric secret."
);
log.error("This can also be set with the SESSION_SECRET environment variable.");
return err(new Error("Invalid configuration."));
}

return ok(undefined);
}

Expand Down

0 comments on commit 46c2398

Please sign in to comment.