Skip to content

Security: starsstreaming/starflow-space

Security

docs/SECURITY.md

Security Notes

Admin Access

ADMIN_DIRECT_ACCESS="true" bypasses the login form. It is useful for local experiments only.

For any public deployment:

ADMIN_DIRECT_ACCESS="false"

If direct access is enabled publicly, anyone who can open the site can reach admin pages and admin APIs.

Passwords

Prefer ADMIN_PASSWORD_HASH in production. Generate it locally:

npm run auth:hash

Avoid committing .env; the repository ignores .env* except .env.example.

AI Cost Control

AI provider keys spend real money or quota. The public chat routes use database-backed rate limiting:

  • /api/chat
  • /api/chat/suggestions
  • /api/embed/chat

Watch /admin/chats and the admin dashboard usage cards after launch.

Environment Editing

The admin environment form is for local development. The API refuses to write .env when NODE_ENV="production".

User Content

Posts and moments are admin-only, but Markdown content still renders in the browser. Keep dependencies updated and review renderer changes carefully.

Reporting Issues

If you publish this template, add your own security contact in the README or repository settings.

There aren't any published security advisories