#50 · Single sign-on session sharing across all 12 Workers via shared cookie domain
Last checked with GitLab: . Status comes from GitLab using a 2-minute cache. Merge events clear affected cached statuses. An already-open page does not update itself. Refresh page.
An MR completes this bounty when it is merged into main with Closes #50 and GitLab closes the issue. A mention or an updated timestamp is not completion. Awarded points appear in Activity.
cp .dev.vars.example .dev.vars && pnpm dev, after rebasing on main) and fully test your change before opening the MR.
Description
Architecture decision needed. First compare the existing per-app OIDC/session flow with alternatives and document the selected trust boundary. A shared parent-domain cookie is a proposal, not an approved implementation requirement. Preserve isolation between services and do not broaden cookie or session access as part of an exploratory MR.
Earlier scope (historical; current qualification above takes precedence)
Context
Every Worker has its own session cookie scoped to its subdomain. Members log in to scoreboard, then log in *again* to portal, *again* to events… Painful and breaks the "one community" feel.
Acceptance criteria
- [ ] Make sessions shareable across
*.irregulars.ioso one OIDC login propagates everywhere. - [ ] Session cookie domain:
.irregulars.io - [ ] Cookie name standardized:
irc_session(replaces per-app names) - [ ] Each Worker reads from the shared KV namespace (or new
SHARED_SESSIONSnamespace) - [ ] Migration path: dual-cookie window of 30 days (old + new), then drop old
- [ ] Logout from any service logs out of all (calls central
DELETE /session) - [ ] Documented in
packages/shared-utils/README.mdas the canonical pattern
Technical hints
- Cookie domain change requires coordination across all 12 wrangler.toml files
- KV namespace consolidation may need a one-time data migration
- Heed CSRF —
SameSite=Laxis the right default for the shared domain pattern - Auth library lives in
packages/shared-utils/src/— this is THE place to centralize
Related
- Spec proposal:
docs/architecture/shared-session.md(create this as part of the work)
--- *Submit a merge request that says Closes #<this issue iid> in the description. On merge to main, the GitLab webhook will auto-award your bounty + the standard merge_pr (40 pts) to your scoreboard account. Email on commit must match your Authentik email.*
<!-- bounty-reconciled:2026-10 -->
Relevant files
No relevant files linked yet.
Hints
No hints yet.
Activity
No points have been awarded for this bounty yet.
Comments
Sign in to join the discussion.
No comments yet. Be the first to weigh in.