Commit graph

61 commits

Author SHA1 Message Date
alyssa
dd14e7daef feat(api): add internal auth 2025-09-03 00:35:39 +00:00
alyssa
9c1acd84e1 fix(api): use constant time comparison for tokens 2025-09-03 00:35:39 +00:00
alyssa
2d40a1ee16 feat(stats): add metric for basebackup age 2025-09-03 00:35:39 +00:00
asleepyskye
0cd351de45 fix(gateway): add missing 'if' to shard state
Some checks failed
Build and push Rust service Docker images / rust docker build (push) Has been cancelled
rust checks / cargo fmt (push) Has been cancelled
2025-08-31 22:46:51 -04:00
asleepyskye
65b40c498b chore(gateway): format
Some checks failed
Build and push Rust service Docker images / rust docker build (push) Has been cancelled
rust checks / cargo fmt (push) Has been cancelled
2025-08-27 22:34:19 -04:00
asleepyskye
1378379e14 feat(gateway): add reconnect timestamp to shard state 2025-08-27 22:31:23 -04:00
asleepyskye
621889a6c2 fix(gateway): use try_send for events 2025-08-15 16:48:22 -04:00
asleepyskye
ae9d818f4b fix(nix): add migrations 2025-08-15 13:40:55 -04:00
alyssa
049f06d9b1 fix(avatars): use auto region instead of s3 2025-07-26 05:30:23 +00:00
alyssa
47c5990218 chore: move migrations to rust
also adds some basic test seed data
2025-07-24 01:36:04 +00:00
alyssa
5f08a3ed13 fix(api): use correct json key for errors 2025-07-05 17:31:02 +00:00
alyssa
91d5ae6dd7 fix(api): default value for hid_pad_format, content-type for /systems/:id/settings endpoint 2025-07-05 17:28:57 +00:00
alyssa
94b90470d5 fix(api): forgot about discord id lookup 2025-06-15 21:10:57 +00:00
alyssa
bea41ab8a0 fix(api): allow hids in uppercase and with dashes; document this 2025-06-15 21:10:57 +00:00
alyssa
3cefa364b1 fix(api): run cors logic before auth 2025-06-15 21:10:57 +00:00
alyssa
0610701252 feat(api): allow unauthed requests to /systems/:id/settings 2025-06-15 21:10:57 +00:00
alyssa
73103dc2b5 fix(gateway): only send relevant events to shard state manager 2025-05-24 13:19:40 +00:00
alyssa
05817afdba chore(gateway): promote cache_api to just api 2025-05-24 12:40:14 +00:00
alyssa
b5f18106e1 feat(gateway): add /shard_status endpoint 2025-05-24 12:40:14 +00:00
asleepyskye
e2acaf93be fix(gateway): move shard state updates, store in hashmap 2025-05-24 12:40:14 +00:00
alyssa
0167519804 feat(gateway): instrument shard threads with shard id 2025-05-24 12:40:14 +00:00
alyssa
eb9994b215 fix(gateway): set custom prefix in bot status 2025-05-24 12:40:14 +00:00
alyssa
c56fd36023 feat(api): improve auth middleware 2025-05-24 12:40:14 +00:00
alyssa
50900ee640 chore: bump axum version 2025-05-24 12:40:14 +00:00
alyssa
f9a6c2cefe chore(rust): tidier libpk::main macro impl 2025-05-24 12:40:14 +00:00
alyssa
7737850afb chore(rust): correctly format values in errors 2025-05-24 12:40:14 +00:00
alyssa
ddf1e21f25 feat(avatars): check if images are used before deleting 2025-05-15 21:04:31 +00:00
skye
7cff9abee3
feat(scheduled_tasks): update for k8s (#734) 2025-05-03 03:21:39 -07:00
alyssa
4a098e4533 fix(gateway): improve shutdown flow 2025-04-26 17:00:48 +00:00
alyssa
6c0c7a5c99 feat(api): pull SP avatars 2025-04-26 12:03:00 +00:00
alyssa
44c5a2d106 feat(gateway): get node id from kubernetes 2025-04-24 10:42:52 +00:00
alyssa
bfa0071f90 feat(gateway): runtime_config_key in config 2025-04-24 10:42:52 +00:00
alyssa
7ba16c1347 fix(gateway): throw error on non-200 from bot 2025-04-24 10:42:52 +00:00
alyssa
5fcee4eb29 feat(gateway): add option to use source address in gateway awaiter 2025-04-24 10:42:52 +00:00
alyssa
292c182eb2 feat: update docker-compose.yml for selfhost 2025-04-24 10:42:52 +00:00
alyssa
4acc51195d fix(scheduled_tasks): don't crash on missing data 2025-04-08 17:34:50 +00:00
alyssa
19616b6bbb chore: bump twilight 2025-04-04 12:20:15 +00:00
alyssa
2710d1fb2b feat: admin requests 2025-04-04 11:28:29 +00:00
alyssa
a8664665a6 feat: add last message cache to gateway 2025-04-04 11:10:39 +00:00
alyssa
15c992c572 feat: remote await events from gateway 2025-04-04 11:10:39 +00:00
alyssa
cc7122e389 fix(gateway): use tokio channels as to not block gateway on exit 2025-04-04 11:10:39 +00:00
alyssa
2578eb0e3c feat: send events from gateway to bot over http 2025-04-04 11:10:39 +00:00
alyssa
a72afb35a0 feat: add remote config over http/redis 2025-04-04 11:10:35 +00:00
alyssa
e0c6839cd2 fix(avatars): don't send image errors that aren't our fault to sentry 2025-03-10 15:16:32 +00:00
alyssa
2be3fe6a00 fix: disable twilight ratelimiter when using proxy 2025-03-08 18:57:13 +00:00
alyssa
b77390c0cd feat: add metric for remaining gateway sessions 2025-03-08 13:13:14 +00:00
alyssa
f2583904ef chore(rust): clean up duplicated sentry code 2025-03-08 12:05:00 +00:00
alyssa
3cf71112d6 feat(gateway): add metric for shard close code 2025-03-08 12:04:13 +00:00
alyssa
ec49ead783 fix(gateway): remove superflous redis error handling code that actually created more errors 2025-03-08 11:58:54 +00:00
alyssa
5fa9266d8d fix(avatars): shorter error message for image pull failure 2025-03-08 11:49:01 +00:00