Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit cce962b

Browse files
committed
Merge branch 'main' of github.com:/matrix-org/matrix-authentication-service into t3chguy/uia-x-signing-reset
# Conflicts: # frontend/src/routes/_account.index.lazy.tsx
2 parents ea18cba + c8afc48 commit cce962b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+4318
-320
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
done
114114
115115
- name: Upload the artifacts
116-
uses: actions/[email protected].5
116+
uses: actions/[email protected].6
117117
with:
118118
name: binaries
119119
path: |

Cargo.lock

Lines changed: 32 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = ["crates/*"]
44
resolver = "2"
55

66
# Updated in the CI with a `sed` command
7-
package.version = "0.9.0"
7+
package.version = "0.10.0-rc.0"
88

99
package.license = "Apache-2.0"
1010
package.authors = ["Quentin Gliech <[email protected]>"]
@@ -28,33 +28,33 @@ broken_intra_doc_links = "deny"
2828
[workspace.dependencies]
2929

3030
# Workspace crates
31-
mas-axum-utils = { path = "./crates/axum-utils/", version = "=0.9.0" }
32-
mas-cli = { path = "./crates/cli/", version = "=0.9.0" }
33-
mas-config = { path = "./crates/config/", version = "=0.9.0" }
34-
mas-data-model = { path = "./crates/data-model/", version = "=0.9.0" }
35-
mas-email = { path = "./crates/email/", version = "=0.9.0" }
36-
mas-graphql = { path = "./crates/graphql/", version = "=0.9.0" }
37-
mas-handlers = { path = "./crates/handlers/", version = "=0.9.0" }
38-
mas-http = { path = "./crates/http/", version = "=0.9.0" }
39-
mas-i18n = { path = "./crates/i18n/", version = "=0.9.0" }
40-
mas-i18n-scan = { path = "./crates/i18n-scan/", version = "=0.9.0" }
41-
mas-iana = { path = "./crates/iana/", version = "=0.9.0" }
42-
mas-iana-codegen = { path = "./crates/iana-codegen/", version = "=0.9.0" }
43-
mas-jose = { path = "./crates/jose/", version = "=0.9.0" }
44-
mas-keystore = { path = "./crates/keystore/", version = "=0.9.0" }
45-
mas-listener = { path = "./crates/listener/", version = "=0.9.0" }
46-
mas-matrix = { path = "./crates/matrix/", version = "=0.9.0" }
47-
mas-matrix-synapse = { path = "./crates/matrix-synapse/", version = "=0.9.0" }
48-
mas-oidc-client = { path = "./crates/oidc-client/", version = "=0.9.0" }
49-
mas-policy = { path = "./crates/policy/", version = "=0.9.0" }
50-
mas-router = { path = "./crates/router/", version = "=0.9.0" }
51-
mas-spa = { path = "./crates/spa/", version = "=0.9.0" }
52-
mas-storage = { path = "./crates/storage/", version = "=0.9.0" }
53-
mas-storage-pg = { path = "./crates/storage-pg/", version = "=0.9.0" }
54-
mas-tasks = { path = "./crates/tasks/", version = "=0.9.0" }
55-
mas-templates = { path = "./crates/templates/", version = "=0.9.0" }
56-
mas-tower = { path = "./crates/tower/", version = "=0.9.0" }
57-
oauth2-types = { path = "./crates/oauth2-types/", version = "=0.9.0" }
31+
mas-axum-utils = { path = "./crates/axum-utils/", version = "=0.10.0-rc.0" }
32+
mas-cli = { path = "./crates/cli/", version = "=0.10.0-rc.0" }
33+
mas-config = { path = "./crates/config/", version = "=0.10.0-rc.0" }
34+
mas-data-model = { path = "./crates/data-model/", version = "=0.10.0-rc.0" }
35+
mas-email = { path = "./crates/email/", version = "=0.10.0-rc.0" }
36+
mas-graphql = { path = "./crates/graphql/", version = "=0.10.0-rc.0" }
37+
mas-handlers = { path = "./crates/handlers/", version = "=0.10.0-rc.0" }
38+
mas-http = { path = "./crates/http/", version = "=0.10.0-rc.0" }
39+
mas-i18n = { path = "./crates/i18n/", version = "=0.10.0-rc.0" }
40+
mas-i18n-scan = { path = "./crates/i18n-scan/", version = "=0.10.0-rc.0" }
41+
mas-iana = { path = "./crates/iana/", version = "=0.10.0-rc.0" }
42+
mas-iana-codegen = { path = "./crates/iana-codegen/", version = "=0.10.0-rc.0" }
43+
mas-jose = { path = "./crates/jose/", version = "=0.10.0-rc.0" }
44+
mas-keystore = { path = "./crates/keystore/", version = "=0.10.0-rc.0" }
45+
mas-listener = { path = "./crates/listener/", version = "=0.10.0-rc.0" }
46+
mas-matrix = { path = "./crates/matrix/", version = "=0.10.0-rc.0" }
47+
mas-matrix-synapse = { path = "./crates/matrix-synapse/", version = "=0.10.0-rc.0" }
48+
mas-oidc-client = { path = "./crates/oidc-client/", version = "=0.10.0-rc.0" }
49+
mas-policy = { path = "./crates/policy/", version = "=0.10.0-rc.0" }
50+
mas-router = { path = "./crates/router/", version = "=0.10.0-rc.0" }
51+
mas-spa = { path = "./crates/spa/", version = "=0.10.0-rc.0" }
52+
mas-storage = { path = "./crates/storage/", version = "=0.10.0-rc.0" }
53+
mas-storage-pg = { path = "./crates/storage-pg/", version = "=0.10.0-rc.0" }
54+
mas-tasks = { path = "./crates/tasks/", version = "=0.10.0-rc.0" }
55+
mas-templates = { path = "./crates/templates/", version = "=0.10.0-rc.0" }
56+
mas-tower = { path = "./crates/tower/", version = "=0.10.0-rc.0" }
57+
oauth2-types = { path = "./crates/oauth2-types/", version = "=0.10.0-rc.0" }
5858

5959
# OpenAPI schema generation and validation
6060
[workspace.dependencies.aide]
@@ -134,7 +134,7 @@ features = ["client", "http1", "http2"]
134134

135135
# Additional Hyper utilties
136136
[workspace.dependencies.hyper-util]
137-
version = "0.1.6"
137+
version = "0.1.7"
138138
features = [
139139
"client",
140140
"server",
@@ -151,6 +151,11 @@ version = "0.27.2"
151151
features = ["http1", "http2"]
152152
default-features = false
153153

154+
# Snapshot testing
155+
[workspace.dependencies.insta]
156+
version = "1.39.0"
157+
features = ["yaml", "json"]
158+
154159
# Email sending
155160
[workspace.dependencies.lettre]
156161
version = "0.11.7"

crates/cli/src/commands/server.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,18 @@ impl Options {
197197
let activity_tracker = ActivityTracker::new(pool.clone(), Duration::from_secs(60));
198198
let trusted_proxies = config.http.trusted_proxies.clone();
199199

200+
// Build a rate limiter.
201+
// This should not raise an error here as the config should already have been
202+
// validated.
203+
let limiter = Limiter::new(&config.rate_limiting)
204+
.context("rate-limiting configuration is not valid")?;
205+
200206
// Explicitly the config to properly zeroize secret keys
201207
drop(config);
202208

203209
// Listen for SIGHUP
204210
register_sighup(&templates, &activity_tracker)?;
205211

206-
let limiter = Limiter::default();
207-
208212
limiter.start();
209213

210214
let graphql_schema = mas_handlers::graphql_schema(

0 commit comments

Comments
 (0)