1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-07 22:41:18 +03:00
Commit Graph

965 Commits

Author SHA1 Message Date
e63a21b9f9 Be consistent when constructing signers/verifier from JWK and from the keystore 2022-10-18 10:33:06 +02:00
c2a198b821 Fix RSA JWT signature and add snapshot tests for JWT signature 2022-10-18 10:33:06 +02:00
cf6d5a076a Use new tuple Layer impls instead of ServiceBuilder (#475)
Co-authored-by: Quentin Gliech <quenting@element.io>
2022-10-17 16:48:12 +02:00
51515358f7 Make more enum types accept unknown values 2022-10-17 14:15:35 +02:00
10297d29bb Make Scope use a BTreeSet internally 2022-10-17 14:12:59 +02:00
99f2ca3d57 Derive Clone for http requests structs
So they don't prevent a Service from implementing Clone.
2022-10-17 12:47:43 +02:00
0829ab7e27 Fix imports used by feature-gated code 2022-10-17 12:47:20 +02:00
16ffb42ec0 Fix building on Rust 1.61 2022-10-17 11:39:45 +02:00
d1a4262fd0 Fix clippy warning 2022-10-17 11:39:45 +02:00
90baf7fe29 rustfmt 2022-10-17 11:39:45 +02:00
164a2d854e Advertise h2 ALPN in demo 2022-10-17 11:39:45 +02:00
7986037b59 Way better mas-listener demo 2022-10-17 11:39:45 +02:00
ee43f08cf7 Rewrite the listeners crate
Now with a way better graceful shutdown! With proper handshakes!
2022-10-17 11:39:45 +02:00
485778beb3 Inject connection informations in the request extension 2022-10-17 11:39:45 +02:00
fc5c8314b5 Fix handlers tests 2022-10-17 11:39:45 +02:00
f687ae4ac4 HAProxy's Proxy Protocol acceptor 2022-10-17 11:39:45 +02:00
9309f04880 Fix building on older Rust versions 2022-10-17 11:39:45 +02:00
7e288c0c5d Have the listeners names in the metrics and traces
Also refactors the OTEL layer to have a separate metrics logic
2022-10-17 11:39:45 +02:00
c548417752 Refactor listeners building 2022-10-17 11:39:45 +02:00
014a8366ed Export Prometheus metrics on regular listeners 2022-10-17 11:39:45 +02:00
84ac87f551 WIP: better listeners
- listen on UNIX domain sockets
- handle TLS stuff
- allow mounting only some resources
2022-10-17 11:39:45 +02:00
7fbfb74a5e WIP: better HTTP listeners 2022-10-17 11:39:45 +02:00
93ce5c797c Mount the static assets on /assets 2022-10-17 11:39:45 +02:00
eeae943208 Drop the config schema generation subcommand & include it in the docs 2022-10-17 10:43:07 +02:00
f5e3aa0404 Migrate to clap v4 2022-09-29 14:33:40 +02:00
645d019d10 Bump clap from 3.2.22 to 4.0.2
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.22 to 4.0.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.22...v4.0.2)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-29 14:33:40 +02:00
4d9f1be58f Bump thiserror from 1.0.36 to 1.0.37
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.36...1.0.37)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-29 14:15:07 +02:00
c189135dea Bump ecdsa from 0.14.7 to 0.14.8
Bumps [ecdsa](https://github.com/RustCrypto/signatures) from 0.14.7 to 0.14.8.
- [Release notes](https://github.com/RustCrypto/signatures/releases)
- [Commits](https://github.com/RustCrypto/signatures/compare/ecdsa/v0.14.7...ecdsa/v0.14.8)

---
updated-dependencies:
- dependency-name: ecdsa
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-29 13:53:36 +02:00
f716eddea9 Bump tokio from 1.21.1 to 1.21.2
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.21.1 to 1.21.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.1...tokio-1.21.2)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-29 13:52:45 +02:00
954e163936 Fix parsing and deserialization of AuthenticationMethodOrAccessTokenType 2022-09-28 13:43:39 +02:00
80d317f23c Add variants for unknown values on mas-iana types
Remove the Copy derive and mark enums as non-exhaustive.
2022-09-28 13:43:39 +02:00
9e3b3567b2 Gate the prometheus exporter behind a feature
Also fixes the Docker image building and the CI builds
2022-09-28 11:13:53 +02:00
e9fd0eb36a Move the in-flight counter decrement to a drop guard 2022-09-28 11:13:53 +02:00
56fdb64a84 HTTP metrics & other stuff 2022-09-28 11:13:53 +02:00
3901829ccd Prometheus exporter & other stuff 2022-09-28 11:13:53 +02:00
7dd84a6584 WIP: bump OTEL 2022-09-28 11:13:53 +02:00
dc4b66a96c Bump k256 from 0.11.5 to 0.11.6
Bumps [k256](https://github.com/RustCrypto/elliptic-curves) from 0.11.5 to 0.11.6.
- [Release notes](https://github.com/RustCrypto/elliptic-curves/releases)
- [Commits](https://github.com/RustCrypto/elliptic-curves/compare/k256/v0.11.5...k256/v0.11.6)

---
updated-dependencies:
- dependency-name: k256
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-28 00:24:21 +02:00
1bbd2c2970 Allow access token types in introspection auth methods 2022-09-27 19:11:32 +02:00
7b819ffa8b Simplify the HTTP client building
Also supports loading the WebPKI roots instead of the native ones for
TLS
2022-09-27 19:05:25 +02:00
a663deb7e1 Bump autoprefixer from 10.4.11 to 10.4.12 in /crates/static-files
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.11 to 10.4.12.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.11...10.4.12)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-27 18:56:56 +02:00
2a737ec04f Bump AWS crates 2022-09-27 18:30:25 +02:00
348912b3fb Bump Crypto crates 2022-09-27 18:27:52 +02:00
19721959f8 Export list of supported algorithms from mas-jose 2022-09-16 11:48:06 +02:00
940ab48819 Add types for the Device Authorization flow 2022-09-16 11:47:31 +02:00
2e8f233ac5 Fix intra-doc broken link in mas-jose 2022-09-16 11:45:53 +02:00
aeed84cac2 Bump autoprefixer from 10.4.9 to 10.4.11 in /crates/static-files
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.9 to 10.4.11.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.9...10.4.11)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-15 07:34:10 +02:00
93c75c09e3 Bump tokio from 1.21.0 to 1.21.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.21.0 to 1.21.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.0...tokio-1.21.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 09:05:25 +02:00
b3e44b4241 Bump thiserror from 1.0.34 to 1.0.35
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.34 to 1.0.35.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.34...1.0.35)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 08:42:55 +02:00
2b570158ea Bump clap from 3.2.20 to 3.2.21
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.20 to 3.2.21.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.21/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.20...v3.2.21)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 08:21:10 +02:00
6cff677550 Properly advertise all the supported JWT verification algorithms 2022-09-13 15:19:19 +02:00