Quentin Gliech
b8d23be313
Fix many clippy warnings
...
This is because the tracing-attributes update made clippy look at those
again. I've removed the `too_many_lines` lint, as it's not really useful
and we ignore it most of the time anyway.
2025-07-30 14:49:38 +02:00
Quentin Gliech
77f371c6f6
Replace usage of deprecated SentryHttpLayer::with_transaction
2025-07-30 14:27:07 +02:00
Quentin Gliech
e964c08eb6
Make the compat_router also recover from errors in human-facing routes
2025-07-23 19:45:59 +02:00
Quentin Gliech
52b0a9b2ba
Update license headers to match the actual license
2025-06-12 10:32:16 +02:00
Quentin Gliech
7ab69f4d92
Reduce the cache time for 404s on the assets
2025-06-02 13:32:57 +02:00
Quentin Gliech
0c6124b670
Fix the ordering of the middlewares ( #4452 )
2025-04-24 15:12:51 +02:00
Quentin Gliech
fd258ccf23
Fix the ordering of the middlewares
...
This was causing the number of event processors to constantly grow
with each request, making the server use up more memory and CPU over
time.
2025-04-24 14:59:07 +02:00
Quentin Gliech
564e70d8dc
perf: avoid unnecessary clones of the log context
2025-04-24 14:19:26 +02:00
Quentin Gliech
d70877a1c9
Fix Sentry creating transactions for every request
2025-04-18 09:59:24 +02:00
Quentin Gliech
c8c63a10ad
Log on every HTTP response
2025-04-18 09:58:57 +02:00
Quentin Gliech
9e4689f263
Create a few basic logging contexts
2025-04-16 16:07:29 +02:00
Quentin Gliech
6fcdad6b26
Convert a few closures + async move to async closures
2025-02-21 16:22:21 +01:00
Quentin Gliech
56d9c7e63b
Upgrade to Rust 1.85 and edition 2024
2025-02-21 16:15:02 +01:00
Quentin Gliech
f3d4e59b23
Fix a crash on startup when a listener has an empty prefix
2025-02-20 08:31:11 +01:00
Quentin Gliech
28480e40af
Make the rate limiter available to the GraphQL API handlers
2025-01-13 16:58:42 +01:00
Quentin Gliech
8c358efd88
Update the rest of the OTEL deps and use the new APIs
2024-12-12 16:04:48 +01:00
Quentin Gliech
9a946c19e7
Remove (C)
2024-09-10 14:28:55 +02:00
Quentin Gliech
9da19e2af0
License headers change
2024-09-05 13:25:42 +02:00
Quentin Gliech
58b673d54d
Disallow OAuth 2.0 use of the GraphQL API by default
2024-08-07 18:09:51 +02:00
Quentin Gliech
c8b4a17a55
config: allow serving the admin API routes
2024-07-26 11:36:55 +02:00
Quentin Gliech
00f4265bcc
OTEL: remove custom Header{Injector,Extractor} implementations
2024-07-25 11:27:07 +02:00
Quentin Gliech
85186682d7
Fix mas-cli
...
This does a few things:
- move `bytes` to workspace dependencies
- write an hyper-based transport for Sentry
- ignore OTEL errors related to propagations
- fix everything else in mas-cli
2024-07-05 10:07:40 +02:00
Quentin Gliech
0f0dff8c1a
Flatten the http config
...
Also properly remove the `spa` resource
2024-03-22 13:33:09 +01:00
Quentin Gliech
7f845d1601
Use OTEL semantic conventions constants for most attributes
2024-03-19 17:15:14 +01:00
Quentin Gliech
771b6a2f8b
Upgrade OTEL and remove support for Jaeger and Zipkin exporters
2024-03-18 17:26:40 +01:00
Quentin Gliech
b49eadf418
Upgrade rustls
2024-02-02 11:45:20 +01:00
Quentin Gliech
fd4481713b
Allow running the authentication service on a different base path
2023-10-06 14:07:55 +02:00
Quentin Gliech
baaa725fcd
Infer client IP address from the peer address and the X-Forwarded-Proxy header
2023-09-20 20:24:30 +02:00
Quentin Gliech
b783b5457e
tracing: set the parent context from the incoming request again
2023-08-29 18:50:54 +02:00
Quentin Gliech
2061cdc4d6
OpenTelemetry upgrade
2023-08-11 16:12:58 +02:00
Quentin Gliech
863cd74207
Add a 404 HTMl fallback
2023-08-09 16:56:11 +02:00
Quentin Gliech
82afe9471c
Better frontend assets handling and move the react app to /account/ ( #1324 )
...
This makes the Vite assets handling better, namely:
- make it possible to include any vite assets in the templates
- include the right `<link rel="preload">` tags for assets
- include Subresource Integrity hashes
- pre-compress assets and remove on-the-fly compression by the Rust server
- build the CSS used by templates through Vite
It also moves the React app from /app/ to /account/, and remove some of the old SSR account screens.
2023-07-06 15:30:26 +02:00
Quentin Gliech
3cc4749979
Replace the OTEL-based tracing layer with tracing based layers
2023-04-18 14:45:43 +02:00
Quentin Gliech
b5ba81e260
Fix clippy errors
2023-03-14 10:47:35 +01:00
Quentin Gliech
cb4bfe5b6b
Log more errors and setup Sentry integration
2023-01-30 18:04:44 +01:00
Quentin Gliech
d8550778ea
Remove the ServerLayer from mas-http
2022-12-05 19:39:51 +01:00
Quentin Gliech
2fcede2788
Bump axum to 0.6.0
2022-11-29 09:37:12 +01:00
Quentin Gliech
7685fe5c9f
Migrate to axum 0.6.0-rc.5
2022-11-21 15:04:16 +01:00
Quentin Gliech
c1aad59e18
Do not embed the templates and static files in the binary
2022-11-18 22:37:55 +01:00
Quentin Gliech
9d97e4a0e8
Switch to camino's Utf8Path* instead of std::path::Path*
2022-11-18 19:02:26 +01:00
Quentin Gliech
c611b292f4
Bump the latest axum rc
2022-11-18 14:57:22 +01:00
Quentin Gliech
28a9d54072
Serve the SPA by the server
2022-11-18 13:43:01 +01:00
Quentin Gliech
943f048e22
Initial GraphQL API
2022-11-09 19:17:12 +01:00
Quentin Gliech
28d05658f9
Rewrite the listeners crate
...
Now with a way better graceful shutdown! With proper handshakes!
2022-10-17 11:39:45 +02:00
Quentin Gliech
7a224a5c1d
Inject connection informations in the request extension
2022-10-17 11:39:45 +02:00
Quentin Gliech
1314a11422
Refactor listeners building
2022-10-17 11:39:45 +02:00
Quentin Gliech
55670b39d3
Reorganise CLI crate
2022-02-01 18:49:55 +01:00
Quentin Gliech
70f2d1d480
Move secrets and oauth2 clients config
2022-02-01 09:34:55 +01:00
Quentin Gliech
5de0dc30d1
Allow loading private keys from files
2022-01-26 18:29:11 +01:00
Quentin Gliech
02300f9fdc
Fix traces not being created for requests
2022-01-25 11:46:14 +01:00