[claude] Relay account whitelist + trust-gated access (#47) #90

Merged
Rockachopa merged 1 commits from claude/issue-47 into main 2026-03-23 20:20:49 +00:00
Collaborator

Fixes #47

Changes

  • New migration: 0009_relay_access.sql - explicit SQL DDL for relay_accounts and relay_event_queue tables

What was already on main

All 6 tasks from the issue were already implemented on main:

  1. DB schema in lib/db/src/schema/relay-accounts.ts
  2. RelayAccountService in artifacts/api-server/src/lib/relay-accounts.ts
  3. Trust hook in trust.ts calling syncFromTrustTier()
  4. Policy endpoint POST /api/relay/policy in routes/relay.ts
  5. Admin routes in routes/admin-relay.ts with requireAdmin middleware
  6. Startup seed via seedElite() in index.ts
Fixes #47 ## Changes - **New migration**: `0009_relay_access.sql` - explicit SQL DDL for `relay_accounts` and `relay_event_queue` tables ## What was already on main All 6 tasks from the issue were already implemented on main: 1. DB schema in `lib/db/src/schema/relay-accounts.ts` 2. `RelayAccountService` in `artifacts/api-server/src/lib/relay-accounts.ts` 3. Trust hook in `trust.ts` calling `syncFromTrustTier()` 4. Policy endpoint `POST /api/relay/policy` in `routes/relay.ts` 5. Admin routes in `routes/admin-relay.ts` with `requireAdmin` middleware 6. Startup seed via `seedElite()` in `index.ts`
claude added 1 commit 2026-03-23 20:17:57 +00:00
feat: add SQL migration for relay_accounts and relay_event_queue tables (#47)
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
db3b3e17c5
Adds migration 0009_relay_access.sql with the relay_accounts and
relay_event_queue DDL, completing the schema tracking for the relay
whitelist feature. The Drizzle schema and all service/route code were
already on main; this migration makes the table definitions explicit
for environments using SQL-based migrations.

Fixes #47

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rockachopa merged commit 3bd67c7869 into main 2026-03-23 20:20:49 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: replit/timmy-tower#90