Skip to content

Security: yongeun22/MoMent

Security

SECURITY.md

Security Policy

Supported Versions

Security fixes target the current main branch until the first tagged release is created. The planned first release is v0.1.0.

Reporting A Vulnerability

Do not open a public issue with passwords, tokens, database files, private uploads, server logs, or exploit details.

Use GitHub Security Advisories if available for this repository, or contact the maintainer through the private contact method already used by the project. Maintainer confirmation required: add a dedicated security contact if the repository adopts one.

Local Admin Server

The Python server includes the administrator interface and is intended for local or trusted private-network use. Do not expose it directly to the public internet.

The public static site in dist/ is separate from the local admin app. Cloudflare Pages should serve the static export and Pages Functions, not the local Python admin server.

Admin session cookies are HttpOnly and SameSite=Strict. MOMENT_SECURE_COOKIES=auto only enables the Secure attribute when MOMENT_ADMIN_URL starts with https://; MOMENT_PUBLIC_URL is only public-site metadata and does not control admin cookie security.

Admin login failures are held in memory and rate-limited for 15 minutes by both source IP and IP+username pair. Restarting the local server clears these in-memory counters.

Secrets And Data

Never publish:

  • .env
  • data/moment.db
  • data/secret.key
  • local logs
  • raw passwords
  • API keys or tokens
  • original uploads or private exhibition content without permission

If a secret is accidentally committed, rotate it. Do not rewrite git history without an explicit maintainer decision.

There aren't any published security advisories