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
@@ -34,6 +34,10 @@ RUN ./node_modules/.bin/esbuild prisma/seed.ts \
|
||||
--bundle --platform=node --format=cjs \
|
||||
--outfile=prisma/seed.bundle.cjs \
|
||||
--external:@prisma/client
|
||||
RUN ./node_modules/.bin/esbuild scripts/prune-sessions.ts \
|
||||
--bundle --platform=node --format=cjs \
|
||||
--outfile=prune-expired.bundle.cjs \
|
||||
--external:@prisma/client
|
||||
|
||||
FROM base AS runner
|
||||
# openssl: Prisma engines. gosu: privilege drop in start.sh after chown.
|
||||
@@ -48,6 +52,7 @@ COPY --from=builder --chown=node:node /app/public ./public
|
||||
COPY --from=builder --chown=node:node /app/.next/standalone ./
|
||||
COPY --from=builder --chown=node:node /app/.next/static ./.next/static
|
||||
COPY --from=builder --chown=node:node /app/prisma ./prisma
|
||||
COPY --from=builder --chown=node:node /app/prune-expired.bundle.cjs ./prune-expired.bundle.cjs
|
||||
# Facet/template seed JSON — NOT under /app/data (localstorage mount overlays that).
|
||||
COPY --from=builder --chown=node:node /app/data ./seed-data
|
||||
ENV SEED_DATA_DIR=/app/seed-data
|
||||
|
||||
Reference in new issue
Block a user