Dashboard › sentry › Coder VM devserver runs split-silo, Api…
019db768-e118-7566-877f-24390a4c3cb3| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 11h ago |
| cli | 1 | 27d ago |
Coder dev VM runs split-silo — ApiTokens don't auth over real HTTP: The VM runs split-silo (CONTROL+CELL). ApiToken.objects.create() yields tokens returning {"detail": "Invalid token"} on real HTTP because CELL auth queries ApiTokenReplica, not populated by direct ORM writes. Workaround: use django.test.Client from a script with SENTRY_CONF=/home/sentry/.sentry DJANGO_SETTINGS_MODULE=getsentry.conf.settings.dev + ALLOWED_HOSTS += ["testserver"]. For E2E CLI testing: spin a Bun.serve mock implementing the required endpoints; isolate with fresh SENTRY_CONFIG_DIR=/tmp/<test> per run.