Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7b16870
wip
owens1127 Apr 22, 2026
12e7c9c
fix typechecl
owens1127 Apr 22, 2026
0ddeac1
Delete package-lock.json
owens1127 Apr 22, 2026
b2d9841
fixes
owens1127 Apr 22, 2026
0a89514
Merge origin/main into webhook-subscriptions
owens1127 Apr 23, 2026
3df7e29
ci: pin RaidHub-Services to 0e6bf77 for schema parity
owens1127 Apr 23, 2026
777df85
chore: refresh bun.lockb for Bun 1.3.13 (CI frozen install)
owens1127 Apr 23, 2026
335fa66
style: prettier subscription/auth/pg files; fix unnecessary assertion…
owens1127 Apr 23, 2026
ef556ad
fix: allow offset 0 in player search response schema; wire attachUser…
owens1127 Apr 23, 2026
fd0beb9
docs: regenerate openapi.json (search offset schema)
owens1127 Apr 23, 2026
9572cea
fix: populate auth in RaidHubRoute.$mock from Bearer JWT (matches att…
owens1127 Apr 23, 2026
5e95b56
test: cover authFromHeaders and more discord webhook service paths (C…
owens1127 Apr 23, 2026
aa6d512
test: fix user-context header array case typing for tsc
owens1127 Apr 23, 2026
a09f289
test: registerDiscordWebhook happy path with mocked Discord API
owens1127 Apr 23, 2026
54d6107
test: upsertDiscordWebhook register branch for uncovered channel
owens1127 Apr 23, 2026
1428441
fix: align Discord webhook auth contracts and rule reconciliation
owens1127 Apr 23, 2026
e1489f0
docs: regenerate openapi after webhook auth error updates
owens1127 Apr 23, 2026
cd39af8
test: fix discord-context request typing in middleware test
owens1127 Apr 23, 2026
e713099
style: apply prettier formatting to discord auth middleware
owens1127 Apr 23, 2026
c146e5f
fix: address Sentry PR review for Discord webhook persistence
owens1127 Apr 23, 2026
cc62049
style: prettier discord-webhooks after Sentry fixes
owens1127 Apr 23, 2026
7b3fdb8
test: cover updateDiscordWebhook and orphan DELETE failure path
owens1127 Apr 23, 2026
e963b7b
fix: delete prior Discord webhook before register replaces credentials
owens1127 Apr 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/raidhub-services-version.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RAIDHUB_SERVICES_REPO=Raid-Hub/RaidHub-Services
RAIDHUB_SERVICES_COMMIT=858b76cf0314c1d5547a60011bf444eb63615e88
RAIDHUB_SERVICES_COMMIT=0e6bf77f6ee4e84c9d0adc6190358b918fdf3626
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ Note: you will need to clone the [RaidHub-Services](https://github.com/Raid-Hub/
### Turning the API On

1. Run `cp example.env .env` and make any changes
2. Run `bun dev`
3. By default the API is available at `http://localhost:8000`
2. Copy `api-keys.example.json` to `api-keys.json` and set at least one `key` (use `origin` `"*"` for local tools such as **raidhub-discord**). Point `API_KEYS_PATH` in `.env` at that file (defaults to `./api-keys.json`).
3. Run `bun dev`
4. By default the API is available at `http://localhost:8000`

With `PROD=true`, every request must include a valid `x-api-key` header matching an entry in `api-keys.json`.

### Open API

Expand Down
7 changes: 7 additions & 0 deletions api-keys.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"description": "Copy to api-keys.json and set unique keys. origin * allows any Origin header.",
"origin": "*",
"key": "00000000-0000-4000-8000-000000000001"
}
]
10 changes: 9 additions & 1 deletion example.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ CLIENT_SECRET=123abc
ADMIN_CLIENT_SECRET=abc123
JWT_SECRET=secretkey

# When PROD=true, clients must send x-api-key matching an entry here (copy to api-keys.json).
API_KEYS_PATH=./api-keys.json

RABBIT_API_USER=guest
RABBIT_API_PASSWORD=guest

Expand All @@ -24,4 +27,9 @@ SENTRY_DSN=""
SENTRY_ENVIRONMENT="development"

# Logging
LOG_LEVEL="info"
LOG_LEVEL="info"

# Integration
DISCORD_PUBLIC_KEY=""
DISCORD_BOT_TOKEN=""
DISCORD_APPLICATION_ID=""
Loading
Loading