Commit Graph

6944 Commits

Author SHA1 Message Date
Eric Eastwood 041d9ad01d Fix lints and automatic updates 2026-04-22 18:31:41 -05:00
Eric Eastwood ebd0493cf5 Conditional NavBar device limit error 2026-04-22 18:27:47 -05:00
Eric Eastwood 69258452e5 Add session limit errors on account -> devices page 2026-04-22 18:19:55 -05:00
Eric Eastwood 8706b6203a Add session limit info icon 2026-04-22 17:45:03 -05:00
Eric Eastwood 6dce03e27d Pipe session_limit to frontend 2026-04-17 18:22:32 -05:00
Eric Eastwood d1edf64dda Add header showing total number of devices 2026-04-17 17:49:20 -05:00
Eric Eastwood 3042a64ae9 Enforce hard_limit >= soft_limit 2026-04-17 17:03:08 -05:00
Eric Eastwood 3de9575203 Add styles to error icon in nav bar 2026-04-17 16:29:16 -05:00
Eric Eastwood f82034ef33 Prototype error in navbar 2026-04-17 15:54:02 -05:00
Eric Eastwood bc1e71baa3 Merge branch 'main' into madlittlemods/hard_limit_eviction 2026-04-13 17:00:02 -05:00
Quentin Gliech 4b1f54f9de Upgrade opa-wasm and wasmtime to close a few advisories (#5630) 2026-04-13 23:59:16 +02: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 1ff9d288d8 Allow clippy uninlined_format_args
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3075627261
2026-04-13 15:31:57 -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 aefe87e87f Update skip list in deny.toml
We should eventually update more crates to get versions aligned, as well
as plan a rand 0.10 upgrade, but this isn't a priority right now.
2026-04-13 18:24:08 +02:00
Quentin Gliech cfe3b70404 Upgrade rand to 0.9.4
See https://rustsec.org/advisories/RUSTSEC-2026-0097
2026-04-13 18:12:04 +02: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 eb813cbe49 Fix spacing typo 2026-04-10 16:19:22 -05:00
Eric Eastwood b1cb96dd83 Lint/format policies
- `make DOCKER=1 fmt`
 - `make DOCKER=1 lint`
2026-04-10 16:02:00 -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 21566b769d Add some docs for debugging policies (#5620) 2026-04-10 15:19:24 -05:00
Eric Eastwood 25efb0cc4e Merge branch 'main' into madlittlemods/debug-policy-data 2026-04-10 14:56:48 -05:00
Olivier 'reivilibre 2105226034 build(deps): bump docker/bake-action from 7.0.0 to 7.1.0 (#5624) 2026-04-10 17:08:00 +00:00
Olivier 'reivilibre cac4a9ca4c build(deps): bump EmbarkStudios/cargo-deny-action from 2.0.15 to 2.0.16 (#5623) 2026-04-10 17:07:42 +00:00
Eric Eastwood ccf139f127 Merge branch 'main' into madlittlemods/hard_limit_eviction 2026-04-10 10:03:55 -05:00
dependabot[bot] a804d3ecb7 build(deps): bump docker/bake-action from 7.0.0 to 7.1.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v7.0.0...v7.1.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-10 13:54:10 +00:00
dependabot[bot] 671a676dfd build(deps): bump EmbarkStudios/cargo-deny-action from 2.0.15 to 2.0.16
Bumps [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases)
- [Commits](https://github.com/embarkstudios/cargo-deny-action/compare/v2.0.15...v2.0.16)

---
updated-dependencies:
- dependency-name: EmbarkStudios/cargo-deny-action
  dependency-version: 2.0.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-10 13:54:03 +00:00
Eric Eastwood 5e759925c8 Run sh misc/update.sh 2026-04-09 21:48:09 -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
Quentin Gliech db8ee567c0 build(deps-dev): bump the storybook group in /frontend with 3 updates (#5617) 2026-04-10 00:21:53 +02: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
dependabot[bot] 179088157c build(deps-dev): bump the storybook group in /frontend with 3 updates
Bumps the storybook group in /frontend with 3 updates: [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/docs), [@storybook/react-vite](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/react-vite) and [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/core).


Updates `@storybook/addon-docs` from 10.3.3 to 10.3.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.3.5/code/addons/docs)

Updates `@storybook/react-vite` from 10.3.3 to 10.3.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.3.5/code/frameworks/react-vite)

Updates `storybook` from 10.3.3 to 10.3.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.3.5/code/core)

---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
  dependency-version: 10.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/react-vite"
  dependency-version: 10.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: storybook
  dependency-version: 10.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-09 13:55:38 +00:00
Quentin Gliech cc0903eb78 build(deps): bump the tanstack-query group in /frontend with 2 updates (#5597) 2026-04-09 12:44:49 +02:00
dependabot[bot] 1be57edfd6 build(deps): bump the tanstack-query group in /frontend with 2 updates
Bumps the tanstack-query group in /frontend with 2 updates: [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) and [@tanstack/react-query-devtools](https://github.com/TanStack/query/tree/HEAD/packages/react-query-devtools).


Updates `@tanstack/react-query` from 5.90.21 to 5.96.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Changelog](https://github.com/TanStack/query/blob/main/packages/react-query/CHANGELOG.md)
- [Commits](https://github.com/TanStack/query/commits/@tanstack/react-query@5.96.0/packages/react-query)

Updates `@tanstack/react-query-devtools` from 5.91.3 to 5.96.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Changelog](https://github.com/TanStack/query/blob/main/packages/react-query-devtools/CHANGELOG.md)
- [Commits](https://github.com/TanStack/query/commits/@tanstack/react-query-devtools@5.96.0/packages/react-query-devtools)

---
updated-dependencies:
- dependency-name: "@tanstack/react-query"
  dependency-version: 5.96.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: tanstack-query
- dependency-name: "@tanstack/react-query-devtools"
  dependency-version: 5.96.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: tanstack-query
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-09 10:18:17 +00:00
Quentin Gliech b9b10bb108 build(deps): bump docker/login-action from 4.0.0 to 4.1.0 (#5604) 2026-04-09 12:15:27 +02:00
Quentin Gliech ddf704fe00 build(deps): bump the tanstack-router group across 1 directory with 3 updates (#5596) 2026-04-09 12:15:04 +02:00
Quentin Gliech a70356d35f build(deps): bump the i18next group across 1 directory with 3 updates (#5595) 2026-04-09 12:14:48 +02:00