Commit Graph

2790 Commits

Author SHA1 Message Date
Eric Eastwood 373dcfb5ee Remove debug log 2026-05-06 11:20:35 -05:00
Eric Eastwood 6d1b91dd4f Fix client linking to none on policy violation screen 2026-05-06 11:19:54 -05:00
Eric Eastwood e9165887a1 Reference actual const in comment 2026-04-27 17:53:56 -05:00
Eric Eastwood 2c80015fc9 Remove MINIMUM_SESSIONS_TO_FETCH complexity
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3150594429
2026-04-27 17:53:32 -05:00
Eric Eastwood caf3d97f5e Fix lints 2026-04-27 17:46:28 -05:00
Eric Eastwood b2d7ef9583 Better clarify MINIMUM_SESSIONS_TO_FETCH asserts 2026-04-27 17:44:40 -05:00
Eric Eastwood a06429a840 Merge branch 'main' into madlittlemods/hard_limit_eviction 2026-04-27 17:09:41 -05:00
Eric Eastwood dacbf90224 Also const assert how big MINIMUM_SESSIONS_TO_FETCH can be 2026-04-27 17:00:37 -05:00
Eric Eastwood 701da035f2 MINIMUM_SESSIONS_TO_FETCH as 2160 to accomodate script that runs each hour for the 90 day inactive threshold 2026-04-27 16:45:03 -05:00
Eric Eastwood 2c716b638a Explain minimum_sessions_to_fetch logic
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473846
2026-04-27 15:59:00 -05:00
Eric Eastwood f17d9233a9 Add spec reference for 'device identity key' (cryptographic state/devices)
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473844
2026-04-27 15:38:56 -05:00
Eric Eastwood 9506832343 Extract logic to find_lru_compat_sessions_flawed(...) to make the usage more clear 2026-04-27 15:35:26 -05:00
Eric Eastwood 4f660bd9ea Remove too-tight assertion around session_limit config when encountering violation
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473839
2026-04-27 15:13:54 -05:00
Eric Eastwood 8ab60954cf Rename option dangerous_hard_limit_eviction 2026-04-24 19:12:58 -05:00
Eric Eastwood 3e871eb284 Time always goes forward
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473850
2026-04-24 19:06:52 -05:00
Olivier 'reivilibre 76865b239a Simplify comment and test 2026-04-24 13:40:03 +01:00
Olivier 'reivilibre f50d2e53cd Overwrite the fragment with # on query callback mode 2026-04-23 15:23:54 +01:00
Olivier 'reivilibre 29f7d986ee Add characterisation test 2026-04-23 15:21:35 +01:00
Eric Eastwood 6b59e35583 Automatic formatting/linting and more at least typos 2026-04-21 18:09:19 -05:00
Eric Eastwood 4073c41958 Fix havea -> have a typo
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473853
2026-04-21 16:07:01 -05:00
Eric Eastwood a92f040da2 Log removed session ID's
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473830
2026-04-21 15:51:18 -05:00
Eric Eastwood 5458ef9b82 Expand need_to_remove docstring to explain what for
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473819
2026-04-21 15:37:12 -05:00
Eric Eastwood 82376b5c06 Placeholder syntax
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473813
2026-04-21 15:36:23 -05:00
Eric Eastwood 8cd3b451be catastrophically typo
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473807
2026-04-21 15:23:54 -05:00
Eric Eastwood 49dea7ee61 No hypen grammar
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473792
2026-04-21 15:23:12 -05:00
Eric Eastwood 777f74be5d Clarify 90d inactive threshold
See:

 - https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473863
 - https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473783
2026-04-21 15:21:24 -05:00
Eric Eastwood bc1e71baa3 Merge branch 'main' into madlittlemods/hard_limit_eviction 2026-04-13 17:00:02 -05:00
Eric Eastwood 12ce01fed9 Explicitly mention that it doesn't matter for this test 2026-04-13 16:43:14 -05:00
Eric Eastwood 5162529b16 Fix flaky recent eviction test 2026-04-13 16:38:45 -05:00
Eric Eastwood d53ab882bf Wait for last_active_at to be set
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3061734830
2026-04-13 15:57:26 -05:00
Eric Eastwood e4b8a3659f Fix validate error not extra metadata
New error example:
```
Error: Session `hard_limit` must be at-least 2 when automatic `hard_limit_eviction` is set. See configuration docs for more info. for key "default.experimental.session_limit.hard_limit" in config.yaml YAML file
```

See:

 - https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3034406794
 - https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3057732795
2026-04-13 15:41:18 -05:00
Eric Eastwood 020fb58125 Remove uninlined_format_args usage
Fix https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3047833269
2026-04-13 15:26:09 -05:00
Quentin Gliech 808f63571b Upgrade opa-wasm to 0.2.0 to upgrade wasmtime
This fixes a bunch of RUSTSEC advisories, see https://github.com/element-hq/matrix-authentication-service/issues/5621
2026-04-13 18:10:19 +02:00
Eric Eastwood de366d577f Run cargo +nightly fmt 2026-04-10 16:24:15 -05:00
Eric Eastwood b0c1a04585 Merge branch 'main' into madlittlemods/hard_limit_eviction 2026-04-10 16:23:11 -05:00
Eric Eastwood d9135d5696 Prefer variable shadowing (need_to_remove)
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3058106230
2026-04-10 15:56:47 -05:00
Eric Eastwood d377011282 Grab need_to_remove from violation
As planned in https://github.com/element-hq/matrix-authentication-service/pull/5553
2026-04-10 15:55:38 -05:00
Eric Eastwood d8b0e877f4 Better test description 2026-04-10 15:22:48 -05:00
Eric Eastwood 93312fb97b Add tests for old vs recent 2026-04-09 21:36:39 -05:00
Eric Eastwood dfe77c4b82 Cheeky filter inactive
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3057979830
2026-04-09 19:45:02 -05:00
Eric Eastwood 37a1a46d54 Add future FIXME to expose violations
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3058112947
2026-04-09 17:50:19 -05:00
Eric Eastwood 9284324663 Use slice pattern matching
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3058047468
2026-04-09 17:22:10 -05:00
Eric Eastwood 9b3e78909a Fix cargo doc not being able to resolve ExperimentalSessionLimitConfig
Fix https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3047813509
2026-04-09 16:58:08 -05:00
Eric Eastwood 594ab210a2 Add some docs for debugging policies 2026-04-09 16:19:17 -05:00
Eric Eastwood fcf6591588 Pass in session_limit to policy as BaseData 2026-04-09 11:01:53 -05:00
Eric Eastwood 8a3acae1ae Revert "Pass in session_limit_config directly to policy"
This reverts commit 724e0cf5ca.
2026-04-09 10:08:31 -05:00
Eric Eastwood a080e95bc0 Better clippy::uninlined_format_args 2026-04-07 15:56:22 -05:00
Eric Eastwood d02b216d72 Run cargo +nightly fmt 2026-04-07 15:45:38 -05:00
Eric Eastwood 3e76fe92e9 Tighten up descriptions 2026-04-06 19:36:27 -05:00
Eric Eastwood 12b837fc80 Assert most recent 2026-04-06 19:29:18 -05:00