reivilibre
fbd57ad51a
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
450fcaafc7
Make mas-cli manage kill-sessions finish sessions in bulk
2024-07-16 14:13:11 +02:00
Quentin Gliech
98d66c1356
Add a way to reactivate users on the homeserver
2024-07-16 13:20:28 +02:00
Quentin Gliech
f5e189304e
Fully sync the devices with the homeserver
2024-07-16 09:32:07 +02:00
reivilibre
a4891fa9ef
Backend work to support minimum password complexity ( #2965 )
...
* config: Add minimum password complexity option
* PasswordManager: add function for checking if complexity is sufficient
* Enforce password complexity on registration, change and recovery
* cli: Use exit code 1 for weak passwords
This seems preferable to exit code 0, but ideally we should choose one
and document it.
* Expose minimum password complexity score over GraphQL
2024-07-11 10:17:39 +01: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
cb3477dd52
Move Sentry to the workspace dependencies and upgrade
2024-07-05 10:07:40 +02:00
Quentin Gliech
5162e1d5ef
Write an adapter for opentelemetry-http
2024-07-05 10:07:40 +02:00
Quentin Gliech
cd899abed9
Move tower-http dep to the workspace and adapt mas-axum-utils
...
We removed here the Timeout layer on the HTTP client service, because it
required the body to be Default, which isn't the case anymore. Not sure
what to do about it.
2024-07-05 10:07:40 +02:00
Quentin Gliech
16b953cfe4
Upgrade most HTTP/Hyper crates and make mas-listener work
2024-07-05 10:07:40 +02:00
Quentin Gliech
cb92ef9df6
Box the CLI command futures to reduce the size of the try_main future
2024-07-05 09:54:18 +02:00
Quentin Gliech
65c416ff2e
New config options to set the database certificates
2024-07-05 09:54:18 +02:00
dependabot[bot]
12c875c66d
build(deps): bump zeroize from 1.7.0 to 1.8.1
...
Bumps [zeroize](https://github.com/RustCrypto/utils ) from 1.7.0 to 1.8.1.
- [Commits](https://github.com/RustCrypto/utils/compare/zeroize-v1.7.0...zeroize-v1.8.1 )
---
updated-dependencies:
- dependency-name: zeroize
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-01 13:40:43 +02:00
dependabot[bot]
a814f6b26e
build(deps): bump itertools from 0.12.1 to 0.13.0
...
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.12.1 to 0.13.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.1...v0.13.0 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-01 12:46:21 +02:00
Quentin Gliech
d966130e9f
Bump the other opentelemetry crates
2024-06-28 17:22:02 +02:00
dependabot[bot]
390674e8f8
build(deps): bump the opentelemetry group with 5 updates
...
Bumps the opentelemetry group with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [opentelemetry-jaeger-propagator](https://github.com/open-telemetry/opentelemetry-rust ) | `0.1.0` | `0.2.0` |
| [opentelemetry-otlp](https://github.com/open-telemetry/opentelemetry-rust ) | `0.15.0` | `0.16.0` |
| [opentelemetry-prometheus](https://github.com/open-telemetry/opentelemetry-rust ) | `0.15.0` | `0.16.0` |
| [opentelemetry-stdout](https://github.com/open-telemetry/opentelemetry-rust ) | `0.3.0` | `0.4.0` |
| [opentelemetry_sdk](https://github.com/open-telemetry/opentelemetry-rust ) | `0.22.1` | `0.23.0` |
Updates `opentelemetry-jaeger-propagator` from 0.1.0 to 0.2.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases )
- [Commits](https://github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-jaeger-propagator-0.1.0...opentelemetry-jaeger-propagator-0.2.0 )
Updates `opentelemetry-otlp` from 0.15.0 to 0.16.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases )
- [Commits](https://github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-otlp-0.15.0...opentelemetry-otlp-0.16.0 )
Updates `opentelemetry-prometheus` from 0.15.0 to 0.16.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases )
- [Commits](https://github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-prometheus-0.15.0...opentelemetry-prometheus-0.16.0 )
Updates `opentelemetry-stdout` from 0.3.0 to 0.4.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases )
- [Commits](https://github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-stdout-0.3.0...opentelemetry-stdout-0.4.0 )
Updates `opentelemetry_sdk` from 0.22.1 to 0.23.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases )
- [Commits](https://github.com/open-telemetry/opentelemetry-rust/compare/v0.22.1...opentelemetry-0.23.0 )
---
updated-dependencies:
- dependency-name: opentelemetry-jaeger-propagator
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry
- dependency-name: opentelemetry-otlp
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry
- dependency-name: opentelemetry-prometheus
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry
- dependency-name: opentelemetry-stdout
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry
- dependency-name: opentelemetry_sdk
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: opentelemetry
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-06-28 17:22:02 +02:00
Quentin Gliech
041c74e7b2
Gate account recovery behing a configuration flag
2024-06-28 15:59:21 +02:00
Quentin Gliech
df89f570ac
Actually send emails for recovery
2024-06-28 15:59:21 +02:00
reivilibre
efa0057491
Add a setPassword GraphQL mutation for setting a user's password ( #2820 )
...
* Feed `PasswordManager` through to the GraphQL `State`
* Add `setPassword` GraphQL mutation to update a user's password
2024-06-05 18:04:17 +01:00
reivilibre
06e3bc3ed1
Merge the mas_graphql crate into the mas_handlers crate ( #2783 )
2024-05-17 17:22:34 +01:00
Olivier 'reivilibre
d6ea3ba704
'migration' -> 'database migration' in startup output
2024-05-16 16:39:57 +02:00
Olivier 'reivilibre
f1e41cb05a
Fix typos in doctor command output
2024-05-16 16:39:57 +02:00
Quentin Gliech
fe737e497b
Move tokio to a workspace dependency
2024-05-15 14:54:34 +02:00
Quentin Gliech
5e1e27f7ea
hCaptcha support
2024-05-15 09:38:10 +02:00
Quentin Gliech
608daa9ac2
Cloudflare Turnstile support
2024-05-15 09:38:10 +02:00
Quentin Gliech
764069b6bc
Render reCAPTCHA challenge on the registration form
2024-05-15 09:38:10 +02:00
dependabot[bot]
3588d88a4a
build(deps): bump prometheus from 0.13.3 to 0.13.4
...
Bumps [prometheus](https://github.com/tikv/rust-prometheus ) from 0.13.3 to 0.13.4.
- [Changelog](https://github.com/tikv/rust-prometheus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tikv/rust-prometheus/compare/v0.13.3...v0.13.4 )
---
updated-dependencies:
- dependency-name: prometheus
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-07 07:33:05 +02:00
Quentin Gliech
3e450b50f0
Fix recently added Clippy lints
...
This also ignores the clippy::blocks_in_conditions lint in two crates,
until tracing gets fixed: https://github.com/tokio-rs/tracing/issues/2876
2024-05-07 07:32:02 +02:00
Quentin Gliech
dbdb72226a
Disable wasmtime cache, enable parallel compilation, add deny exception
2024-05-02 10:35:59 +02:00
dependabot[bot]
d76570cdfd
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
dependabot[bot]
b052f2ec58
build(deps): bump serde_yaml from 0.9.33 to 0.9.34+deprecated
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.9.33 to 0.9.34+deprecated.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.33...0.9.34 )
---
updated-dependencies:
- dependency-name: serde_yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-30 15:10:36 +02:00
Quentin Gliech
a29da1f66f
Update copyright headers
2024-04-30 13:33:47 +02:00
Quentin Gliech
f171b20893
Make the SiteConfig available in the GraphQL context
2024-04-30 13:33:47 +02:00
Quentin Gliech
3934cc8d42
Finish moving the site config
2024-04-30 13:33:47 +02:00
Quentin Gliech
10f7195cc0
Move the SiteConfig to the data-model crate
2024-04-30 13:33:47 +02:00
Quentin Gliech
9c22a39c0e
Introduce config to restrict user capabilities
2024-04-30 13:33:47 +02:00
Quentin Gliech
0a5a51c28d
Prompt for all parameters interactively
2024-04-30 12:15:10 +02:00
Quentin Gliech
93f0651c5e
Prompt for username and confirm user creation
2024-04-30 12:15:10 +02:00
Quentin Gliech
75aeac9e0a
Add a manage register-user utility to the CLI
2024-04-30 12:15:10 +02:00
Quentin Gliech
f82ad8c0e6
Soft-delete upstream OAuth 2.0 providers on config sync
2024-04-03 09:51:22 +02:00
Quentin Gliech
6841bc112d
Add a soft-deletion column on upstream OAuth 2.0 providers
2024-04-03 09:51:22 +02:00
Quentin Gliech
2d9157986e
Allow disabling registrations ( #2553 )
2024-04-03 09:27:14 +02:00
Quentin Gliech
ff1267eefd
Flatten the upstream_oauth2 config section
2024-03-22 13:33:09 +01:00
Quentin Gliech
5eadd1ffbd
Flatten the telemetry config section
2024-03-22 13:33:09 +01:00
Quentin Gliech
8d41352a1b
Clean up the default policy config data
2024-03-22 13:33:09 +01:00
Quentin Gliech
0e7e2e7089
Flatten the passwords config section
2024-03-22 13:33:09 +01:00
Quentin Gliech
0f0dff8c1a
Flatten the http config
...
Also properly remove the `spa` resource
2024-03-22 13:33:09 +01:00
Quentin Gliech
fedf41fe38
Flatten the email config
2024-03-22 13:33:09 +01:00
Quentin Gliech
8eff88e9e8
Flatten the database config
2024-03-22 13:33:09 +01:00
Quentin Gliech
f61bdbba72
Flatten the clients config
2024-03-22 13:33:09 +01:00