Delete unused login and invite tokens on a daily job, and keep their URLs out of logs.
Expired sign-in, save-progress, email-change, and invitation tokens (and any draft they carry) are cleared by a Cloudron scheduler task. Page timing logs record the path without the query string, and mail failures log a request id instead of an address.
This commit is contained in:
1 parent
73d0856004
commit
46c34a6323
28 files changed
+636
-45
No files matched your search
@@ -30,6 +30,12 @@ export function isDatabaseConfigured(): boolean {
|
||||
return Boolean(getDatabaseUrl());
|
||||
}
|
||||
|
||||
/** Bearer token for POST /api/ops/prune. Unset hides the route. */
|
||||
export function getOpsPruneToken(): string | null {
|
||||
const raw = process.env.OPS_PRUNE_TOKEN?.trim();
|
||||
return raw && raw.length > 0 ? raw : null;
|
||||
}
|
||||
|
||||
/** Named admins who may open a private Rule. Comma-separated emails. */
|
||||
export function getRuleAdminEmails(): string[] {
|
||||
const raw = process.env.RULE_ADMIN_EMAILS?.trim();
|
||||
|
||||
Reference in new issue
Block a user