Jason Volk
1664a2c225
Implement refresh-tokens. ( resolves #50 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-01 09:14:58 +00:00
Jason Volk
0fcb072239
Refactor counter increment sites for TwoPhaseCounter.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-25 10:32:52 +00:00
orhtej2
2ead282bec
Dedup entries returned by LDAP
2025-06-29 04:02:41 +00:00
orhtej2
84acdccb93
Other typo
2025-06-29 01:20:02 +02:00
orhtej2
6164f62395
Fix optional admin config
2025-06-29 01:16:51 +02:00
Jason Volk
b3a47566ff
Move and rename 'token' to 'access_token' where applicable.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-06-18 01:02:22 +00:00
Jason Volk
7e8c4c8883
Fix password reset regression. ( 78a02edbbf) ( fixes #70 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-06-17 03:41:27 +00:00
Jason Volk
8a83c23537
Split tuwunel_service::users into units.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-06-06 22:41:01 +00:00
RatCornu
71ebf1e71a
feat: add admin support for LDAP login
2025-05-14 07:14:20 +00:00
nexy7574
8386cbbb96
Don't serialize the x-key before storing it
...
Co-authored-by: dasha <admin@dimensionproject.net >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-11 07:02:14 +00:00
Jason Volk
f242ebdb04
Fix LDAP configuration default semantics. ( fixes #30 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-28 22:44:16 +00:00
Jason Volk
7665d47e59
Add feature-gate for ldap.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-28 07:23:57 +00:00
RatCornu
448ac63a21
feat: add ldap config
...
feat: add LDAP login and user creation
feat: add diagnostic commands
Co-authored-by: Jason Volk <jason@zemos.net >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-28 07:23:15 +00:00
RatCornu
78a02edbbf
feat: add userid_origin field in the database
2025-04-24 11:52:59 +00:00
Jason Volk
5bcf3550ab
attr_fn_like_width to 60
...
note the default is documented as 70 but this was not being honored by rustfmt
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-24 02:00:00 +00:00
Jason Volk
76509830e6
chain_width to 50
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-22 04:42:34 +00:00
Jason Volk
9b658d86b2
Rename crates.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-22 04:37:49 +00:00
June Clementine Strawberry
94b107b42b
add some debug logging and misc cleanup to keys/signatures/upload
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 16:08:18 -04:00
June Clementine Strawberry
24be579477
add appservice MSC4190 support
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 12:21:16 -04:00
June Clementine Strawberry
d0c767c23c
fix a few things to make some complement tests pass
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 01:43:49 -05:00
June Clementine Strawberry
a1e1f40ded
run cargo fix for rust 2024 changes and rustfmt
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 01:17:45 -05:00
morguldir
8085a1c064
Implement MSC3967, also fixes error when uploading keys in element
...
Co-authored-by: Aiden McClelland <me@drbonez.dev >
Signed-off-by: morguldir <morguldir@protonmail.com >
2025-02-22 16:46:06 +01:00
Jason Volk
5e59ce37c4
snapshot sync results at next_batch upper-bound
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
a774afe837
modernize remove_to_device_events
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
strawberry
5b8464252c
cleanup+fix login get_token code, use db ser/deser instead
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-17 17:40:53 -05:00
Jade Ellis
2cc6ad8df3
implement /login/get_token (MSC3882)
2025-01-17 17:40:53 -05:00
Jason Volk
77d7e8a3ad
add json array to serde_json::Value db deserialization without Raw
2025-01-02 06:52:32 +00:00
strawberry
72797532b6
fix MSC4133 fields not being returned as original types
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-01 23:28:01 -05:00
Jason Volk
0a9b6c136f
refactor for ruma identifiers optimizations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
strawberry
77e0b76408
apply new rustfmt.toml changes, fix some clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:00:41 -05:00
strawberry
0317cc8cc5
rename conduit to conduwuit finally
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-14 22:24:45 -05:00
strawberry
1b9c331049
use database::Json() to serialise MSC4133 profile value before insert
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 11:13:21 -05:00
strawberry
c9bb943a34
mark device list updates when a device is deleted/removed
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 21:25:40 -05:00
Jason Volk
b77a1eb079
move cork to remove_to_device_events fn
...
add cork around write-heavy database routine called in loop; cleanup
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
58be22e695
fix new lints; clippy::unnecessary-map-or
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 06:58:45 +00:00
Jason Volk
cc86feded3
bump ruma
...
fixes for key type changes
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +00:00
Jason Volk
a74461fc9a
split keys_changed for stronger-type overloads
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
2ed0c267eb
Refactor for structured insertions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
8258d16a94
re-scheme naming of stream iterator overloads
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
57e0a5f65d
additional database stream deserializations for serde_json::from_ elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
da34b43302
abstract account-data deserializations for serde_json::from_elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
strawberry
4eb7ad79d1
update last_seen_ip and last_seen_ts on updating device metadata
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
890ee84f71
dont send read receipts and typing indicators from ignored users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
Jason Volk
26dcab272d
various cleanup tweaks/fixes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
c569881b08
merge rooms/short Data w/ Service; optimize queries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:28 -04:00
Jason Volk
5192927a53
split remaining map suites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:33 -04:00
Jason Volk
4776fe66c4
handle serde_json for deserialized()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:33 -04:00
Jason Volk
946ca364e0
Database Refactor
...
combine service/users data w/ mod unit
split sliding sync related out of service/users
instrument database entry points
remove increment crap from database interface
de-wrap all database get() calls
de-wrap all database insert() calls
de-wrap all database remove() calls
refactor database interface for async streaming
add query key serializer for database
implement Debug for result handle
add query deserializer for database
add deserialization trait for option handle
start a stream utils suite
de-wrap/asyncify/type-query count_one_time_keys()
de-wrap/asyncify users count
add admin query users command suite
de-wrap/asyncify users exists
de-wrap/partially asyncify user filter related
asyncify/de-wrap users device/keys related
asyncify/de-wrap user auth/misc related
asyncify/de-wrap users blurhash
asyncify/de-wrap account_data get; merge Data into Service
partial asyncify/de-wrap uiaa; merge Data into Service
partially asyncify/de-wrap transaction_ids get; merge Data into Service
partially asyncify/de-wrap key_backups; merge Data into Service
asyncify/de-wrap pusher service getters; merge Data into Service
asyncify/de-wrap rooms alias getters/some iterators
asyncify/de-wrap rooms directory getters/iterator
partially asyncify/de-wrap rooms lazy-loading
partially asyncify/de-wrap rooms metadata
asyncify/dewrap rooms outlier
asyncify/dewrap rooms pdu_metadata
dewrap/partially asyncify rooms read receipt
de-wrap rooms search service
de-wrap/partially asyncify rooms user service
partial de-wrap rooms state_compressor
de-wrap rooms state_cache
de-wrap room state et al
de-wrap rooms timeline service
additional users device/keys related
de-wrap/asyncify sender
asyncify services
refactor database to TryFuture/TryStream
refactor services for TryFuture/TryStream
asyncify api handlers
additional asyncification for admin module
abstract stream related; support reverse streams
additional stream conversions
asyncify state-res related
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:30 -04:00
strawberry
d75aebc373
implement generic K-V support for MSC4133, GET/PUT/DELETE
...
no PATCH still yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-14 11:16:49 -04:00
strawberry
f163ebf3bb
implement MSC4133 only with MSC4175 for GET/PUT/DELETE
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 09:27:35 -04:00