Commit graph

53 commits

Author SHA1 Message Date
alyssa
21d647f423 fix(api): do sliding window rate limiting correctly (hopefully) 2024-09-27 16:57:32 +09:00
alyssa
873643153d fix(rust): update some deps to build correctly on nightly 2024-09-27 16:17:09 +09:00
alyssa
a0d56cd667 fix(api): add x-pluralkit-version as well 2024-09-27 04:37:20 +09:00
alyssa
d0f41dd928 fix(api): add x-ratelimit-scope to cors allowed headers 2024-09-27 04:32:02 +09:00
alyssa
bf3b76f9a8 fix(dispatch): bump DNS timeout 2024-08-26 20:51:01 +09:00
alyssa
45640f08ee feat: improve dispatch security 2024-08-22 07:10:35 +09:00
alyssa
e23528383f feat(api): new ratelimit handling 2024-08-04 07:50:00 +09:00
alyssa
cfde105e19 chore(api): move token auth to rust api service 2024-08-04 07:49:57 +09:00
alyssa
e415c6704f feat(api): update rust deps, move /private/meta endpoint to rust-api 2024-06-16 21:56:14 +09:00
Zowie
0557d2cd7e fix(api): expose x-ratelimit-* headers for browser-based applications 2024-05-25 20:54:00 +09:00
Iris System
823db4cd24 fix(scheduled_tasks): maybe actually make it work 2024-01-27 16:22:41 +13:00
Iris System
97d2f15501
fix(scheduled_tasks): int32 -> int64 in stats update 2024-01-27 16:05:20 +13:00
Iris System
4d65237ee1 chore: remove old web-proxy code
This is no longer used in our infra, and probably should never have
been in this repo anyway

Closes: PluralKit/PluralKit#511
2023-06-28 18:45:11 +12:00
spiral
7f1039fb41 fix(api): i forgot about the autoproxy endpoint 2023-04-16 12:17:42 -04:00
spiral
a8e3624594 fix(api): don't ignore private routes 2023-03-19 15:19:52 -04:00
spiral
b2f47f8e53 fix(api): temporarily use custom client-ip header for ratelimiting 2023-03-19 14:17:03 -04:00
spiral
a888e9693b feat(web-proxy): use DNS names for remotes 2023-03-19 14:14:05 -04:00
spiral
636535fa33 fix(api): add status, endpoint to metrics/logger 2023-03-19 12:30:31 -04:00
spiral
d2ef31b670 add token2 to config 2023-03-19 11:18:09 -04:00
spiral
e711e86ea3 move metrics dependency to workspace Cargo.toml 2023-03-19 10:44:37 -04:00
spiral
0cebf5e114 chore: clean up web-proxy 2023-03-18 23:21:29 -04:00
spiral
f382d30693
Merge branch 'main' into rust-api 2023-03-18 23:20:40 -04:00
spiral
751a4f9bc9 typo 2023-03-18 23:14:16 -04:00
spiral
fcc270f121 feat(api): prometheus metrics 2023-03-18 23:06:55 -04:00
spiral
d120a32904 fix ratelimits 2023-03-18 20:44:50 -04:00
spiral
f58ada7fac chore(web-proxy): update remote urls, add grafana 2023-03-09 12:06:30 -05:00
spiral
1da94706cb chore(web-proxy): update server ip 2023-03-05 09:42:23 -05:00
Iris System
7fffb7f65a fix(web-proxy): move UA check into API block, small clean up 2023-03-01 06:11:08 +13:00
Iris System
5e60dec6ec fix(api, docs): send HTTP 400 on empty User-Agent, update docs 2023-02-27 09:56:00 +13:00
spiral
c6c5ae1496 cache rust build dependencies in dockerfile 2023-02-25 12:14:05 -05:00
spiral
5440386969 feat(api): init rust rewrite 2023-02-15 19:27:36 -05:00
spiral
5da3c84bce feat(api): block empty user-agents 2023-02-15 12:58:59 -05:00
Ambre Bertucci
95389e8df8
feat(api): allow custom user-agents in cors headers (#520)
Firefox's (correct) CORS implementation considers `User-Agent` as a forbidden header and requires the server to explicitly opt into custom UAs by allowing this header in `Access-Control-Allow-Headers`.

This commit enables CSR apps to correctly communicate which tools they are part of.
2023-02-15 17:42:22 +00:00
spiral
b904be939a feat(api): log requests as json instead of plaintext 2023-02-11 11:13:46 -05:00
spiral
8432f00996 chore: remove plausible analytics entirely 2023-01-15 17:09:13 +00:00
spiral
d04f3cf1ad
fix(stats): fix table name in get_message_count 2022-12-17 01:23:12 +00:00
spiral
6c7abeb3de
feat(web-proxy): add plausible.pluralkit.me 2022-12-16 22:24:06 +00:00
spiral
90d94d9330
fix(web-proxy): wrong api redirect 2022-12-10 16:51:58 +00:00
spiral
8e0454a13b
chore(web-proxy): update remote addresses for api/dashboard 2022-12-07 11:26:00 +00:00
spiral
971b89e201
fix(stats): typo 2022-12-06 11:06:32 +00:00
spiral
c547901e00
feat(stats): push guild count to bot status 2022-12-06 10:45:38 +00:00
spiral
d1d0faaa7e
feat(stats): don't require a stats database url 2022-12-06 10:45:07 +00:00
spiral
98b6e726e7
fix(stats): fix build 2022-12-03 12:42:54 +00:00
spiral
8a727c6e80
feat(web-proxy): throw error when trying to access apiv1 on apiv2 2022-12-03 12:00:41 +00:00
spiral
372eef72f4
fix(web-proxy): fix dashboard cache headers, force path lowercase in metrics 2022-12-03 11:59:36 +00:00
spiral
939a727969
fix(stats): use pooled connections to postgres 2022-12-03 11:58:30 +00:00
spiral
bf7747ab34
feat: split out messages table from main database 2022-11-23 09:17:19 +00:00
spiral
09ac002d26
fix(stats): actually add sentry to go modules 2022-11-23 07:46:58 +00:00
spiral
898d23d733
fix(stats): fix crash when messages task fails, add Sentry integration 2022-11-23 05:17:56 +00:00
spiral
4ea21177ec
fix(web-proxy): actually working metrics, misc fixes 2022-11-23 03:24:36 +00:00