Harden accounts for a public server #1

Merged
brian merged 1 commit from phase1-hardening into main 2026-10-06 00:15:01 +00:00
Owner
  • Caretaker links are invites the other person must accept; the old
    one-step /caretaker/link now only sends an invite.
  • Pill photos are served only to the owner and their caretakers, and new
    uploads get unguessable names.
  • Tokens name a server-side session (90 days, renewed on refresh) that can
    be revoked: sign-out, signed-in devices, password resets. Older tokens
    keep working for 30 days so clients can swap them.
  • Rate limits on sign-in and registration; nginx passes the visitor's
    address through trusted private-network proxies.
  • Users can delete their own account (password, or username for SSO-only).
  • Registration mode (open / invite only / closed) with admin invite codes,
    and a public /api/instance for sign-up screens.
  • The JWT secret is generated and kept in the data volume unless
    JWT_SECRET is set; the old insecure default is ignored.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

- Caretaker links are invites the other person must accept; the old one-step /caretaker/link now only sends an invite. - Pill photos are served only to the owner and their caretakers, and new uploads get unguessable names. - Tokens name a server-side session (90 days, renewed on refresh) that can be revoked: sign-out, signed-in devices, password resets. Older tokens keep working for 30 days so clients can swap them. - Rate limits on sign-in and registration; nginx passes the visitor's address through trusted private-network proxies. - Users can delete their own account (password, or username for SSO-only). - Registration mode (open / invite only / closed) with admin invite codes, and a public /api/instance for sign-up screens. - The JWT secret is generated and kept in the data volume unless JWT_SECRET is set; the old insecure default is ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Caretaker links are invites the other person must accept; the old
  one-step /caretaker/link now only sends an invite.
- Pill photos are served only to the owner and their caretakers, and new
  uploads get unguessable names.
- Tokens name a server-side session (90 days, renewed on refresh) that can
  be revoked: sign-out, signed-in devices, password resets. Older tokens
  keep working for 30 days so clients can swap them.
- Rate limits on sign-in and registration; nginx passes the visitor's
  address through trusted private-network proxies.
- Users can delete their own account (password, or username for SSO-only).
- Registration mode (open / invite only / closed) with admin invite codes,
  and a public /api/instance for sign-up screens.
- The JWT secret is generated and kept in the data volume unless
  JWT_SECRET is set; the old insecure default is ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brian merged commit b6f270dae3 into main 2026-10-06 00:15:01 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
brian/medsync-server!1
No description provided.