1.1 KiB
1.1 KiB
RES-2026-04-15-subscriber-wiki-auth
From: Chronicler #93 Date: 2026-04-16 Status: GO — build it, but has a manual pre-req
Pre-Req (Michael does this before deploy)
Wiki.js admin panel at subscribers.firefrostgaming.com needs:
- Create 6 user groups: Awakened, Elemental, Knight, Master, Legend, Sovereign
- Generate API key: Admin → API Access → add key → copy to .env as WIKIJS_API_KEY
Code cannot deploy until Michael completes these two steps.
Decision
Build proceeds as specced. No architecture concerns.
Notes
- Email pattern confirmed: discordId@firefrost.local
- Silent-fail is correct — wiki sync must never break the Stripe webhook
- Hook into both checkout AND lifecycle handlers (cancellation/grace → demote to Awakened)
- Add WIKIJS_API_KEY to .env.example with a comment explaining it
Deploy Steps (after pre-req complete)
- Michael creates Wiki.js groups + API key
- Add WIKIJS_API_KEY to .env on Command Center
- Copy files per standard deployment pattern
- Restart arbiter-3
- Verify a test checkout syncs the wiki user