Quentin Gliech
6a2492e70b
Fix a few clippy lints, mostly in doc comments
2025-08-18 10:34:28 +02:00
Quentin Gliech
ea873577aa
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
ed566a9fbf
Use Path::display() instead of the debug representation
2025-07-16 19:23:06 +02:00
Quentin Gliech
c3707c13ae
Add license headers in most files that missed them
2025-06-12 11:01:07 +02:00
Quentin Gliech
3d96dc9d47
Update license headers to match the actual license
2025-06-12 10:32:16 +02:00
Quentin Gliech
fc6756df65
Remove optional features from the mas-policy crate
2025-06-10 14:25:38 +02:00
Quentin Gliech
97e83e1467
Define all the dependencies at the workspace level
2025-06-10 14:25:38 +02:00
Quentin Gliech
d748f18be6
Replace most remaining #[instrument(err)] annotations
2025-04-18 09:59:29 +02:00
Quentin Gliech
1520b1f94d
Update opa-wasm to 0.1.5
2025-04-06 10:51:47 +02:00
Quentin Gliech
5a97ec5cca
Merge branch 'main' into quenting/dynamic-policy-data
2025-03-03 14:25:05 +01:00
Quentin Gliech
70b561291e
Show proper error messages when registering with a banned/not-allowed username
2025-03-03 10:45:30 +01:00
Quentin Gliech
756922342a
policy: allow dynamically setting policy data
2025-02-25 16:21:54 +01:00
Quentin Gliech
a538b50233
Bump most Rust dependencies
2025-02-24 12:12:07 +01:00
Quentin Gliech
3d2b67a0b2
Upgrade to Rust 1.85 and edition 2024
2025-02-21 16:15:02 +01:00
Quentin Gliech
0027980cf4
Add translatable errors for the email policy constraints
2025-02-17 15:53:57 +01:00
Quentin Gliech
0eb6638e41
Expose the user agent string to the policy execution context
2025-02-17 11:51:26 +01:00
Quentin Gliech
aa6436aa1a
Allow banning registrations by IP address
2025-02-17 10:18:11 +01:00
Quentin Gliech
67468ca0bc
Remove the unused password input schema
2025-02-17 10:17:30 +01:00
Quentin Gliech
d6b3e6ccaa
Pass an input object to the policy evaluation instead of multiple arguments
2025-02-14 17:15:26 +01:00
Quentin Gliech
d16049524b
Propagate more specific error messages from the policy on registration
...
This makes some policy errors translatable
2025-01-06 10:15:08 +01:00
Quentin Gliech
2820794c8d
Allow longer & shorter usernames, complying with the MXID length spec
2025-01-06 10:15:08 +01:00
dependabot[bot]
66b3b59d98
build(deps): bump opa-wasm from 0.1.2 to 0.1.3
...
Bumps [opa-wasm](https://github.com/matrix-org/rust-opa-wasm ) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/matrix-org/rust-opa-wasm/releases )
- [Changelog](https://github.com/matrix-org/rust-opa-wasm/blob/main/CHANGELOG.md )
- [Commits](https://github.com/matrix-org/rust-opa-wasm/compare/v0.1.2...v0.1.3 )
---
updated-dependencies:
- dependency-name: opa-wasm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-25 18:16:03 +01:00
dependabot[bot]
6dc9c971eb
build(deps): bump opa-wasm from 0.1.1 to 0.1.2
...
Bumps [opa-wasm](https://github.com/matrix-org/rust-opa-wasm ) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/matrix-org/rust-opa-wasm/releases )
- [Changelog](https://github.com/matrix-org/rust-opa-wasm/blob/main/CHANGELOG.md )
- [Commits](https://github.com/matrix-org/rust-opa-wasm/compare/v0.1.1...v0.1.2 )
---
updated-dependencies:
- dependency-name: opa-wasm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-12 14:53:37 +01:00
dependabot[bot]
d8e4f37e99
build(deps): bump opa-wasm from 0.1.0 to 0.1.1
...
Bumps [opa-wasm](https://github.com/matrix-org/rust-opa-wasm ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/matrix-org/rust-opa-wasm/releases )
- [Changelog](https://github.com/matrix-org/rust-opa-wasm/blob/main/CHANGELOG.md )
- [Commits](https://github.com/matrix-org/rust-opa-wasm/compare/v0.1.0...v0.1.1 )
---
updated-dependencies:
- dependency-name: opa-wasm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-07 18:06:28 +02:00
Quentin Gliech
87f34522c8
Output the registered client metadata in the registration endpoint
...
Fixes #2848
2024-09-20 20:39:04 +02: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
reivilibre
1afd2a2906
Remove OPA-based password policy enforcement ( #2875 )
...
Co-authored-by: Quentin Gliech <quenting@element.io >
2024-07-16 14:33:04 +01:00
Quentin Gliech
12623233b2
Use a released version of opa-wasm
2024-07-01 12:35:08 +02:00
Quentin Gliech
4bc425b415
Use re-exported wasmtime to avoid dependencies conflicts
2024-07-01 10:20:33 +02:00
Quentin Gliech
d061d7f6b3
Move tokio to a workspace dependency
2024-05-15 14:54:34 +02:00
dependabot[bot]
5ed10e0e06
build(deps): bump wasmtime from 20.0.1 to 20.0.2
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 20.0.1 to 20.0.2.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v20.0.1...v20.0.2 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-10 10:20:37 +02:00
dependabot[bot]
eb80ca1c88
build(deps): bump wasmtime from 20.0.0 to 20.0.1
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 20.0.0 to 20.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v20.0.0...v20.0.1 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-07 07:33:59 +02:00
Quentin Gliech
9e2530861f
Disable wasmtime cache, enable parallel compilation, add deny exception
2024-05-02 10:35:59 +02:00
dependabot[bot]
18c5ca8474
build(deps): bump wasmtime from 18.0.3 to 20.0.0
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 18.0.3 to 20.0.0.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v18.0.3...v20.0.0 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-02 10:35:59 +02:00
dependabot[bot]
43f4768ae6
build(deps): bump tokio from 1.36.0 to 1.37.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.36.0 to 1.37.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.36.0...tokio-1.37.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-30 18:11:14 +02:00
Quentin Gliech
d8f5fdaf5c
Moved some dependencies in the workspace and upgrade some dependencies
2024-03-19 14:54:35 +01:00
dependabot[bot]
34d8132114
build(deps): bump wasmtime from 17.0.0 to 18.0.3
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 17.0.0 to 18.0.3.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v17.0.0...v18.0.3 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-19 12:02:37 +01:00
Quentin Gliech
46c565cc89
Move schemars to workspace dependencies
...
Also enables the `preserve_order` feature, hence the big schema output diff.
2024-03-01 14:36:37 +01:00
Quentin Gliech
1c62543220
Make the device code grants go through the policy engine
2024-02-02 18:01:51 +01:00
Quentin Gliech
b927d330c9
Bump most Rust dependencies
2024-02-02 15:37:05 +01:00
Quentin Gliech
49963b26f8
Prepare workspace to publish OIDC crates
2023-12-07 16:02:55 +01:00
Quentin Gliech
a0f5f3c642
Enable clippy lints on a workspace level
...
This enables a lot more lints than before in some crates, so this fixed a lot of warnings as well.
2023-12-05 17:20:42 +01:00
Quentin Gliech
30247448d5
Bump Rust dependencies
2023-11-24 13:04:37 +01:00
dependabot[bot]
ec6e350271
build(deps): bump schemars from 0.8.15 to 0.8.16
...
Bumps [schemars](https://github.com/GREsau/schemars ) from 0.8.15 to 0.8.16.
- [Release notes](https://github.com/GREsau/schemars/releases )
- [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GREsau/schemars/compare/v0.8.15...v0.8.16 )
---
updated-dependencies:
- dependency-name: schemars
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 15:41:31 +01:00
dependabot[bot]
9802981c0e
build(deps): bump tokio from 1.33.0 to 1.34.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.33.0...tokio-1.34.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 13:51:15 +01:00
dependabot[bot]
10e31f03fa
build(deps): bump wasmtime from 13.0.0 to 14.0.1
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 13.0.0 to 14.0.1.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v13.0.0...v14.0.1 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-23 23:16:15 +02:00
dependabot[bot]
69798aef47
build(deps): bump tokio from 1.32.0 to 1.33.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.32.0 to 1.33.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.32.0...tokio-1.33.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-09 16:11:09 +02:00
dependabot[bot]
d26fad75b0
build(deps): bump wasmtime from 12.0.2 to 13.0.0
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 12.0.2 to 13.0.0.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases )
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md )
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v12.0.2...v13.0.0 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-22 22:30:20 +02:00
dependabot[bot]
23f79426bb
build(deps): bump schemars from 0.8.13 to 0.8.15
...
Bumps [schemars](https://github.com/GREsau/schemars ) from 0.8.13 to 0.8.15.
- [Release notes](https://github.com/GREsau/schemars/releases )
- [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GREsau/schemars/compare/v0.8.13...v0.8.15 )
---
updated-dependencies:
- dependency-name: schemars
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-18 23:53:37 +02:00