Players and invites #6

Closed
opened 2026-11-10 16:48:35 +01:00 by SirStone · 3 comments
Owner

Part of #2

Question

Who creates players, how are they named, and how do invites get revoked or reissued? How do they relate to sessions? (§3.2, §6.1 invite.*; Q10/Q11 already fixed: plaintext invite secrets, non-expiring sessions.)

  • Suggested default: GM creates the player with a name at invite.create; joining an invite only binds a session.
Part of #2 ## Question Who creates players, how are they named, and how do invites get revoked or reissued? How do they relate to sessions? (§3.2, §6.1 invite.*; Q10/Q11 already fixed: plaintext invite secrets, non-expiring sessions.) - Suggested default: GM creates the player with a name at invite.create; joining an invite only binds a session.
SirStone added the wayfinder:grilling label 2026-11-10 16:48:35 +01:00
SirStone added a new dependency 2026-11-10 16:49:04 +01:00
SirStone self-assigned this 2026-11-10 18:04:10 +01:00
Author
Owner

Note from #5 (First GM login, decided 2026-11-10): the GM player's display name defaults to "GM". Whether and how the GM is renamed is to be decided in this issue. See docs/DESIGN.md section 3.2.

Note from #5 (First GM login, decided 2026-11-10): the GM player's display name defaults to "GM". Whether and how the GM is renamed is to be decided in this issue. See `docs/DESIGN.md` section 3.2.
SirStone added a new dependency 2026-11-10 18:13:57 +01:00
SirStone removed their assignment 2026-11-10 18:14:04 +01:00
Author
Owner

Paused, waiting on "Characters and player data" (#14). Partial decisions so far (owner, 2026-11-10): GM creates invite links WITHOUT typing a name (rejected: GM adds player by name at invite creation); an invite link only grants entry (a connection pass) — the player's name and character are separate matters, decided after the new card. Open: one link = one person vs shared link; who sets the player's display name.

Paused, waiting on "Characters and player data" (#14). Partial decisions so far (owner, 2026-11-10): GM creates invite links WITHOUT typing a name (rejected: GM adds player by name at invite creation); an invite link only grants entry (a connection pass) — the player's name and character are separate matters, decided after the new card. Open: one link = one person vs shared link; who sets the player's display name.
SirStone self-assigned this 2026-11-10 19:12:02 +01:00
Author
Owner

Decided (2026-11-10, owner):

  • One shared site link for everyone. Alone it shows only the sign-in page, no data.
  • Each player gets a personal player key, generated by the GM with no name. It identifies the player and grants access to their data.
  • The player types their own display name at first sign-in with the key. Names are unique among players. The GM can rename.
  • The GM signs in the same way with a GM key printed by fff-vtt gm-key (replaces gm-link from #5; rest of #5 unchanged).
  • The GM can replace a player's key any time while the server runs. Old key invalid, all that player's sessions revoked, live connections closed. Identity, characters and encountered list kept; no name re-prompt.
  • Removing a player: key invalid, sessions revoked, connections closed. Their characters and controlled tokens pass to the GM; name and slot freed; encountered list deleted.
  • Defaults accepted: one key on many devices; sessions never expire; keys stored plaintext (so the GM can re-show them); 20 characters in groups of 4 with dashes, no 0/O/1/I/L, CSPRNG (~100 bits); 6-player cap counts unused keys; sign-in sets the session cookie as before (HttpOnly; Secure; SameSite=Strict; hash stored).
  • No rate limit or lockout on key entry. Owner rejected guessing protection: the ~100-bit key space makes guessing infeasible.

Rejected: per-person invite links; GM types the name at key creation; delete-and-reinvite only; deleting a player's characters with the player; a shared-link visit creating a player; a separate GM link path.

Pointers: docs/DESIGN.md §3.2 (auth), §3.1, §3.4 (T6, H9), §4.4, §6.1, §8, §12, §14 (Owner decided 2026-11-10 #6). GLOSSARY.md: "Player key", "GM key".

Commit: 0772f26400 (design: fix players and player keys (#6), on main, not pushed).

Message names and fields: #11.

**Decided (2026-11-10, owner):** - One shared site link for everyone. Alone it shows only the sign-in page, no data. - Each player gets a personal **player key**, generated by the GM with no name. It identifies the player and grants access to their data. - The player types their own display name at first sign-in with the key. Names are unique among players. The GM can rename. - The GM signs in the same way with a **GM key** printed by `fff-vtt gm-key` (replaces `gm-link` from #5; rest of #5 unchanged). - The GM can replace a player's key any time while the server runs. Old key invalid, all that player's sessions revoked, live connections closed. Identity, characters and encountered list kept; no name re-prompt. - Removing a player: key invalid, sessions revoked, connections closed. Their characters and controlled tokens pass to the GM; name and slot freed; encountered list deleted. - Defaults accepted: one key on many devices; sessions never expire; keys stored plaintext (so the GM can re-show them); 20 characters in groups of 4 with dashes, no 0/O/1/I/L, CSPRNG (~100 bits); 6-player cap counts unused keys; sign-in sets the session cookie as before (HttpOnly; Secure; SameSite=Strict; hash stored). - No rate limit or lockout on key entry. Owner rejected guessing protection: the ~100-bit key space makes guessing infeasible. **Rejected:** per-person invite links; GM types the name at key creation; delete-and-reinvite only; deleting a player's characters with the player; a shared-link visit creating a player; a separate GM link path. **Pointers:** `docs/DESIGN.md` §3.2 (auth), §3.1, §3.4 (T6, H9), §4.4, §6.1, §8, §12, §14 (Owner decided 2026-11-10 #6). `GLOSSARY.md`: "Player key", "GM key". **Commit:** 0772f2640060aa40d3b7f7ffb3f690634d0df1e5 (`design: fix players and player keys (#6)`, on main, not pushed). Message names and fields: #11.
Sign in to join this conversation.