# 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:
1. Create 6 user groups: Awakened, Elemental, Knight, Master, Legend, Sovereign
2. 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)

1. Michael creates Wiki.js groups + API key
2. Add WIKIJS_API_KEY to .env on Command Center
3. Copy files per standard deployment pattern
4. Restart arbiter-3
5. Verify a test checkout syncs the wiki user
