Commit Graph

52 Commits

Author SHA1 Message Date
Quentin Gliech 9d4d09f7c1 Fix a crash on startup when a listener has an empty prefix 2025-02-20 08:31:11 +01:00
Quentin Gliech 5cbb576f94 Make the rate limiter available to the GraphQL API handlers 2025-01-13 16:58:42 +01:00
Quentin Gliech b5155cc8e4 Update the rest of the OTEL deps and use the new APIs 2024-12-12 16:04:48 +01:00
Quentin Gliech ed4b6c42a7 Remove (C) 2024-09-10 14:28:55 +02:00
Quentin Gliech f6bb100c0a License headers change 2024-09-05 13:25:42 +02:00
Quentin Gliech 1bdad262cd Disallow OAuth 2.0 use of the GraphQL API by default 2024-08-07 18:09:51 +02:00
Quentin Gliech 76755610cb config: allow serving the admin API routes 2024-07-26 11:36:55 +02:00
Quentin Gliech ee9a01ef40 OTEL: remove custom Header{Injector,Extractor} implementations 2024-07-25 11:27:07 +02:00
Quentin Gliech 798ca90241 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 8bc35f63d8 Flatten the http config
Also properly remove the `spa` resource
2024-03-22 13:33:09 +01:00
Quentin Gliech dde907758e Use OTEL semantic conventions constants for most attributes 2024-03-19 17:15:14 +01:00
Quentin Gliech eb950151af Upgrade OTEL and remove support for Jaeger and Zipkin exporters 2024-03-18 17:26:40 +01:00
Quentin Gliech aeca03a120 Upgrade rustls 2024-02-02 11:45:20 +01:00
Quentin Gliech 9b5c8fb44b Allow running the authentication service on a different base path 2023-10-06 14:07:55 +02:00
Quentin Gliech f20c8d8ef3 Infer client IP address from the peer address and the X-Forwarded-Proxy header 2023-09-20 20:24:30 +02:00
Quentin Gliech 6589f06d79 tracing: set the parent context from the incoming request again 2023-08-29 18:50:54 +02:00
Quentin Gliech 699dfba55f OpenTelemetry upgrade 2023-08-11 16:12:58 +02:00
Quentin Gliech 3e6ea9a158 Add a 404 HTMl fallback 2023-08-09 16:56:11 +02:00
Quentin Gliech 76653f9638 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 08f58db08b Replace the OTEL-based tracing layer with tracing based layers 2023-04-18 14:45:43 +02:00
Quentin Gliech 83cb9158a0 Fix clippy errors 2023-03-14 10:47:35 +01:00
Quentin Gliech 875025467e Log more errors and setup Sentry integration 2023-01-30 18:04:44 +01:00
Quentin Gliech e8c8d0bf8a Remove the ServerLayer from mas-http 2022-12-05 19:39:51 +01:00
Quentin Gliech dfcca89d30 Bump axum to 0.6.0 2022-11-29 09:37:12 +01:00
Quentin Gliech 809f836bb4 Migrate to axum 0.6.0-rc.5 2022-11-21 15:04:16 +01:00
Quentin Gliech 9c0ece7512 Do not embed the templates and static files in the binary 2022-11-18 22:37:55 +01:00
Quentin Gliech a86798d2b3 Switch to camino's Utf8Path* instead of std::path::Path* 2022-11-18 19:02:26 +01:00
Quentin Gliech c76a1dd2e7 Bump the latest axum rc 2022-11-18 14:57:22 +01:00
Quentin Gliech 933022850b Serve the SPA by the server 2022-11-18 13:43:01 +01:00
Quentin Gliech c13b0478e6 Initial GraphQL API 2022-11-09 19:17:12 +01:00
Quentin Gliech ee43f08cf7 Rewrite the listeners crate
Now with a way better graceful shutdown! With proper handshakes!
2022-10-17 11:39:45 +02:00
Quentin Gliech 485778beb3 Inject connection informations in the request extension 2022-10-17 11:39:45 +02:00
Quentin Gliech c548417752 Refactor listeners building 2022-10-17 11:39:45 +02:00
Quentin Gliech c3ddc088ab Reorganise CLI crate 2022-02-01 18:49:55 +01:00
Quentin Gliech 7e24cd0948 Move secrets and oauth2 clients config 2022-02-01 09:34:55 +01:00
Quentin Gliech 79d7561d93 Allow loading private keys from files 2022-01-26 18:29:11 +01:00
Quentin Gliech 46caf284cf Fix traces not being created for requests 2022-01-25 11:46:14 +01:00
Quentin Gliech 1355be8fb8 Add AWS SES backend to send email 2022-01-24 16:31:53 +01:00
Quentin Gliech 93cbad34f5 Actually send emails 2022-01-19 18:00:45 +01:00
Quentin Gliech f933ace007 New JWT/JOSE crate
Still WIP, needs to handle time related claims
2022-01-04 22:28:00 +01:00
Quentin Gliech 2f97ca685d Split the core crate 2021-12-17 18:04:30 +01:00
Quentin Gliech ceb17d3646 Move storage module to its own crate 2021-12-17 12:15:07 +01:00
Quentin Gliech 7341f0dccf Better error context on startup 2021-12-14 11:52:19 +01:00
Quentin Gliech c53318eca0 Refactor templates loading & implement templates hot-reload 2021-12-09 14:07:09 +01:00
Quentin Gliech 8608e46eba Graceful shutdown of the server 2021-11-22 18:30:17 +01:00
Quentin Gliech 617ab83ab2 Upgrade all dependencies 2021-10-18 17:45:45 +02:00
Quentin Gliech 026bc47c27 Move templates to their own crate 2021-10-18 17:40:25 +02:00
Quentin Gliech e630279b54 Propagate parent trace context 2021-10-14 17:39:49 +02:00
Quentin Gliech ff41ae5762 Templates config 2021-09-23 23:51:17 +02:00
Quentin Gliech 789ace84fd Ability to run migrations on startup
Also adds a bunch of logging information on startup
2021-09-17 11:27:06 +02:00