Ginger
30c9d6d2df
chore: Clippy fixes
2026-05-26 18:26:02 +00:00
Ginger
74841b6711
refactor: Represent route auth information in the type system
2026-05-26 18:26:02 +00:00
timedout
dabbdc7517
fix: Don't be so aggressive when validating policy server signatures
2026-05-26 16:16:48 +01:00
Renovate Bot
793d399477
chore(deps): update node-patch-updates to v2.0.13
2026-05-26 13:12:29 +00:00
Renovate Bot
15d69aefbb
chore(deps): update rust crate minicbor-serde to 0.7.0
2026-05-26 13:12:09 +00:00
Renovate Bot
77b1652f4a
chore(deps): lock file maintenance
2026-05-26 11:59:18 +00:00
Renovate Bot
5f9594363d
chore(deps): update github-actions-digest
2026-05-26 05:18:06 +00:00
timedout
5cba4b126f
style: Combine "unsupported version" checks
2026-05-25 19:44:40 +01:00
timedout
d8a7f7c7ca
perf: Skip updating child/parent spaces in upgrade when sender is not joined
2026-05-25 19:40:15 +01:00
timedout
d3fca86dec
style: Drop unstable prefix in function definitions
2026-05-25 19:38:17 +01:00
timedout
5f88abf341
fix: Correctly copy parents and children during upgrade
2026-05-25 19:37:29 +01:00
timedout
416814094c
fix: Correctly update space children on upgrade
2026-05-25 19:37:29 +01:00
timedout
5b8799e71f
fix: Include sender in older room versions
2026-05-25 19:37:29 +01:00
timedout
cc5349ee57
fix: Don't de-power creators when downgrading from v12 to earlier versions
2026-05-25 19:37:29 +01:00
timedout
7b68572b2e
fix: Don't give v12 rooms room IDs
2026-05-25 19:37:29 +01:00
timedout
057eb9f644
fix: Adhere to MSC4168 more strongly & in definition order
2026-05-25 19:37:29 +01:00
timedout
253603edbc
refactor: Fix several bugs in upgrade endpoint, update MSC4168 impl
2026-05-25 19:37:25 +01:00
timedout
b771b9d160
style: Fix typo
2026-05-25 18:26:48 +01:00
timedout
eb829c2951
fix: Ensure event_id is correctly stripped before verifying policy server signature
2026-05-25 18:20:57 +01:00
timedout
d32b39181a
fix: Don't return early if the policy server does something stupid
...
Spec compliance is for nerds I guess
2026-05-25 18:17:41 +01:00
timedout
72b99a1f84
style: Reformat
2026-05-25 18:17:40 +01:00
timedout
ae37f218a2
perf: Avoid cloning incoming PDUs to check them
...
Also allows us to store signatures on PDUs received over federation that we got a fresh signature for
2026-05-25 18:17:29 +01:00
timedout
40cecca103
feat: Add extract_signature helper
2026-05-25 18:17:13 +01:00
timedout
2a80a82f74
style: Document functions
2026-05-25 18:17:13 +01:00
timedout
fbf4eac2dc
fix: Ensure event_id is removed before policy-checking event
2026-05-25 18:17:13 +01:00
timedout
4784010702
fix: Ensure policy server signed with the correct key
2026-05-25 18:17:13 +01:00
timedout
1c88854a54
feat: Enable shutdown interrupt in ratelimit handler
2026-05-25 18:17:12 +01:00
timedout
e0fe71c708
feat: Follow spec more closely, code clean up, use ruma request type
2026-05-25 18:17:12 +01:00
timedout
0f0dcb4f58
fix: Return Forbidden instead of internal error when PS doesn't sign
2026-05-25 18:17:12 +01:00
timedout
367c42ad28
fix: Treat malformed policy config events as missing
2026-05-25 18:17:12 +01:00
timedout
c8e0f7ebd3
style: Reformat
2026-05-25 18:17:10 +01:00
timedout
fdc9aec534
fix: Verify policy server signatures on all events, not just timeline ones
...
style: Clarifications
style: Clippy
2026-05-25 18:16:55 +01:00
timedout
5f9cc83b18
feat: Support advertising a policy server public key in well-known
...
# Conflicts:
# src/api/client/well_known.rs
# src/core/config/mod.rs
2026-05-25 18:14:58 +01:00
timedout
47051af392
feat: Update policy server implementation to be closer to latest spec
...
Untested
chore: Add news fragment
feat: Support stable policy servers
feat: Don't attempt erroneous loopback federation for policy server checks
refactor: Update PS upgrade to use new ruma
fix: Only check loopback via after attempting incoming verification
2026-05-25 18:14:54 +01:00
timedout
c1a6e649da
feat: Combine local & remote force join
2026-05-25 18:01:08 +01:00
timedout
1d172be503
style: Authentication -> authorization
2026-05-25 17:55:44 +01:00
timedout
f01e119890
style: Make graph output easier to comprehend
2026-05-25 17:53:53 +01:00
timedout
4d27a935d6
perf: Move rejected events check
2026-05-25 17:27:56 +01:00
timedout
512a96f832
style: Warn -> debug_warn
2026-05-25 17:18:25 +01:00
timedout
6715f63acc
fix: Don't serve events over s2s that are rejected
2026-05-25 17:18:25 +01:00
timedout
3764faeefc
style: Reformat
2026-05-25 17:18:25 +01:00
timedout
5d4b7bfea3
fix: Store PDUs as outliers even when rejected
...
This prevents future network lookups if we've already rejected an event and see a reference to it again
2026-05-25 17:18:24 +01:00
timedout
4df08779e3
chore: Update newsfrag
2026-05-25 17:18:24 +01:00
timedout
6b835a327d
style: Rename unmark_pdu to clear_pdu_markers
2026-05-25 17:18:24 +01:00
timedout
7dd61cd560
feat: Add !admin debug show-auth-chain
...
Because why not am I right lads
2026-05-25 17:18:24 +01:00
timedout
d9535eccf1
feat: Make !admin debug get-pdu more informative
2026-05-25 17:18:24 +01:00
timedout
a97f91e079
fix: Don't hard fail on events which depend on soft-failed events
2026-05-25 17:18:24 +01:00
timedout
f0401b4fc7
fix: Mark events as rejected in more places, correct soft-fail extremity behaviour
2026-05-25 17:18:24 +01:00
timedout
cda64b880a
chore: Add news fragment for 1747
...
Co-Authored-By: star <star@nexy7574.co.uk >
2026-05-25 17:18:23 +01:00
timedout
1f6cab9e2e
feat: Implement event rejection
...
Co-Authored-By: star <star@nexy7574.co.uk >
2026-05-25 17:18:23 +01:00
Renovate Bot
afa80576f4
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v43.195.3
2026-05-25 05:17:59 +00:00
Henry-Hiles
5a63eb729c
fix: disable rocksdb on nix by default
2026-05-24 12:16:19 -04:00
Henry-Hiles
27da50136e
chore: cleanup unused args in nix package
2026-05-24 10:48:38 -04:00
Bart Oostveen
db724b67ff
fix: use in-flake version of rocksdb instead of nixpkgs' upstream package
...
Fixes #1801
2026-05-23 20:00:40 +02:00
Renovate Bot
14a0d2f538
chore(deps): update rust crate serde_json to v1.0.150
2026-05-22 15:26:55 +00:00
Renovate Bot
3b9932e09c
chore(deps): update rust crate built to v0.8.1
2026-05-22 05:04:25 +00:00
new-years-eve
02409c06b8
feat: Add config check to make sure default ACL doesn't self-ban the server
2026-05-21 17:09:43 +00:00
new-years-eve
bb51db0d7d
add changelog
2026-05-21 17:09:43 +00:00
new-years-eve
834f2caffe
feat: Add config option for a default ACL on room creation
...
This allows for rooms to be created with a m.room.server_acl event by
default. This event can be thought of as part of the initial_state
events, although it is not provided by the client.
Implements #775
2026-05-21 17:09:43 +00:00
Renovate Bot
202786c46b
chore(deps): update rust crate either to v1.16.0
2026-05-21 15:53:08 +00:00
Ginger
035bfea93c
fix: Correct error code
2026-05-21 12:11:03 +00:00
Ginger
185f8c42dc
fix: Properly check forbidden_remote_server_names for incoming requests
2026-05-21 12:11:03 +00:00
Ginger
d5fc81d39e
fix: Remove check for active user when propagating profile updates
2026-05-21 12:10:58 +00:00
Ginger
1cd0228d87
fix: Restore functionality of require_auth_for_profile_requests
2026-05-21 12:10:48 +00:00
Ginger
4968d4c8b7
docs: Clarify documentation for require_email_for_registration
2026-05-21 12:10:44 +00:00
Renovate Bot
bb6ec1f352
chore(deps): update node-patch-updates to v2.0.12
2026-05-19 21:17:07 +00:00
renovate
14602e730e
chore(Nix): Updated flake hashes
2026-05-19 19:42:59 +00:00
Jade Ellis
cdaca69f3a
chore: Update renovate config
2026-05-19 20:40:02 +01:00
Jade Ellis
9c1d5b3e95
chore: Upgrade RocksDB to 11.1.1
2026-05-19 20:30:49 +01:00
Jade Ellis
3987331c3b
chore: Fix clippy warnings
2026-05-19 20:26:04 +01:00
Jade Ellis
cb3ebcf24e
chore: Upgrade rust
...
This also upbrades the debian version to trixie, because the new LLVM
version doesn't seem to have a build
2026-05-19 20:22:21 +01:00
Jade Ellis
2d4bf1b35f
chore: Upgrade deps
2026-05-19 19:28:59 +01:00
aviac
388cbeb60e
build(nix): allow overriding TARGET_CPU
2026-05-19 09:58:48 +00:00
Jade Ellis
b4e104925d
fix(ci): Ignore changelog entries in the autolabeller
2026-05-19 10:57:39 +01:00
Renovate Bot
14c1d37b47
chore(deps): update rust crate dtor to v1
2026-05-18 05:05:09 +00:00
timedout
1bba4fd252
style: Reformat
2026-05-18 03:15:15 +01:00
timedout
8af0662a18
feat: Verify custom room ID has been used after creating the room
2026-05-18 01:21:13 +01:00
timedout
2804278e9b
fix: Restore custom room ID functionality
2026-05-18 01:05:12 +01:00
Jade
7c36bd54f5
chore: Revert 8e9c7c1a3b
...
revert chore(deps): update opentelemetry-rust monorepo to 0.32.0 - multiple otel sdk versions
2026-05-17 08:35:25 +00:00
Renovate Bot
8e9c7c1a3b
chore(deps): update opentelemetry-rust monorepo to 0.32.0
2026-05-16 19:55:09 +00:00
Renovate Bot
8fe8438f5d
chore(deps): update pre-commit hook crate-ci/typos to v1.46.2
2026-05-16 19:17:04 +00:00
Jade
a7d4f3537b
chore(deps): Update renovate
2026-05-16 19:06:33 +00:00
Renovate Bot
18789f9aea
chore(deps): lock file maintenance
2026-05-16 19:01:45 +00:00
Renovate Bot
2f50f1fc2a
chore(deps): update https://github.com/taiki-e/install-action digest to 3771e22
2026-05-16 17:11:05 +00:00
Renovate Bot
669efe092f
chore(deps): update https://github.com/taiki-e/install-action digest to 184183c
2026-05-16 17:04:58 +00:00
31a05b9c
820485da57
fix: reliance on external constants being stable
2026-05-16 10:43:24 +00:00
Renovate Bot
466c98677c
chore(deps): update rust-zerover-patch-updates
2026-05-15 05:04:30 +00:00
Renovate Bot
4d9cfc0afe
chore(deps): update rust crate serde-saphyr to 0.0.26
2026-05-14 13:22:37 +00:00
Ginger
ba2c123e82
feat: Remove support for server-side blurhashing
2026-05-14 13:22:17 +00:00
Renovate Bot
384ddc89d1
chore(deps): update https://github.com/softprops/action-gh-release action to v3
2026-05-13 23:13:38 +00:00
Renovate Bot
a023d2d306
chore(deps): update https://github.com/cloudflare/wrangler-action action to v4
2026-05-13 23:13:13 +00:00
Renovate Bot
61b080d1ef
chore(deps): update https://github.com/regclient/actions digest to c70ad64
2026-05-13 23:12:32 +00:00
Renovate Bot
00d7d4a54f
chore(deps): update https://github.com/taiki-e/install-action digest to 3235f89
2026-05-13 23:10:50 +00:00
stratself
c4a35e0f4d
docs(livekit): Let users see troubleshoot command first for docker
...
Signed-off-by: stratself <stratself@noreply.forgejo.ellis.link >
2026-05-13 23:10:34 +00:00
stratself
86cb9b331a
docs(dns): Rephrase some stuff
...
* Rename "Using a forwarder" to "Recursion vs forwarding"
* Un-highlight DoT and put it in the unbound.conf snippet
* Small wording improvements for Technitium section
* Highlights dns_cache_entries=0 recommendation above others
2026-05-13 23:10:34 +00:00
stratself
277f85f0b0
docs(contributing): Capitalise commit messages following prek formatting
2026-05-13 23:10:34 +00:00
stratself
497ec44c94
docs: Link to maintenance pages for Generic and Docker guides
2026-05-13 23:10:34 +00:00
stratself
7c837cc694
docs(docker): Add logcheck command and disable federation for quick run
2026-05-13 23:10:34 +00:00
stratself
98fb766bc2
docs(livekit): Fix curl command, remove console formats, other changes
...
* Add hint to use browser DevTools for browser clients
* Include docker-compose logs command in Testing section
2026-05-13 23:10:34 +00:00
Ginger
6f83925a4f
fix: Use correct service name in membership service
2026-05-13 08:53:15 -04:00
31a05b9c
e349dd284f
chore: changelog
2026-05-12 14:18:35 +00:00
31a05b9c
c57fe66d8d
fix: query account-data account-data-get output
2026-05-12 14:18:35 +00:00
Ginger
ff28fd0927
fix: Disable debugging parameter in Askama template
2026-05-12 14:17:23 +00:00
Ginger
7307f2dc80
fix: Remove deprecated MatrixRTC focus config option
2026-05-12 14:17:23 +00:00
Renovate Bot
6f56b665e7
chore(deps): update ruma digest to 9c9dccc
2026-05-12 14:17:23 +00:00
Renovate Bot
7018ce4180
chore(deps): update node-patch-updates to v2.0.11
2026-05-12 05:02:17 +00:00
timedout
10dd8bebfe
fix: Don't advertise stable MSC2666
...
Turns out ruma doesn't have the stable definition yet, will need a version bump.
Reverts 088fa3e725
2026-05-11 23:27:00 +01:00
Henry-Hiles
1658b3bf6c
chore: Add changelog
2026-05-10 03:48:25 +00:00
Henry-Hiles
088fa3e725
fix: Use stable ID for Mutual Rooms support
2026-05-10 03:48:25 +00:00
Henry-Hiles
4694186c97
fix: Link to community guidelines in CoC file
2026-05-09 16:53:03 -04:00
Renovate Bot
a5c61d5137
chore(deps): update pre-commit hook crate-ci/typos to v1.46.1
2026-05-09 05:03:19 +00:00
Ginger
39a882c4a1
chore: Clippy fixes
2026-05-08 12:41:57 -04:00
Ginger
f091d3a732
fix: Correctly check for local users' existence
2026-05-08 11:48:20 -04:00
nex
ebf9a08cd1
fix: Correct typo that prevented state compressor service being loaded
2026-05-08 03:10:28 +00:00
timedout
4fef0a7ff2
chore: Publish admin announcement
2026-05-08 00:20:23 +01:00
timedout
2f37b446bc
chore: Bump version
2026-05-07 22:27:44 +01:00
timedout
6185841b6a
fix: Restore event auth check 4 in v12 rooms
...
Reviewed-By: Jacob Taylor <jacob@explodie.org >
2026-05-07 21:10:32 +01:00
Renovate Bot
3e0d4b066e
chore(deps): update dependency cargo-bins/cargo-binstall to v1.19.1
2026-05-07 16:10:45 +00:00
Ginger
0d2eeed567
refactor: Move room joining logic into a new service
2026-05-06 14:01:50 -04:00
31a05b9c
b296720540
chore: alter wording
2026-05-06 17:25:45 +00:00
31a05b9c
d600aed8db
chore: changelog
2026-05-06 17:25:45 +00:00
31a05b9c
9724953b5e
feat: admin commands for mass-rejecting invites
2026-05-06 17:25:45 +00:00
stratself
1605176956
docs(perf): Improve introduction wording
2026-05-06 09:03:14 +00:00
stratself
2b0aedf5fd
chore: Fix changelog newline
2026-05-06 09:03:14 +00:00
stratself
c78c431703
fix(docs): Small wording fixes in perf tuning page
2026-05-06 09:03:13 +00:00
stratself
49b48b857d
docs(perf): Change compression warning to SHOULD and better notes on
...
trusted_servers verification
2026-05-06 09:03:13 +00:00
stratself
bf1e42b225
docs(perf): Remove section on .well-known
...
It is not a clear performance gain, and should be added
later in delegation.mdx
2026-05-06 09:03:13 +00:00
stratself
ec76a234db
docs(perf): Various changes from feedback
...
* Only recommend turning off all presences
* Add example trusted_servers and notice to vet them
* Add explained benefits of HTTP/3
* Some grammar nits
2026-05-06 09:03:13 +00:00
stratself
091514e9f9
docs(perf): Grammar/wording edits from feedback
...
Also combined the introductory paragraphs into one
2026-05-06 09:03:13 +00:00
stratself
789ad499f7
fix: Grammar + wording for perftuning page from feedback
2026-05-06 09:03:13 +00:00
stratself
1e6eaa4337
fix(docs): Remove sysctl and limits.conf recs from perf tuning
2026-05-06 09:03:13 +00:00
stratself
de97900b07
chore(docs): Add performance tuning navigation
2026-05-06 09:03:13 +00:00
stratself
cb68a3d0ae
docs(perf): Rewrite notary tuning stuff and add section on HTTP/3
...
Some more wording fixes too
2026-05-06 09:03:12 +00:00
stratself
d3852abe51
docs(perf): Add .well-known, nofiles, and sysctl recs + some copyedits
2026-05-06 09:03:12 +00:00
stratself
15845b1c55
chore: Add changelog for #1498
2026-05-06 09:03:12 +00:00
stratself
f7d558baa6
docs(perf-tuning): Add notaries batch size advise + copyedits from comments
...
performance.md is now performance.mdx
2026-05-06 09:03:11 +00:00
stratself
edd80b2600
docs(perf-tuning): Add bottommost compression section and other changes
...
* docs: Move typing/readmarks disabling section up, and separate
outbound sending disablement from total disablement of features
* docs: Change introduction tone to "get more out of your server",
remove wrong notion of tuned for small instances
2026-05-06 09:03:11 +00:00
stratself
03eab32c27
docs: Add initial performance tuning guidance
2026-05-06 09:03:10 +00:00
Ian Wagner
636de8a708
docs: Add link to matrix.org federation tester
2026-05-06 07:30:27 +00:00
Ginger
e212c91ebf
fix: Address review comments
2026-05-05 13:35:35 -04:00
Ginger
83f3314f08
chore: News fragment
2026-05-05 09:10:51 -04:00
Ginger
8c2cf67783
refactor: Remove support for guest user registration
2026-05-05 09:09:48 -04:00
Ginger
7436e2f4e1
chore: Update admin command docs
2026-05-05 09:05:43 -04:00
timedout
9ba406761b
chore: Regenerate example config
2026-05-04 21:14:22 +01:00
nex
97f49d6357
chore: Remove news fragment checkbox from PR template
...
Requiring them is now handled by an action
2026-05-04 20:06:40 +00:00
new-years-eve
1a49bc6f87
docs: Add changelog
2026-05-04 20:05:26 +00:00
new-years-eve
833216256b
feat: Add support for fallback keys
...
Fallback keys can be provided by client devices to be used in case the
supply of one-time keys run out. The server will store one fallback key
per user, per device, per algorithm. The server will keep track of
whether this fallback key has been used or not.
The /keys/claim endpoint now provides a fallback key
if no one-time key is found
The /keys/upload endpoint now accepts fallback keys
The /sync endpoint now informs the client of the algorithms for which it
has an unused fallback key in stock.
2026-05-04 20:05:26 +00:00
new-years-eve
5fa3087401
feat: Implement serialization/deserialization for booleans
2026-05-04 20:05:26 +00:00
Ginger
e95c0bd53f
chore: News fragment
2026-05-04 11:28:11 -04:00
Ginger
52d1ed24a9
refactor: Remove LDAP support
2026-05-04 11:27:47 -04:00
timedout
4c1638e495
style: Resolve end-of-line lint failure
2026-05-04 14:57:21 +01:00
grgergo
3f69cf8ed7
chore: update example config
2026-05-04 14:57:21 +01:00
grgergo
560a615c29
chore: news fragment for #1706
2026-05-04 14:57:21 +01:00
grgergo
2e19310a87
clarify max_request_size limiting federation
...
Signed-off-by: grgergo <csakbek@freemail.hu >
2026-05-04 14:57:21 +01:00
Renovate Bot
81c5c6b2bc
chore(deps): update sentry-rust monorepo to 0.48.0
2026-05-03 14:41:05 +00:00
Renovate Bot
73d8462ace
chore(deps): update rust crate askama to 0.16.0
2026-05-03 14:40:44 +00:00
Renovate Bot
8b5fda1fb5
chore(deps): lock file maintenance
2026-05-03 14:40:16 +00:00
Ginger
6f9b4a989e
fix: Update ctor macro arguments
2026-05-03 14:39:30 +00:00
Renovate Bot
fe0d83d447
chore(deps): update rust crate ctor to 0.13.0
2026-05-03 14:39:30 +00:00
Renovate Bot
37dccdbeb0
chore(deps): update https://github.com/taiki-e/install-action digest to b5fddbb
2026-05-03 12:30:32 +00:00
Renovate Bot
1060adc670
chore(deps): update dependency cargo-bins/cargo-binstall to v1.19.0
2026-05-03 05:04:01 +00:00
Renovate Bot
d963b89a07
chore(deps): update rust-zerover-patch-updates
2026-05-01 17:40:13 +00:00
Ginger
680c972b44
chore: News fragment
2026-05-01 13:17:00 -04:00
Ginger
88b59eb053
fix: Include target user's membership when building stripped state
2026-05-01 13:15:55 -04:00
timedout
4a99de0d28
fix: Store incoming federated invite membership events correctly
...
Co-Authored-By: Ginger <ginger@gingershaped.computer >
Reviewed-By: Ginger <ginger@gingershaped.computer >
2026-05-01 14:49:27 +01:00
Renovate Bot
0e1f0683c6
chore(deps): update pre-commit hook crate-ci/typos to v1.46.0
2026-05-01 05:04:01 +00:00
Renovate Bot
cec4abc7cd
chore(deps): update ruma digest to 5742fec
2026-04-30 05:05:10 +00:00
Ginger
e6cae5b8ed
fix: Fix membership check in kick handler
2026-04-29 12:45:15 -04:00
Ginger
02ccf64d2e
fix: Properly create room summary stripped state
2026-04-29 12:44:57 -04:00
Renovate Bot
4d4d875231
chore(deps): update node-patch-updates to v2.0.10
2026-04-29 14:14:58 +00:00
Renovate Bot
cdf05b9a8b
chore(deps): update rust crate serde-saphyr to 0.0.25
2026-04-29 14:14:17 +00:00
Ginger
9491be928d
fix: Fix panic when creating rooms
2026-04-29 09:26:13 -04:00
Ginger
049babc7ca
fix: Fix appservice authentication
2026-04-29 09:09:09 -04:00
Ginger
7b99757337
chore: Update news fragment
2026-04-28 09:16:57 -04:00
Ginger
d09de005e3
refactor: Drop unused MSC3843 endpoint definition
2026-04-28 09:16:57 -04:00
Ginger
e34fd76dc0
fix: Re-add support for MSC4293
2026-04-28 09:16:57 -04:00
Ginger
72dfe579ec
docs: Remove ruwuma mention from development.md
2026-04-28 09:16:57 -04:00
Ginger
cfae9a34f4
fix: Panic on PL content deserialization failures
2026-04-28 09:16:57 -04:00
Ginger
0a4808ea79
fix: Add stable routes for admin suspension endpoints
2026-04-28 09:16:57 -04:00
Ginger
a9a18fc5f0
fix: Re-add support for custom room IDs
2026-04-28 09:16:57 -04:00
Ginger
c1434c7935
refactor: Remove mystery initial state hack
2026-04-28 09:16:57 -04:00
Ginger
2e98ba3ed8
fix: Increase max length for report reasons
2026-04-28 09:16:57 -04:00
Ginger
551cf48642
fix: Add bounds checking for profile data
2026-04-28 09:16:57 -04:00
Ginger
d256a1c1fa
fix: Add bounds checking for profile data
2026-04-28 09:16:57 -04:00
Ginger
5578144da9
refactor: Clean up api/client/membership/kick.rs
2026-04-28 09:16:57 -04:00
Ginger
5309a064e8
refactor: Remove old project name in api/client/membership/
2026-04-28 09:16:57 -04:00
Ginger
56d35b4e39
refactor: Clean up api/client/membership.ban.rs
2026-04-28 09:16:57 -04:00
Ginger
7375d1cad4
fix: Check existing key equality when uploading new E2EE keys
2026-04-28 09:16:57 -04:00
Ginger
80baf948ae
refactor: Switch back to upstream Ruma
2026-04-28 09:16:57 -04:00
Ginger
ed37696cef
fix: Enable compatibility feature to fix federation with old conduit-family homeservers
2026-04-28 09:16:57 -04:00
Ginger
0a04c60f31
refactor: Improve summary service logging
2026-04-28 09:16:57 -04:00
Ginger
e44ac230a6
fix: Fix failing test
2026-04-28 09:16:57 -04:00
Ginger
57c4567380
chore: Changelog
2026-04-28 09:16:57 -04:00
Ginger
a8a8e1ea51
chore: Clippy fixes
2026-04-28 09:16:57 -04:00
Ginger
02f69a7160
fix: FIx code that was causing rustc to panic somehow
2026-04-28 09:16:56 -04:00
Ginger
f68205a341
refactor: Remove pointless assert
2026-04-28 09:16:56 -04:00
Ginger
9899632b8b
chore: Clippy fixes
2026-04-28 09:16:56 -04:00
Ginger
a0524a9566
refactor: Fix errors in api/client/directory.rs, again
2026-04-28 09:16:56 -04:00
Ginger
e70004c98f
chore: Clippy fixes
2026-04-28 09:16:56 -04:00
Ginger
e185f56f3a
refactor: Fix errors in admin/processor.rs
2026-04-28 09:16:56 -04:00
Ginger
5058b7979a
refactor: Fix errors in admin/user/
2026-04-28 09:16:56 -04:00
Ginger
7f06a61242
refactor: Fix errors in admin/room/
2026-04-28 09:16:56 -04:00
Ginger
54fefb421b
refactor: Fix errors in admin/query/
2026-04-28 09:16:56 -04:00
Ginger
9d39321deb
refactor: Fix errors in admin/media/commands.rs
2026-04-28 09:16:56 -04:00
Ginger
c64a4a71bc
refactor: Resolve errors in admin/federation/commands.rs
2026-04-28 09:16:56 -04:00
Ginger
385b4b10d1
refactor: Fix errors in admin/debug/commands.rs
2026-04-28 09:16:56 -04:00
Ginger
c12dd20431
refactor: Fix errors in admin/check/commands.rs
2026-04-28 09:16:56 -04:00
Ginger
3ad7c3b30d
refactor: Fix remaining errors in api/ (and temporarily switch to a fork of ruma)
2026-04-28 09:16:56 -04:00
Ginger
7a58074a0d
refactor: Fix errors in web/
2026-04-28 09:16:56 -04:00
Ginger
0c7abd792d
refactor: Fix errors in api/router/
2026-04-28 09:16:56 -04:00
Ginger
0f64e6b49c
refactor: Fix errors in api/server/well_known.rs
2026-04-28 09:16:56 -04:00
Ginger
e7a1c71a25
refactor: Fix errors in api/server/version.rs
2026-04-28 09:16:56 -04:00
Ginger
cd3b97ea26
refactor: Fix errors in api/server/user.rs
2026-04-28 09:16:56 -04:00
Ginger
845b731f8c
refactor: Fix errors in api/server/state.rs
2026-04-28 09:16:56 -04:00
Ginger
97d2388717
refactor: Fix errors in api/server/state_ids.rs
2026-04-28 09:16:56 -04:00
Ginger
962a4aedc6
refactor: Fix errors in api/server/send.rs
2026-04-28 09:16:56 -04:00
Ginger
0eee63f7a1
refactor: Fix errors in api/server/send_leave.rs
2026-04-28 09:16:52 -04:00
Ginger
eba38c2fa0
refactor: Fix errors in api/server/send_knock.rs
2026-04-28 09:16:52 -04:00
Ginger
338cdc2a75
refactor: Fix errors in api/server/send_join.rs
2026-04-28 09:16:52 -04:00
Ginger
2dacb8e071
refactor: Fix errors in api/server/query.rs
2026-04-28 09:16:52 -04:00
Ginger
398f73b690
refactor: Fix errors in api/server/publicrooms.rs
2026-04-28 09:16:52 -04:00
Ginger
78d9c29a05
refactor: Fix errors in api/server/media.rs
2026-04-28 09:16:52 -04:00
Ginger
0406f755c2
refactor: Fix errors in api/server/make_leave.rs
2026-04-28 09:16:52 -04:00
Ginger
1827888f09
refactor: Fix errors in api/server/make_knock.rs
2026-04-28 09:16:52 -04:00
Ginger
8871b1f74b
refactor: Fix most errors in api/server/make_join.rs
2026-04-28 09:16:52 -04:00
Ginger
c7489fd008
refactor: Fix errors in api/server/key.rs
2026-04-28 09:16:52 -04:00
Ginger
7f5f4df64e
refactor: Fix errors in api/server/invite.rs
2026-04-28 09:16:52 -04:00
Ginger
15d87c00bf
refactor: Fix errors in api/server/get_missing_events.rs
2026-04-28 09:16:52 -04:00
Ginger
7cae42634e
refactor: Fix errors in api/server/event.rs
2026-04-28 09:16:52 -04:00
Ginger
bd94ec4033
refactor: Fix errors in api/server/event_auth.rs
2026-04-28 09:16:52 -04:00
Ginger
db7d378a2e
refactor: Fix errors in api/server/backfill.rs
2026-04-28 09:16:52 -04:00
Ginger
39b2e461be
refactor: Fix remaining errors in api/cient/message.rs
2026-04-28 09:16:52 -04:00
Ginger
ca358438ee
refactor: Fix mystery weirdness in api/client/sync/v3/mod.rs
2026-04-28 09:16:52 -04:00
Ginger
4282d60181
refactor: Fix errors in api/client/well_known.rs
2026-04-28 09:16:52 -04:00
Ginger
10dbea72e8
refactor: Fix errors in api/client/voip.rs
2026-04-28 09:16:52 -04:00
Ginger
aa7c2ea1ad
refactor: Fix errors in api/client/user_directory.rs
2026-04-28 09:16:52 -04:00
Ginger
698d959407
refactor: Fix errors in api/client/unversioned.rs
2026-04-28 09:16:52 -04:00
Ginger
4c831c3531
refactor: Fix errors in api/client/typing.rs
2026-04-28 09:16:52 -04:00
Ginger
4dfdce303f
refactor: Fix errors in api/client/to_device.rs
2026-04-28 09:16:52 -04:00
Ginger
8d8c310a64
refactor: Fix errors in api/client/threads.rs
2026-04-28 09:16:52 -04:00
Ginger
e50e24e22d
refactor: Fix errors in api/client/thirdparty.rs
2026-04-28 09:16:52 -04:00
Ginger
a215b63077
refactor: Fix errors in api/client/tag.rs
2026-04-28 09:16:52 -04:00
Ginger
1d39210a0c
refactor: Fix errors in api/client/state.rs
2026-04-28 09:16:52 -04:00
Ginger
360e0dada8
refactor: Fix errors in api/client/session.rs
2026-04-28 09:16:52 -04:00
Ginger
cbf24a9483
refactor: Fix errors in api/client/send.rs
2026-04-28 09:16:52 -04:00
Ginger
6cb3f909c9
refactor: Fix errors in api/client/search.rs
2026-04-28 09:16:52 -04:00
Ginger
b7c9ef89f0
refactor: Fix errors in api/client/report.rs
2026-04-28 09:16:52 -04:00
Ginger
64f7791ddb
refactor: Fix errors in api/client/relations.rs
2026-04-28 09:16:52 -04:00
Ginger
836047b54e
refactor: Fix errors in api/client/redact.rs
2026-04-28 09:16:52 -04:00
Ginger
256f8f679d
refactor: Fix errors in api/client/read_marker.rs
2026-04-28 09:16:52 -04:00
Ginger
154cda35f3
refactor: Fix errors in api/client/push.rs
2026-04-28 09:16:52 -04:00
Ginger
1bf6d2a117
refactor: Fix errors in api/client/profile.rs and api/client/unstable.rs
2026-04-28 09:16:52 -04:00
Ginger
69d33931fa
refactor: Fix errors in api/client/presence.rs
2026-04-28 09:16:52 -04:00
Ginger
83902a584b
refactor: Fix errors in api/client/openid.rs
2026-04-28 09:16:52 -04:00
Ginger
bcff259875
refactor: Fix most errors in api/client/messages.rs
2026-04-28 09:16:52 -04:00
Ginger
496ca80393
refactor: Fix errors in api/client/media.rs
2026-04-28 09:16:52 -04:00
Ginger
34b992fc40
refactor: Fix errors in api/client/media_legacy.rs
...
Sent from my Steam Deck
2026-04-28 09:16:52 -04:00
Ginger
1ea9330df8
refactor: Fix errors in api/client/keys.rs
2026-04-28 09:16:52 -04:00
Ginger
267e1c5d65
refactor: Fix errors in api/client/directory.rs
2026-04-28 09:16:52 -04:00
Ginger
36285e7784
refactor: Fix errors in api/client/device.rs
2026-04-28 09:16:52 -04:00
Ginger
53ab20d1cd
refactor: Fix errors in api/client/dehydrated_device.rs
2026-04-28 09:16:52 -04:00
Ginger
96adf034e6
refactor: Fix errors in api/client/context.rs
2026-04-28 09:16:51 -04:00
Ginger
a75bf32a34
refactor: Fix errors in api/client/capabilities.rs
2026-04-28 09:16:51 -04:00
Ginger
c89ecd7b63
refactor: Fix errors in api/client/backup.rs
2026-04-28 09:16:51 -04:00
Ginger
7f30f8419b
refactor: Fix errors in api/client/appservice.rs
2026-04-28 09:16:51 -04:00
Ginger
0a81f4d629
refactor: Fix errors in api/client/account_data.rs
2026-04-28 09:16:51 -04:00
Ginger
4e456249ac
refactor: Fix errors in api/client/sync
2026-04-28 09:16:51 -04:00
Ginger
01e403f05f
refactor: Resolve remaining errors in threepid.rs
2026-04-28 09:16:51 -04:00
Ginger
a2f6141f4b
refactor: Fix errors in api/client/room/
2026-04-28 09:16:51 -04:00
Ginger
97a01a1500
refactor: Rename PduBuilder to PartialPdu
2026-04-28 09:16:51 -04:00
Ginger
bf9c9716eb
refactor: Add function to state_accessor to get create event
2026-04-28 09:16:51 -04:00
Ginger
471eb54c66
refactor: Consolidate hierarchy and summary logic in a new service
2026-04-28 09:16:51 -04:00
Ginger
755006c66d
refactor: Fix errors in api/client/membership/
2026-04-28 09:16:51 -04:00
Ginger
ccd6072f2d
refactor: Fix (most) errors in api/client/account/
2026-04-28 09:16:51 -04:00
Ginger
24f7e1d658
chore: Clippy fixes
2026-04-28 09:16:51 -04:00
Ginger
d62eeda130
refactor: Replace more uses of RoomVersionId with RoomVersionRules
2026-04-28 09:16:51 -04:00
Ginger
3e1f97487f
fix: Resolve errors in recently added services
2026-04-28 09:16:51 -04:00
Jade Ellis
a4e64383b7
refactor: Ruma upstraming, bake a little more
2026-04-28 09:16:51 -04:00
Ginger
204bc1367e
refactor: Ruma upstreaming, half-baked edition
...
Co-authored-by: Jade Ellis <jade@ellis.link >
2026-04-28 09:16:51 -04:00
Jade Ellis
1cc9dbf2a4
chore: Update lockfile
2026-04-28 09:27:00 +01:00
Renovate Bot
2cf28baf03
chore(deps): update pre-commit hook crate-ci/typos to v1.45.2
2026-04-28 05:03:35 +00:00
timedout
f3fb218652
style: Clippy conflicts with cargo fmt, apparently
2026-04-27 22:15:52 +00:00
timedout
0924b7d27e
style: Use debug assert instead of a normal assert
2026-04-27 22:15:52 +00:00
timedout
8575f191a0
style: Simplify build_local_dag return
2026-04-27 22:15:52 +00:00
timedout
fe7cfd96e7
feat: Assert that no events were dropped during sorting
2026-04-27 22:15:52 +00:00
timedout
8b0e86a05d
fix: Don't consider out-of-scope nodes as prev events before sorting incoming events
2026-04-27 22:15:52 +00:00
Jade Ellis
8b8fef998c
fix(deps): Enable rustls roots on old rustls
2026-04-27 22:51:21 +01:00
Jade Ellis
decd6083a0
fix(deps): Enable a TLS backend for outdated reqwest
2026-04-27 13:10:47 +01:00
Renovate Bot
06184d8c9f
chore(deps): update https://github.com/taiki-e/install-action digest to 787505c
2026-04-25 12:21:19 +01:00
Renovate Bot
7c20e22b75
chore(deps): pin https://github.com/dorny/paths-filter action to fbd0ab8
2026-04-25 11:19:09 +00:00
Jade Ellis
3f862b58cb
ci: Fix unstable builds for repo packages
2026-04-25 11:33:25 +01:00
Jade Ellis
046a6356f3
ci: Automaticallly upload release binaries
2026-04-25 11:17:43 +01:00
Jade Ellis
3af0240ff5
style: Fix clipy lint
2026-04-25 10:07:17 +01:00
ginger
5dcfff51cf
chore: Admin announcement
2026-04-24 20:33:07 +00:00
Ginger
b9989f1713
chore: Release
2026-04-24 15:21:47 -04:00
Ginger
1d3e3e7e62
chore: Update changelog
2026-04-24 15:21:40 -04:00
Jade Ellis
0adf3aa956
fix: Revert 7b1aabda9f
...
Yeah that didn't work sadly.
2026-04-24 16:22:46 +01:00
Jade Ellis
7b1aabda9f
feat: Re-enable http3
...
This required the previous commit, and relies on
the included flag to make fat LTO builds
work correctly.
2026-04-24 14:51:11 +01:00
Jade Ellis
e31c5997b7
fix: Explicitly set TLS backends
...
Dependency updates mean we have to set a custom TLS backend sooner.
Also some groundwork for being able to use aws-lc in future
2026-04-24 14:19:12 +01:00
Jade Ellis
7ca0d137c4
chore: Replace ring for sha256 with sha2
2026-04-24 12:56:05 +01:00
Jade Ellis
0344bf71d8
chore: Disable http3 by default
...
Unfortunately h3 requires aws-lc since the last version of reqwest.
aws-lc currently breaks the build.
2026-04-24 12:11:48 +01:00
Jade Ellis
a07d3e24ea
fix(deps): corrext aws-lc-rs dependencies and direct-tls
2026-04-24 10:06:47 +01:00
Jade Ellis
1bc7950748
fix: Update direct-tls server handle
2026-04-24 09:34:16 +01:00
tokii
0fd43ff6fa
docs: Update Nomad deployment docs to include volume configuration changes
2026-04-23 20:07:53 +00:00
tokii
796136f1a6
docs: Update Nomad deployment docs for HTTPS and Traefik changes
2026-04-23 20:07:53 +00:00
tokii
447608985b
docs: Add deployment documentation for Nomad
2026-04-23 20:07:53 +00:00
timedout
5f4cd47d88
fix: Add workaround for handling malformed PDUs
...
Signed-off-by: timedout <git@nexy7574.co.uk >
Reviewed-On: https://forgejo.ellis.link/continuwuation/continuwuity-sec/pulls/7
Reviewed-By: Jade Ellis <jade@ellis.link >
2026-04-23 20:48:11 +01:00
stratself
a7244bdb68
docs(docker): Detailed port exposure docs for other reverse proxies
2026-04-23 19:47:46 +00:00
stratself
91f2900463
docs(docker): More compose cleanups
...
* Stringify and use long URLs for image names
* Use read-only docker socket in traefik mount
* Shorten some comments
2026-04-23 19:47:46 +00:00
stratself
e44ae3bac9
docs(delegation): Add compose examples
...
Previous projects used split-domain examples, so it's good to add back
2026-04-23 19:47:46 +00:00
stratself
b692f9e6e7
fix(docs): Fix one wrong config filename and title all the composes
2026-04-23 19:47:46 +00:00
stratself
695333fe5b
chore: Renumber changelog PR and fix trailing whitespace
2026-04-23 19:47:31 +00:00
stratself
bc7a6c148f
fix(docs): Small wording fixes
2026-04-23 19:47:31 +00:00
ky-bean
bd3944573b
docs(docker): Add note for required config setting
2026-04-23 19:47:31 +00:00
ky-bean
21ac3c5a86
chore: Add news fragment for #1553
2026-04-23 19:47:31 +00:00
ky-bean
3976849b97
docs(docker): fix typos (psuedo=>pseudo, decleration=>declaration)
2026-04-23 19:47:31 +00:00
ky-bean
a1e3619291
docs(docker): update wording, implement suggestions from @lveneris
2026-04-23 19:47:31 +00:00
ky-bean
a92fc78a90
docs(docker): Detail how to access the server's console
2026-04-23 19:47:31 +00:00
ky-bean
fc429ea564
docs: explain admin console for docker deployments
2026-04-23 19:47:31 +00:00
stratself
69c931e18a
docs(generic): Highlight important /_continuwuity features + typofixes
2026-04-23 19:46:57 +00:00
stratself
284e0ce1e5
chore: Add changelog for #1677
2026-04-23 19:46:57 +00:00
stratself
a13779a051
docs(generic): Remove Nix build section and further wording fixes
...
* Add spec link to well-known support endpoint
* Prioritize simpler "route everything" approach for other RProxies
2026-04-23 19:46:57 +00:00
stratself
7163714697
docs(generic): Fix links for CI binaries
2026-04-23 19:46:57 +00:00
stratself
3998a14c32
docs(generic): Rewrite sections on server initialization and testing
...
* Rename "You're done" to "Starting Your Server"
* Add instructions for initial registration token flow
* Shorten "How do I know it works" section
* Beautify "What's Next" section
2026-04-23 19:46:57 +00:00
stratself
c79f2a3057
docs(generic): Fix router + reverse proxy + docker build sections
...
* Link docker builds to section in dev pages
* Delete old section on port forwarding
* Create new section on port exposing, near reverse proxy section
* Rewrite Other Reverse Proxies section to update specified routes
* Move reverse proxy software caveats into its own subsection
* Other wording and structure fixes and improvements
2026-04-23 19:46:57 +00:00
stratself
17837c51a0
docs(generic): Various fixes for consistency with other pages
...
* Use indirect URLs
* Change your.server.name to canonical example.com
* Put Getting help section in a tip admonition
* Remove statement on Caddy preference
* Clean up "What's next" section
2026-04-23 19:46:57 +00:00
stratself
99a7be0222
fix(docs): Correct ports for LiveKit TURN range
2026-04-23 19:46:16 +00:00
stratself
41ed2eb167
docs(livekit): Add/correct client discovery paths and extra fixes
...
* Use de facto unstasble path instead of the standard one
* Document both the unstable and well-known paths as being exposed by
Continuwuity when set
* Make curling said path one of the Testing steps
* Removing confusing console `~$` prefix symbols, move commands and
response into separate code blocks
* Number the MSCs
2026-04-23 19:46:16 +00:00
Renovate Bot
2b08460b16
chore(deps): update https://github.com/actions/setup-node digest to 48b55a0
2026-04-23 19:45:52 +00:00
Renovate Bot
4cf8f6e05b
chore(deps): update https://github.com/taiki-e/install-action digest to 74e87cb
2026-04-23 19:45:46 +00:00
Jade Ellis
ae37acb228
ci: Don't run clippy & tests if rust files haven't changed
2026-04-23 20:44:57 +01:00
Jade Ellis
10c3045f5f
ci: Run Renovate on resolvematrix
2026-04-23 20:44:56 +01:00
Jade Ellis
8242718571
ci: Label PRs touching dependencies
2026-04-23 20:44:56 +01:00
Renovate Bot
03db067aab
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v43.140.0
2026-04-23 19:23:09 +00:00
Jade Ellis
b28ddde1eb
chore: Update lockfile
2026-04-23 20:04:05 +01:00
Jade Ellis
0134f69bf9
chore: Update incompatible dependenceis
2026-04-23 20:02:48 +01:00
Jade Ellis
15878371bf
chore: Update reqwest
2026-04-23 18:53:25 +01:00
Getz Mikalsen
980bd475b6
feat: Add TLS options for LDAP ( #1389 )
...
Optional StartTLS for LDAP and add option to skip TLS verification.
Co-authored-by: Jade Ellis <jade@ellis.link >
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1389
Reviewed-by: Jade Ellis <jade@ellis.link >
2026-04-23 17:39:25 +00:00
Ginger
19204b097d
chore: News fragments
2026-04-23 13:19:58 -04:00
Ginger
567d809efe
fix: Forbid removing emails if they're required to register
2026-04-23 13:17:48 -04:00
Ginger
8171e3d614
fix: Remove a user's existing email before adding a new one
2026-04-23 13:05:21 -04:00
ginger
98b221096b
fix(config): Remove registration_token_file from deprecated keys
2026-04-22 12:57:46 +00:00
aviac
027f6a4b02
feat(nix): allow override of RUSTFLAGS for certain features
...
- enabling the `http3` features requires unstable features, namely `reqwest_unstable`
- the main suggestion of cargo is to enable this through RUSTFLAGS
- we had no way to customize RUSTFLAGS, now we do
- changed the max-perf package to showcase this feature
- also turn on http3 by default in both max-perf and the default build
(jade approved this)
2026-04-20 17:49:03 +00:00
aviac
42028f155b
feat(nix): also add release-max-perf package build to flake outputs
2026-04-20 17:49:03 +00:00
Renovate Bot
6999246d19
chore(deps): update rust-non-major
2026-04-18 05:04:30 +00:00
timedout
01f6893c07
feat: Reduce verbosity of "remote server couldn't process pdu" warning
...
(cherry picked from commit 8b206564aa )
2026-04-18 01:11:48 +01:00
Jade
ed93a4ad9f
chore: Admin announcement
2026-04-17 21:15:54 +00:00
Jade Ellis
cc8a4501b5
ci: Add basic CI auto-labeller
2026-04-17 21:41:01 +01:00
Sebastian Spaeth
cbb1632a1a
docs: Describe Debian components
...
Describe "stable", "stable unstable" and "dev" components
2026-04-17 20:13:44 +00:00
Sebastian Spaeth
df59fc35b4
CI: Only publish releases into the Debian stable component
...
Previously, we would push all tagged releases into the stable component,
including alphas and rc's. Let's use some regex to only push stable
releases which conform to tag "^v+\d\.+\d\.+\d$"
so we ONLY get the manually published releases into the stable
component.
All pre-releases go into the "unstable" component for now. Nightly builds
go into the "dev" component (as before) and feature branches still get
their dedicated component named after the branch.
TODO: It would be nifty if stable releases would ALSO be published at the
unstable component.
2026-04-17 20:13:44 +00:00
Jade Ellis
c927bc7b30
chore: Release
2026-04-17 18:19:28 +01:00
Jade Ellis
c1ce40c008
docs: Changelog
2026-04-17 18:18:42 +01:00
ezera
66be11a978
docs(docs): update supported room versions
...
Updates supported room version to state we support 6-12, and sets 12
as default.
2026-04-17 16:10:05 +00:00
Jade Ellis
1aa44f9834
chore: Release
2026-04-17 10:50:19 +01:00
Renovate Bot
b5b8d62622
chore(deps): update ruma digest to d00b51a
2026-04-17 09:30:25 +00:00
Renovate Bot
b9b3cddf70
chore(deps): update rust crate ctor to 0.10.0
2026-04-17 08:15:37 +00:00
Renovate Bot
62166f3cf8
chore(deps): update dependency typescript to v6.0.3
2026-04-17 08:14:02 +00:00
Renovate Bot
ed1fe717b9
chore(deps): update https://github.com/taiki-e/install-action digest to a2352fc
2026-04-17 08:13:49 +00:00
Renovate Bot
69e4689b24
chore(deps): update https://github.com/cloudflare/wrangler-action digest to 9acf94a
2026-04-17 08:13:35 +00:00
Renovate Bot
cace197237
chore(deps): pin actions/cache action to 27d5ce7
2026-04-17 08:12:53 +00:00
Jade
49e6d18ac6
ci: Use inherited secrets
2026-04-16 14:29:42 +00:00
Sebastian Spaeth
bf6783cb83
ci: add all possible credentials
...
When running the mirror-images step from within the release-image workflow
we receive error messages such as
> msg="Failed to sync" target=ghcr.io/continuwuity/continuwuity:v0.5.0-rc.7
> source=forgejo.ellis.link/continuwuation/continuwuity:v0.5.0-rc.7
> error="failed to send blob post, ref
> ghcr.io/continuwuity/continuwuity@sha256:74976f7b85018b5abd867333bc783c7230d985a4b0af595bbf55964e25afe6ef:
> unauthorized"
So, we will need to define our credentials in the release-image workflow too
it seems, when we pull in the mirror-image workflow.
This is a test by adding all credentials that are defined in mirror-images.yml
Probably we don't need them all, but if this does not work, the whole approach
is flawed and we can remove everyting again.
If it works, we should remove unneccessary credentials until we found the
required ones.
2026-04-15 19:34:33 +00:00
éźera
2ca7149a7f
feat: allow deprioritizing servers for join requests
...
Implements #1549 .
2026-04-15 13:24:42 +00:00
Renovate Bot
bedec72489
chore(deps): update https://github.com/taiki-e/install-action digest to eea29cf
2026-04-15 13:23:55 +00:00
Sebastian Spaeth
80861b5f12
ci: actions/cache@v3|4 -> actions/cache@v5
...
Update to use actions/cache@v5 in our CI
2026-04-15 13:22:43 +00:00
Renovate Bot
f2d7654572
chore(deps): update rust crate sha2 to 0.11.0
2026-04-15 13:22:30 +00:00
Renovate Bot
bb037ca9f4
chore(deps): update dependency cargo-bins/cargo-binstall to v1.18.1
2026-04-15 13:21:59 +00:00
Renovate Bot
fd236876af
chore(deps): update https://github.com/regclient/actions digest to f3c6d87
2026-04-15 13:21:46 +00:00
Renovate Bot
130b07f0e1
chore(deps): update pre-commit hook crate-ci/typos to v1.45.1
2026-04-15 13:21:38 +00:00
Jade
4dbf7f7673
ci: Remove unnecessary concurrency block
2026-04-15 13:21:11 +00:00
stratself
ed76f50e71
fix(docs): Apply more changes to improve clarity and grammar
...
* CONTINUWUITY_WELL_KNOWN requires a "Struct", not a JSON array
* Fix all instances of Intl English to English English
* Typo/grammar nits fixings
2026-04-15 13:18:59 +00:00
stratself
1fe13b927d
fix(docs): Remove bash shell indicator
2026-04-15 13:18:59 +00:00
stratself
b11989504a
fix(docs): Apply some suggestions to improve docs clarity
...
* fix(docs): Change all "commandline" to "command-line"
* fix(docs): Standardize "config options" as the word to use for config
file params
2026-04-15 13:18:59 +00:00
stratself
87fa184af7
docs: Remove the manually-generated env var reference page and its links
...
Maybe configuration.mdx could be rewritten for better clarity on
converting between config param <-> env var
2026-04-15 13:18:59 +00:00
stratself
aa9d43fad6
docs: Add order of config priority and rewrite --execute command info
...
* fix(docs): smaller wordings
May need to consider a separate section for "runtime configuration"
i.e. --execute and --maintenance modes
2026-04-15 13:18:59 +00:00
stratself
cbcada087b
docs: Rework environment variable section in Configuration docs
...
* docs: Move detailed explanations in Env Var ref page to Config page
* docs: Add env var example for double nested configs and array
declaration
2026-04-15 13:18:59 +00:00
stratself
9489369b75
docs: Add Env Var reference page to navigation bar
2026-04-15 13:18:59 +00:00
stratself
9d11f56393
docs(delegation): Add remark on .well-knowns against alt setups
...
* Also incorporate feedback from PR comments
2026-04-15 09:53:26 +00:00
stratself
72eabc9796
docs(delegation): Add section for manually serving .well-knowns files
...
* Also add note on default support contacts
* Also add individual env vars for .well-knowns
2026-04-15 09:53:26 +00:00
stratself
2ca758425c
fix(docs): Remove matrix. subdomains in composes
...
Delegation can be re-added in future commits
2026-04-15 09:52:18 +00:00
stratself
991859a9e4
ci: Ignore changelog.d/ dir changes when building images/bins
...
.mdx files were also added to ignored paths for extras
2026-04-15 09:51:00 +00:00
Sebastian Spaeth
b202e82c26
ci: Fix mirror-images step
...
Blind attempt at fixing the:
> 'runs-on' key not defined in Release Docker Image/merge-release
> 'runs-on' key not defined in Release Docker Image/merge-maxperf
Errors in the release-image CI
2026-04-15 06:40:33 +02:00
Sebastian Spaeth
a7fc905490
ci: Run mirror-images less often
...
Run it once a night for regular cleanup etc and after each release-image
workflow instead of doing it blindly every 2 hours.
This will only run the mirror job if BOTH build types were
successful, but it is better than nothing, and we have the nightly run
to pick up everything else.
Thanks @jade for the quick feedback and hand-holding in creating this.
2026-04-14 23:30:01 +02:00
ginger
d482e0ae3a
chore: Fix changelog
2026-04-14 13:20:03 +00:00
stratself
eccdb285b8
docs(dns,troubleshooting): Grammar edits and few fixes
...
Add "DNS server overload" title to one of the sections
2026-04-13 17:44:01 +00:00
stratself
682c82d38b
fix(docs,dns): Correct value for dnsproxy option, and a word
2026-04-13 17:44:01 +00:00
stratself
dae95740d2
docs(dns): Remove None section, add dedicated Forwarders section
2026-04-13 17:44:01 +00:00
stratself
194252f446
docs(dns): Add dnsproxy's version of Serve Stale, remove Prefetch advice
...
Prefetch can make sense, but most homeserver IPs are static anyways
2026-04-13 17:44:01 +00:00
stratself
b12275a660
chore: Add newsfrag for #1601
2026-04-13 17:44:01 +00:00
stratself
583a63ad30
chore(docs): Add DNS tuning navigation
2026-04-13 17:44:01 +00:00
stratself
3d08c0c4b4
docs(troubleshooting): Add section on intermittent fed failures
...
Also some wordfixings in dns docs
2026-04-13 17:44:01 +00:00
stratself
9d237d105f
docs(troubleshooting): shorten dns section and link to dns tuning guide
2026-04-13 17:44:01 +00:00
stratself
f20dfaeee4
docs(dns): Clarity changes and some additions
2026-04-13 17:44:01 +00:00
stratself
17e95a404c
docs(dns): Add main content
2026-04-13 17:44:01 +00:00
stratself
6978cbbe60
docs(dns): Initialize dns docs
2026-04-13 17:44:01 +00:00
stratself
955a695138
docs(docker): New "Other" section and move Docker section there
...
* Also add warning that server name cannot be changed
* Some other copyediting
2026-04-13 17:34:36 +00:00
stratself
33091822b7
docs(docker,delegation): revert delegation changes, small wording fixes
2026-04-13 17:34:36 +00:00
stratself
27fcd7fe3a
docs(docker,delegation): Fix .well-known docs - check below for details
...
.well-known env var in example composes now point to `example.com:443`,
and are turned on by default for Caddy labels and the Traefik configs.
For the Caddyfile example, they're left uncommented. Added small
bulletpoint on how to use this env var. Consistencize all the
.well-known comments inside these composes.
I don't want to overly fix the example composes and get it wrong, so
this small change should be enough. Split-domain deployments are fully
outsourced to the Delegation page now, and some changes are also made
there to be more comprehensive.
2026-04-13 17:34:36 +00:00
stratself
7f92659a98
docs(docker): Revert to mounting /etc/resolv.conf as configs: won't work
...
* Fix wording to make mounting resolv.conf more imperative
* Linting and other changes
2026-04-13 17:34:36 +00:00
stratself
8bebec6687
docs(docker): Update links for DNS tuning guide
2026-04-13 17:34:36 +00:00
stratself
feabb732f9
fix(docs): exclude local .yml URLs from dead link checking
2026-04-13 17:34:36 +00:00
stratself
7354c64034
chore: Add changelog for #1594
2026-04-13 17:34:36 +00:00
stratself
dccf1b97c8
docs(docker): Rewrite Docker DNS workaround with custom resolv.conf
...
Instead of /etc/resolv.conf on host. This works around the
systemd-resolved footgunning issue and provide an inline way to
configure resolvers, separate from that of the host system.
2026-04-13 17:34:36 +00:00
stratself
8dfdd1f662
docs(docker): Document the new initial registration flow
...
* Also add a note disclaiming that Docker is for demo purposes only
* Use port 8008 for Docker Quick Run instructions
* Remove the steps to create first admin user
I do believe "Docker - Quick Run" should be moved to after Docker
Compose section, but will want to discuss this before advancing
2026-04-13 17:34:36 +00:00
stratself
6a8850b556
docs(docker): Make example ymls raw-viewable and other copyedit fixes
...
* Move all *.yml files to docs/public/deploying so they can be viewable
as raw files on the webpage
* Link to those files with "(view raw)"
* Move minimal environment variables to Docker Compose section
* Unheading the Docker Quick Run stuff to prepare deprioritizing them
* Remove redundant Registry column in Image table
* Rename reverse proxy subsections to have software name as first word
2026-04-13 17:34:36 +00:00
stratself
a575e21598
docs(docker): Remove dynamic.yml file and related config lines
...
The file defines an HSTS middleware and cipher suite prefs, which
should not be needed for a simple deployment
2026-04-13 17:34:36 +00:00
stratself
eeeb23b634
docs(docker): Add Caddy via Caddyfile deployment and prioritise them
...
* Add compose and included Caddyfile using caddy:latest official image
* Rename old Caddy files as caddy-labels.yml and new one as caddy.yml
* Remove external: true network in caddy-labels.yml to simplify docs
* Move all Caddy selections to top, unprioritize Traefik and other RPs
2026-04-13 17:34:36 +00:00
stratself
aa53b01b69
docs(docker): Consistencize all domains to example.com and port to 8008
...
Included some additional comments. .well-known Delegation seems to be
much more convenient for traefik + caddy. How they're documented can be
decided in a future commit.
2026-04-13 17:34:36 +00:00
stratself
b55cb5580c
docs(docker): Remove unnecessary parts from all current compose files
...
* Remove unnecessary c10y env vars
* Remove unnecessary comment about image build and vim
* Remove references to Element-Web
Other changes like unified port and domain names will be in a future
commit
2026-04-13 17:34:36 +00:00
stratself
fbdaa32743
docs(docker): Merge Prerequisites and Images into "Preparation" section
...
* docs: Remove Matrix Federation Requirements for simpler deployments
* docs: Remove redundant env vars in Docker - Quick Run
2026-04-13 17:34:36 +00:00
stratself
aa0bd60ba4
docs(docker): Upsection headings by one level
...
* docs: "Docker - Quick Run" and "Docker Compose" are now two top-level
sections
* docs: Mark building your images as "(Optional)"
* docs: Move calls to "Next step" section
2026-04-13 17:34:36 +00:00
stratself
cc1706bb83
docs(docker): Rework section on available images
...
* docs: Make "Available Images" a top-level option, to be followed by
Docker and Docker Compose sections in a future commit
* docs: Make "Mirrors" a subsection of "Available images", and add
links to the mirrors themselves
* docs: Use indirect linkages to URLs for better maintainability
* docs: Remove initial sentence and its reference to the (advanced)
building your image flow
* docs: Recommend `latest` OCI tag and include link to
2026-04-13 17:34:36 +00:00
Renovate Bot
604316eebe
chore(deps): update https://github.com/taiki-e/install-action digest to d0f2322
2026-04-13 09:56:49 +00:00
Renovate Bot
a5af7b39bd
chore(deps): pin dependencies
2026-04-13 05:22:53 +00:00
Renovate Bot
d83483abb2
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v43.111.0
2026-04-13 05:02:21 +00:00
Jade Ellis
fb286017f3
ci: Just remove the cache dance action
2026-04-12 19:41:12 +01:00
Renovate Bot
cf73f13a11
chore(deps): update dependency cargo-bins/cargo-binstall to v1.18.0
2026-04-12 18:31:23 +00:00
Jade Ellis
420c28873c
ci: Skip cache dance if cache isn't available
2026-04-12 18:35:46 +01:00
Jade Ellis
fdb40c9758
ci: Compare against the merge base to avoid unneded triggers
2026-04-12 17:36:22 +01:00
Jade Ellis
d961fb1515
ci: Rename changelog check workflow
2026-04-12 16:33:38 +00:00
Jade Ellis
44ebf1f526
ci: Fail when changelog is missing
2026-04-12 16:33:38 +00:00
Jade Ellis
f02a08de57
ci: Use labels for changelog rather than comments
2026-04-12 16:33:38 +00:00
Jade Ellis
ab241f8f65
chore(deps): Update sd-notify
2026-04-12 16:36:28 +01:00
Renovate Bot
45d316999a
chore(deps): update rust crate sd-notify to 0.5.0
2026-04-12 15:33:08 +00:00
Jade Ellis
b81aea642a
fix(deps): Upgrade crypto crates to matching versions
2026-04-12 16:29:02 +01:00
Renovate Bot
f3e8160d9b
chore(deps): update rust crate hmac to 0.13.0
2026-04-12 15:03:55 +00:00
Renovate Bot
b80b9a7950
chore(deps): update rust crate ctor to 0.9.0
2026-04-12 14:27:21 +00:00
Jade Ellis
c51acb7acb
ci: Use upstream regsync installer action
2026-04-12 15:16:28 +01:00
timedout
5110930add
fix: Allow server admins and v12 room creators to publish rooms
2026-04-12 14:09:53 +00:00
Henry-Hiles
7250561aed
chore: clean up NixOS docs
2026-04-12 13:58:34 +00:00
Renovate Bot
d7434f7047
chore(deps): lock file maintenance
2026-04-12 05:07:02 +00:00
Renovate Bot
d5d0127ff4
chore(deps): update node-patch-updates to v2.0.9
2026-04-11 05:03:31 +00:00
Renovate Bot
ab1fc060a7
chore(deps): lock file maintenance
2026-04-10 10:56:43 +00:00
Renovate Bot
ddc9e795d8
chore(deps): update rust crate serde-saphyr to 0.0.23
2026-04-10 08:30:04 +00:00
Renovate Bot
87892a9739
chore(deps): update https://github.com/actions/github-script action to v9
2026-04-10 08:21:00 +00:00
Renovate Bot
3e2d454989
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.9
2026-04-10 08:20:12 +00:00
Henry-Hiles
a79e7a01a8
fix: indentation in nixos file
2026-04-10 08:11:44 +00:00
Henry-Hiles
b378cb8c5d
fix: multiple top-level headers in generic file
2026-04-10 08:11:44 +00:00
Henry-Hiles
68e31282ef
chore: remove nix hardened profile docs as the hardened profile will was removed from nixpkgs.
...
See https://github.com/NixOS/nixpkgs/pull/501199
2026-04-10 08:11:44 +00:00
Henry-Hiles
f40e0c7773
feat: more specific docs on how to use the flake nix package
2026-04-10 08:11:44 +00:00
Henry-Hiles
fbb855a404
feat: update build docs
2026-04-10 08:11:44 +00:00
Jade Ellis
2325e8fa4c
chore: Update generated docs
2026-04-09 17:24:45 +01:00
Jade Ellis
6906d63013
docs: Changelog
2026-04-09 17:24:44 +01:00
Jade Ellis
16de2a2cc0
feat: Add ability to inspect build information and features at runtime
...
Also re-adds ability to inspect used features
2026-04-09 17:24:44 +01:00
Jade Ellis
108a4fe336
ci: Remove caching of /target directory
...
This directory seemed to grow exponentially, with incremental
compilation reaching 11GB+ and dependencies not finishing
2026-04-09 17:17:03 +01:00
Renovate Bot
83396db5de
chore(deps): update https://github.com/samueldr/lix-gha-installer-action digest to f5e9419
2026-04-09 05:02:05 +00:00
timedout
839138c02e
chore: Add news frag
2026-04-08 20:49:59 +00:00
timedout
e03c90c2ac
fix: Sign restricted joins when we're the authorising server
2026-04-08 20:49:59 +00:00
Henry-Hiles
379ef5014c
fix: only run patchelf on linux
2026-04-08 20:14:36 +00:00
Henry-Hiles
2ab177f100
fix: fix continuwuity build on nix-darwin
2026-04-08 20:14:36 +00:00
Henry-Hiles
a818f51396
fix: devshell on darwin
...
Co-authored-by: thetayloredman <nutdriver716@gmail.com >
2026-04-08 20:14:36 +00:00
timedout
09bfe79a44
perf: Don't needlessly sign and re-hash events in send_join
2026-04-08 17:17:15 +00:00
timedout
d041adadc8
style: Fix large future clippy errors
2026-04-08 17:17:15 +00:00
timedout
189ed1c394
style: Fix large future clippy error
2026-04-08 17:17:15 +00:00
timedout
36c32938ae
fix: Don't try to sign events that don't originate from us
2026-04-08 17:17:15 +00:00
Henry-Hiles
915643c965
feat: overridable rocksdb
2026-04-07 20:41:19 +00:00
Henry-Hiles
4063b2c7da
fix: various issues with continuwuity build
2026-04-07 20:41:19 +00:00
Henry-Hiles
943bd81ce9
fix: fix typo in continuwuity build
2026-04-07 20:41:19 +00:00
Henry-Hiles
2942d9133e
chore: remove old newline
2026-04-07 20:41:19 +00:00
Henry-Hiles
18a7a85fe4
chore: remove outdated comments
2026-04-07 20:41:19 +00:00
Henry-Hiles
0fdb1be938
feat: add customizable cargoExtraArgs
2026-04-07 20:41:19 +00:00
Henry-Hiles
867a3ac376
chore: Write news fragment
2026-04-07 20:41:19 +00:00
Henry-Hiles
7a6eff091a
chore: Pin Lix installer to specific commit
2026-04-07 20:41:19 +00:00
Henry-Hiles
c278663f65
fix: devshell fixes
...
Co-authored-by: kraem <
me@kraem.xyz >
2026-04-07 20:41:19 +00:00
Henry-Hiles
c822c945e7
fix: make fmt run on correct toolchain
2026-04-07 20:41:19 +00:00
Henry-Hiles
6eb3dc1f9d
fix: postPatch issue due to version override
2026-04-07 20:41:19 +00:00
Henry-Hiles
789ec71b75
fix: fix update flake hashes workflow
2026-04-07 20:41:19 +00:00
Henry-Hiles
1cfa3ff10b
feat: add rocksdb updater nix app
2026-04-07 20:41:19 +00:00
Henry-Hiles
02cf6b5695
fix: use correct versioning for rocksdb
2026-04-07 20:41:19 +00:00
Henry-Hiles
4cc4893376
chore: remove now incorrect liburing comment in rocksdb nix build override
2026-04-07 20:41:19 +00:00
Henry-Hiles
7643b64f60
fix: patchelf binary to link to correct rocksdb
2026-04-07 20:41:19 +00:00
Henry-Hiles
3d9fd34012
feat: add meta to continuwuity build
2026-04-07 20:41:19 +00:00
Henry-Hiles
630963d6e1
fix: add bindgen hook to build
2026-04-07 20:41:19 +00:00
Henry-Hiles
36da6f5bf3
fix: recursively merge build configuration
2026-04-07 20:41:19 +00:00
Henry-Hiles
462ef63945
fix: bump rocksdb
2026-04-07 20:41:19 +00:00
Henry-Hiles
46bcfe5605
chore: rename toolchain packages
2026-04-07 20:41:19 +00:00
Henry-Hiles
16321cf467
fix: fix crane name in package build
2026-04-07 20:41:19 +00:00
Henry-Hiles
4d59e07006
chore: rewrite devshell, remove checks
2026-04-07 20:41:19 +00:00
Henry-Hiles
ec5f50c68e
chore: rewrite continuwuity build
2026-04-07 20:41:19 +00:00
Henry-Hiles
db1b08532e
chore: reorganize nix files
2026-04-07 20:41:19 +00:00
Henry-Hiles
d8f67e3b46
chore: simplify rocksdb build
2026-04-07 20:41:19 +00:00
ginger
2124fcf325
fix: Keep rustdoc from trying to run my TOML as a doctest
2026-04-07 18:40:43 +00:00
ezera
38b4065270
fix: use cfg to fix compiler warning for opts
...
Fixes #1621 .
2026-04-07 12:58:23 +00:00
Ginger
2e62ca93a8
fix: Fix registration_terms default in example config
2026-04-07 12:55:56 +00:00
Ginger
b7a6c819b7
chore: News fragment
2026-04-07 12:55:56 +00:00
Ginger
eccc878ee9
feat: Add support for terms and conditions when registering
2026-04-07 12:55:56 +00:00
Tulir Asokan
8b762cf2e6
fix: Server name caching for SRV remotes
2026-04-06 19:57:05 +00:00
timedout
1ce9ae2cbf
chore: Update example configuration file
2026-04-06 17:45:04 +00:00
thetayloredman
6a3370005e
doc: remove reference to MSC unstable prefix
2026-04-06 17:45:04 +00:00
Logan Devine
675cfb964a
feat: add support for MSC4439 PGP key URIs in wk-support
...
This commit introduces support for MSC4439, Encryption Key URIs
in `.well-known/matrix/support`. ([MSC](https://github.com/matrix-org/matrix-spec-proposals/pull/4439 ),
[Rendered](https://github.com/thetayloredman/matrix-spec-proposals/blob/msc4439/proposals/4439-support-contact-encryption.md ))
via an additional config option.
2026-04-06 17:45:04 +00:00
Tulir Asokan
09312791a7
fix(ci): Add wget to fix llvm.sh in dockerfile
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1616
Reviewed-by: nex <me@nexy7574.co.uk >
Co-authored-by: Tulir Asokan <tulir@maunium.net >
Co-committed-by: Tulir Asokan <tulir@maunium.net >
2026-04-06 15:44:18 +00:00
Ginger
087d8b1016
fix: Remove sliding sync proxy from .well-known/client response
2026-04-06 10:36:30 -04:00
Renovate Bot
6155dd2726
chore(deps): update node-patch-updates to v2.0.8
2026-04-06 13:04:13 +00:00
timedout
688cd8f46a
fix: Forbid creating events sent by remote users
2026-04-05 22:34:11 +01:00
timedout
3ab1f102dd
fix: Switch lettre to ring backend
2026-04-05 21:07:45 +00:00
timedout
480a32e4d4
chore: Add newsfrag
2026-04-05 21:04:27 +01:00
timedout
fadd559837
feat: Add admin commands to delete pushers
2026-04-05 20:58:11 +01:00
timedout
79c63c17fc
feat: Delete pushers when a user logs out
2026-04-05 20:48:03 +01:00
timedout
cdc772ba10
feat: Delete all pushers for a user during deactivation
2026-04-05 20:42:08 +01:00
timedout
5f1b80a47c
chore: Add newsfrag
2026-04-05 20:15:52 +01:00
timedout
0f8b56f521
feat: Add admin command to reset user push rules
2026-04-05 20:12:21 +01:00
éźera
67d8d72506
fix: return 404 when joining non-existent room
...
Fixes #1443 .
2026-04-05 11:40:53 -05:00
Renovate Bot
fcfa7b8bef
chore(deps): update pre-commit hook crate-ci/typos to v1.45.0
2026-04-02 05:02:08 +00:00
timedout
0cc1e4685c
style: Make main green again
2026-03-31 18:07:44 +01:00
ginger
3d2915093c
Update LICENSE
2026-03-31 02:26:22 +00:00
Ginger
e1c54f4dec
fix: Don't allow UIAA stages to be completed if no flow includes them
2026-03-31 02:20:59 +00:00
ginger
0c9fa3b7e5
feat: Add a notice about email to the first-run banner
2026-03-31 02:20:59 +00:00
Ginger
a95b488e6a
chore: Update admin command docs
2026-03-31 02:20:59 +00:00
Ginger
4f8833e937
fix: Update connection_uri docs
2026-03-31 02:20:59 +00:00
Ginger
f32599e030
feat: Supply more informative error message if email is disabled
2026-03-31 02:20:59 +00:00
Ginger
b6f0b41d3d
feat: Ratelimit sending threepid validation emails
2026-03-31 02:20:59 +00:00
Ginger
d5675b85cf
fix: Release session lock before sending threepid validation email
2026-03-31 02:20:59 +00:00
Ginger
951b5abe19
refactor: Remove UiaaStatus enum
2026-03-31 02:20:59 +00:00
Ginger
a325ad16f1
feat: Fall back to email when registering a user who didn't provide a username
2026-03-31 02:20:59 +00:00
Ginger
f93a1cc506
fix: Don't bail out on email association failures when registering a new user
2026-03-31 02:20:59 +00:00
Ginger
6e8dbcbfab
refactor: Remove workarounds for matrix-appservice-irc
2026-03-31 02:20:59 +00:00
ginger
97458207e5
chore: Update news fragment
2026-03-31 02:20:59 +00:00
Ginger
ab8929e2fa
chore: Fix typo
2026-03-31 02:20:59 +00:00
Ginger
166d7d0f63
fix: Remove associated email on account deactivation
2026-03-31 02:20:59 +00:00
Ginger
20a6f0c6fb
chore: News fragment
2026-03-31 02:20:59 +00:00
Ginger
3885e43b5d
feat: Add support for 3pid management
2026-03-31 02:20:59 +00:00
Ginger
ef7ad6082c
feat: Add support for registering a new account with an email address
2026-03-31 02:20:59 +00:00
Ginger
717d319708
feat: Add support for logging in with an email address
2026-03-31 02:20:59 +00:00
Ginger
0b04757bef
feat: Add support for password resets via email
2026-03-31 02:20:59 +00:00
Ginger
f2b7dd6519
feat: Add a webpage for threepid validation links
2026-03-31 02:20:59 +00:00
Ginger
9d06208a7a
feat: Store threepid validation sessions in memory instead of the database
2026-03-31 02:20:59 +00:00
Ginger
955da3a74f
feat: Add admin commands for managing users' email addresses
2026-03-31 02:20:59 +00:00
Ginger
7e79a544cf
refactor: Split account routes into multiple files
2026-03-31 02:20:59 +00:00
Ginger
f5db4d17d6
feat: Refactor UIAA service, add support for email stage
2026-03-31 02:20:59 +00:00
Ginger
54fd1d313f
feat: Implement threepid service
2026-03-31 02:20:59 +00:00
Ginger
bb7fd9efc1
feat: Implement mailer service for sending emails
2026-03-31 02:20:59 +00:00
Jade Ellis
aa79072411
docs: Revert duplicate link
2026-03-29 19:34:56 +01:00
Jade Ellis
8b72c5eb11
docs: Fix email link
2026-03-29 19:25:24 +01:00
Jade Ellis
e5cfc503d8
docs: Delete unused book.toml
2026-03-29 19:21:02 +01:00
Jade Ellis
07d5081008
docs: Apply feedback
2026-03-29 19:20:05 +01:00
Jade Ellis
dba7f47972
docs: Link MatrixRTC room
2026-03-29 19:15:42 +01:00
Jade Ellis
0a2d4e1cb2
docs: Replace Contributor Covenant with community guidelines
2026-03-29 19:15:42 +01:00
Jade Ellis
f45857acd4
docs: Update community guidelines
2026-03-29 19:15:41 +01:00
norm
9209b847f6
docs: Mention systemd's ReadWritePaths setting for the backup dir
...
The systemd unit file uses `ProtectSystem=strict`, which makes almost
every directory read-only. This can cause backups to not work, even if
the directory is granted the correct permissions and ownership to the
`conduwuit` user.
The `ReadWritePaths` setting lets you specify which directories are
exempt from being made read-only by `ProtectSystem=strict`.
2026-03-27 19:25:26 +00:00
Jade Ellis
cf9c2c23b6
chore: Upgrade git dependencies
2026-03-27 18:39:43 +00:00
Jade Ellis
1bd161a306
fix(deps): Update to rocksdb v10.10.1, jemalloc 0.6.1
...
Re-adds revert to try and fix rocksdb repair deadlock
2026-03-27 18:39:43 +00:00
Renovate Bot
0a0206e866
chore(deps): update node-patch-updates to v2.0.7
2026-03-27 13:31:35 +00:00
Henry-Hiles
e6f31d7d4f
fix(renovate): Fix name of extends of renovate.json to use full name for pinGitHubActionDigests
2026-03-26 21:45:11 -04:00
timedout
f0c3fdfe3a
fix: Well-known read errors no longer crash resolver flow
...
Reviewed-By: Jade Ellis <jade@ellis.link >
2026-03-27 00:54:17 +00:00
Jade
3c3314b498
deps: Pin actions
...
In the wake of all the compromises so far this week, this seems like a good idea.
2026-03-27 00:46:06 +00:00
Niklas Wojtkowiak
8e7846c644
fix(alias): preserve room alias enumeration on delete
2026-03-26 19:23:24 +00:00
Jade Ellis
3ebaba920f
ci: Minor improvements
2026-03-25 17:32:28 +00:00
Jade Ellis
19e620c8c6
ci: Automatically comment on pull requests missing changelog entries
2026-03-25 17:32:28 +00:00
Henry-Hiles
300b6d81e7
feat(nix): add NPM to devshell
2026-03-25 12:55:49 +00:00
PerformativeJade
ed81dfc6cd
fix: Thumbnail fetching error handling
2026-03-24 20:14:55 +00:00
Jade Ellis
2ffafc17d2
style: Unmeow
2026-03-24 19:48:37 +00:00
Jade Ellis
8589563a2f
meow
2026-03-24 19:46:14 +00:00
Henry-Hiles
27d806e961
fix(docs): make contributing.mdx a symlink
2026-03-24 11:18:54 -04:00
stratself
7aa02a1cd9
fix(docs): Remove prefligit reference
2026-03-24 13:20:56 +00:00
stratself
fc342f5401
docs: move all contrib docs to central source at CONTRIBUTING.md
...
* remove rarely-used docs/contributing.mdx page and redirect links to
docs/development/contributing.mdx
* softlink docs/development/contributing.mdx to CONTRIBUTING.md
* add back section of towncrier to CONTRIBUTING.md
* use indirect hyperlinks for all URLs in CONTRIBUTING.md
2026-03-24 13:20:56 +00:00
stratself
ef089c1800
docs(livekit): Put livekit+coturn port clash notice in a tip box
...
* reworded first part of external TURN integration
* add restart/recreate instructions to apply final TURNs changes
2026-03-24 13:20:13 +00:00
stratself
279c505af9
docs(livekit): Further enhance compose instructions + examples
2026-03-24 13:20:13 +00:00
stratself
f9058ee062
docs: Add instructions from #1440 to Livekit workarounds
...
* still keep the link to the issue on forgejo
* also fixed a word in the Calls overview page
2026-03-24 13:20:13 +00:00
stratself
6c856bd1a4
chore: Write news fragment for PR
2026-03-24 13:20:13 +00:00
stratself
4dbda8692c
fix(docs): Other small improvements in clarity and consistent wordings
2026-03-24 13:20:13 +00:00
stratself
075914d8e8
fix(docs): Use correct var for nonfed server in livekit t00ting
2026-03-24 13:20:13 +00:00
stratself
a2a644194b
fix(docs): Remove trailing whitespace
2026-03-24 13:20:13 +00:00
stratself
093ef742c3
docs(livekit): various mini-clarifications and edits
...
* specify that the added ports belong to livekit's container in
TURN section, and remind firewall rules for them
* prioritize the network_mode: host workaround
* add docker livelogs instructions
* use bash for code blocks instead of console
* some other small fixes
2026-03-24 13:20:13 +00:00
stratself
010daf079d
fix(docs): use docker run instead of exec for a livekit troubleshooting command
2026-03-24 13:20:13 +00:00
stratself
58c4f5d5b5
fix(docs): further apply fixes from feedback for livekit documentation
2026-03-24 13:20:13 +00:00
ginger
c78a72bbef
chore: Trim trailing whitespace
...
Signed-off-by: Ellis Git <forgejo@mail.ellis.link >
2026-03-24 13:20:13 +00:00
stratself
7e8f1ffd63
fix(docs): little nits for livekit's troubleshooting section
2026-03-24 13:20:13 +00:00
stratself
3d0b886ab8
fix(docs): apply clarity fixes for livekit testing from feedbacks
...
* clearer wording and ordering on client token versus openid token
* provide outputs for curl examples
2026-03-24 13:20:13 +00:00
stratself
2e7bfea240
docs(livekit): new troubleshooting section and other small changes
...
* add link to matrix-rtc room
* include livekit key-secret pair examples for clarity with livekit.yaml
* troubleshooting: add common EC errors and docker networking subsections
* fix a merge conflict issue
2026-03-24 13:20:13 +00:00
stratself
b9456c1130
docs: add caveat for deployment with non-federated instances
2026-03-24 13:20:13 +00:00
stratself
3ce6e909dd
docs: apply changes from feedback
...
turn all the things into LiveKit
2026-03-24 13:20:13 +00:00
stratself
3b4b401a51
docs: add livekit testing instructions against new /get_token endpoint
2026-03-24 13:20:13 +00:00
stratself
260b88975d
docs: replace personal links and small fixes in docs for Livekit TURN
2026-03-24 13:20:13 +00:00
stratself
be8e3772c1
docs: rework Related Documentation section for livekit page
...
* separate links into categories in order of importance: guides, specs, source codes
* add short description to included community guides
* add Element Call, lk-jwt-service, and the livekit MSCs too
2026-03-24 13:20:13 +00:00
stratself
8b91db2918
docs: add caveat for deployment with non-federated instances
2026-03-24 13:20:13 +00:00
stratself
34758c52cc
docs: apply changes from feedback
...
turn all the things into LiveKit
2026-03-24 13:20:13 +00:00
stratself
8b8c015dcc
docs: add livekit testing instructions against new /get_token endpoint
2026-03-24 13:20:13 +00:00
stratself
9afe5f6bed
docs: add caveat for deployment with non-federated instances
2026-03-24 13:20:13 +00:00
stratself
fe03b3b8b7
docs: apply changes from feedback
...
turn all the things into LiveKit
2026-03-24 13:20:13 +00:00
stratself
a04ef6d686
docs: add livekit testing instructions against new /get_token endpoint
2026-03-24 13:20:13 +00:00
stratself
fd807ff1f6
docs: specify both inbuilt + external options for livekit TURN in calls page
2026-03-24 13:20:13 +00:00
stratself
b0632dde41
docs: replace personal links and small fixes in docs for Livekit TURN
2026-03-24 13:20:13 +00:00
stratself
cc3a8a1d40
docs: move Livekit's inbuilt TURN guide to top
...
The purpose is to simplify new deployments, which are more likely
to use Livekit-only calls. This also makes docs flow a bit better
2026-03-24 13:20:13 +00:00
stratself
30a540d8bc
docs: rework Related Documentation section for livekit page
...
* separate links into categories in order of importance: guides, specs, source codes
* add short description to included community guides
* add Element Call, lk-jwt-service, and the livekit MSCs too
2026-03-24 13:20:13 +00:00
stratself
6d0832a6ee
docs: replaces all instances of matrix-rtc to livekit to match rest of page
2026-03-24 13:20:13 +00:00
Renovate Bot
119aa6476d
chore(deps): update docker/setup-qemu-action action to v4
2026-03-24 13:12:12 +00:00
Jonathan Sutton
b9854662f3
fix(room_member): Strip join_authorized_via_users_server ( #1542 )
...
Realized code for fix did in fact require a check for
`join_authorized_via_users_server` before stripping. Otherwise,
waste processing power, most of the time.
Signed-off-by: Jonathan Sutton <jonathansutton91@proton.me >
2026-03-24 13:11:25 +00:00
Jonathan Sutton
dab50b1ec3
fix(room_member): Strip join_authorized_via_users_server ( #1542 )
...
Fixed test.
Signed-off-by: Jonathan Sutton <jonathansutton91@proton.me >
2026-03-24 13:11:25 +00:00
Jonathan Sutton
0338539221
fix(room_member): Strip join_authorized_via_users_server ( #1542 )
...
Added test.
Signed-off-by: Jonathan Sutton <jonathansutton91@proton.me >
2026-03-24 13:11:25 +00:00
Jonathan Sutton
e94e614498
fix(room_member): Strip join_authorized_via_users_server ( #1542 )
...
Removed extra clone() and made membership_content mutable, to change
contents and reserialize to json.
Signed-off-by: Jonathan Sutton <jonathansutton91@proton.me >
2026-03-24 13:11:25 +00:00
Jonathan Sutton
098e8a0b92
fix(room_member): Strip join_authorized_via_users_server ( #1542 )
...
Added news fragment.
Signed-off-by: Jonathan Sutton <jonathansutton91@proton.me >
2026-03-24 13:11:25 +00:00
Jonathan Sutton
1c3890476a
fix(room_member): Strip join_authorized_via_users_server ( #1542 )
...
Actually implemented fix. Modified json if user was already a member.
Signed-off-by: Jonathan Sutton <jonathansutton91@proton.me >
2026-03-24 13:11:25 +00:00
Jonathan Sutton
8ef6f02ee9
fix(room_member): Strip join_authorized_via_users_server ( #1542 )
...
Some clients were sending join_authorized_via_users_server when they
were already in the room, to change nicknames. This caused an undesirable
error, so a check for if they were already in the room was moved and
changed to strip from metadata before attempting to process metadata.
Signed-off-by: Jonathan Sutton <jonathansutton91@proton.me >
2026-03-24 13:11:25 +00:00
Renovate Bot
11020df89d
chore(deps): update node-patch-updates to v2.0.6
2026-03-24 13:10:39 +00:00
Renovate Bot
47e3738807
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.8
2026-03-24 13:08:48 +00:00
Renovate Bot
8afb19757e
chore(deps): update dependency typescript to v6
2026-03-24 05:02:11 +00:00
31a05b9c
de3dfb2bea
style: format
2026-03-23 20:54:10 +00:00
31a05b9c
bbb2615f2c
fix: request errror: error sending request
2026-03-23 19:27:18 +00:00
coolGi
af1b4de231
fix: Typo in the domain for the announcment schema
2026-03-22 21:34:55 +13:00
timedout
677c407755
chore: Bump ruwuma
...
# Conflicts:
# Cargo.lock
# Cargo.toml
2026-03-21 16:24:05 +00:00
renovate
e3ae714248
chore(Nix): Updated flake hashes
2026-03-20 18:55:28 +00:00
Jade Ellis
fb9a2aa4d6
chore: Upgrade Rust to 1.92
2026-03-20 18:27:59 +00:00
coolGi
5164822090
chore: Update ruwuma
2026-03-21 06:13:45 +13:00
Jade Ellis
6b013bcf60
chore: Update funding links
2026-03-19 12:45:12 +00:00
Ginger
05a49ceb60
chore: Whitelist cognitive_complexity lint
2026-03-18 13:59:48 -04:00
Ginger
728c5828ba
feat: Add a panic handler and clean up error page
2026-03-18 13:43:34 -04:00
Ginger
50c94d85a1
fix: Code cleanup
2026-03-18 13:18:53 -04:00
Ginger
0cc188f62c
fix: Remove redirect on index
2026-03-18 12:42:55 -04:00
Ginger
6451671f66
fix: Update doc comment
2026-03-18 12:42:55 -04:00
theS1LV3R
ca21a885d5
chore: Rename option index_page_allow_indexing to allow_web_indexing
2026-03-18 12:42:55 -04:00
Ginger
4af4110f6d
chore: Update news fragment
2026-03-18 12:42:55 -04:00
Ginger
51b450c05c
feat: Use a context struct to store global template context
2026-03-18 12:42:55 -04:00
theS1LV3R
f9d1f71343
fix: Fix logic error
2026-03-18 12:42:55 -04:00
theS1LV3R
7901e4b996
chore: Add news fragment for !1527
2026-03-18 12:42:55 -04:00
theS1LV3R
7b6bf4b78e
feat: Add option for a noindex meta tag on the HTML index page
...
Adds a new config option `index_page_allow_indexing` which defaults to false.
Fixes : !1527
2026-03-18 12:42:55 -04:00
Ginger
67d5619ccb
fix: Fix password reset page appearance in light mode
2026-03-18 12:42:55 -04:00
Ginger
bf001f96d6
feat: Restrict reset token command
2026-03-18 12:42:55 -04:00
Ginger
ae2b87f03f
fix: Fix M_NOT_FOUND for users with no origin set
2026-03-18 12:42:55 -04:00
Ginger
957cd3502f
fix: Evil CSS hackery
2026-03-18 12:42:55 -04:00
Ginger
a109542eb8
fix: Disable text selection on k10y
2026-03-18 12:42:55 -04:00
Ginger
8c4844b00b
fix: Use error page for extractor rejections
2026-03-18 12:42:55 -04:00
Ginger
eec7103910
feat: Implement dedicated 404 page for routes under /_continuwuity/
2026-03-18 12:42:55 -04:00
Ginger
43aa172829
feat: Move index to /_continuwuity/
2026-03-18 12:42:55 -04:00
Ginger
9b4c483b6d
chore: Remove unnecessary database map left over from refactor
2026-03-18 12:42:55 -04:00
Ginger
b885e206ce
fix: Use server name in index again
2026-03-18 12:42:55 -04:00
Ginger
07a935f625
fix: Add CSRF protection
2026-03-18 12:42:55 -04:00
Ginger
d13801e976
fix: Disallow issuing password reset tokens for deactivated users
2026-03-18 12:42:55 -04:00
Ginger
5716c36b47
chore: Change password reset page path
2026-03-18 12:42:55 -04:00
Ginger
f11943b956
chore: News fragment
2026-03-18 12:42:55 -04:00
Ginger
8b726a9c94
chore: Cleanup
2026-03-18 12:42:55 -04:00
Ginger
ffa3c53847
feat: Implement a webpage for self-service password resets
2026-03-18 12:42:55 -04:00
Ginger
da8833fca4
feat: Implement a command for issuing password reset links
2026-03-18 12:42:55 -04:00
Ginger
267feb3c09
feat: Add a new service for handling password resets
2026-03-18 12:42:55 -04:00
Ginger
3d50af0943
refactor: Split web code into multiple files, improve static resource loading
2026-03-18 12:42:55 -04:00
Ginger
9515019641
fix: Allow cognitive_complexity on two particularly large functions
2026-03-18 10:57:50 -04:00
Renovate Bot
f0f53dfada
chore(deps): lock file maintenance
2026-03-18 05:05:56 +00:00
Renovate Bot
acef746d26
fix(deps): Update rust crate recaptcha-verify to 0.2.0
2026-03-17 13:20:50 +00:00
Jade Ellis
3356b60e97
chore: Remove git.nexy7574.co.uk mirror
...
This mirror seems to have some issues preventing regsync from working.
2026-03-16 18:13:26 +00:00
Jade Ellis
c988c2b387
chore: Release
2026-03-16 16:48:53 +00:00
theS1LV3R
3121229707
docs: Update docker documentation to add /sbin/conduwuit to examples
...
These will likely have to be updated when !1485 goes through.
Fixes : !1529
2026-03-15 00:21:37 +00:00
Shane Jaroch
ff85145ee8
fix: missing logic inversion for acquired keys (should speed up room joins)
2026-03-13 20:54:38 -04:00
lveneris
f61d1a11e0
chore: set correct commit types for all renovate PRs
2026-03-09 21:51:21 +00:00
lveneris
11ba8979ff
chore: batch non-major non-zerover cargo renovate PRs
2026-03-09 21:51:21 +00:00
Ginger
f6956ccf12
fix: Nuke all remaining references to MSC3575 in docs and code
2026-03-09 17:11:19 +00:00
Kimiblock Moe
977a5ac8c1
Enable the reloading of systemd credentials
...
systemd v260 has introduced a new option: RefreshOnReload, of which when set to true automatically reloads all confext and credential files. This should eliminate the full restart requirement to reload a changed configuration.
2026-03-09 16:08:47 +00:00
timedout
906c3df953
style: Reduce migration warning verbosity to info
...
They aren't actually warning of anything
2026-03-09 13:30:24 +00:00
timedout
33e5fdc16f
style: Reduce verbosity of fix_corrupt_msc4133_fields
2026-03-09 13:30:24 +00:00
timedout
77ac17855a
fix: Don't fail on invalid stripped state entries during migration
2026-03-09 13:30:24 +00:00
timedout
65ffcd2884
perf: Insert missed migration markers into fresh databases
2026-03-09 13:30:24 +00:00
timedout
7ec88bdbfe
feat: Make noise about migrations and make errors more informative
2026-03-09 13:30:24 +00:00
Ginger
da3fac8cb4
fix: Use more robust check for max_request_size
2026-03-09 13:27:39 +00:00
Trash Panda
3366113939
fix: Retrieve content_type and video width/height
2026-03-09 13:27:39 +00:00
Trash Panda
9039784f41
fix: Clippy lints
2026-03-09 13:27:39 +00:00
Trash Panda
7f165e5bbe
fix: Refactor and block media downloads larger than max_request_size
2026-03-09 13:27:39 +00:00
Trash Panda
c97111e3ca
fix: Update example config
2026-03-09 13:27:39 +00:00
Trash Panda
e8746760fa
feat(url-preview): Optionally download audio/video files for url preview requests
2026-03-09 13:27:39 +00:00
Katie Kloss
9dbd75e740
docs: Update FreeBSD instructions
2026-03-09 13:26:57 +00:00
Renovate Bot
85b2fd91b9
chore(deps): update rust crate serde-saphyr to 0.0.21
2026-03-09 13:26:23 +00:00
Renovate Bot
6420c218a9
chore(deps): update node-patch-updates to v2.0.5
2026-03-09 12:59:58 +00:00
Renovate Bot
ec9402a328
chore(deps): update github-actions-non-major
2026-03-09 12:32:58 +00:00
Renovate Bot
d01f06a5c2
chore(deps): lock file maintenance
2026-03-09 12:32:42 +00:00
Renovate Bot
aee51b3b0d
chore(deps): update docker/setup-buildx-action action to v4
2026-03-08 14:52:50 +00:00
Renovate Bot
afcbccd9dd
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v43
2026-03-08 13:10:56 +00:00
Renovate Bot
02448000f9
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.7
2026-03-08 12:43:37 +00:00
Renovate Bot
6af8918aa8
chore(deps): update docker/login-action action to v4
2026-03-08 12:43:26 +00:00
Renovate Bot
08f83cc438
chore(deps): update docker/build-push-action action to v7
2026-03-08 12:43:04 +00:00
Renovate Bot
a0468db121
chore(deps): update docker/metadata-action action to v6
2026-03-08 05:03:55 +00:00
Tom Foster
4f23d566ed
docs(docker): Restructure deployment guide and add env var reference
...
Add Quick Run section with complete getting-started workflow including
admin user creation via --execute flag. Consolidate Docker Compose to
treat reverse proxy as essential with Traefik/Caddy/nginx examples.
Move detailed image building to development guide, keeping deployment
docs focused on using pre-built images.
Create environment variables reference with practical examples and
context. Clarify built-in TLS is for testing only; production should
use reverse proxies.
2026-03-07 18:28:47 +00:00
Ginger
dac619b5f8
fix: Lower "timeline for newly joined room is empty" to debug_warn
...
Reviewed-by: nex <me@nexy7574.co.uk >
2026-03-07 11:56:15 -05:00
stratself
fdc9cc8074
docs: small refactor of the troubleshooting page
...
* rename "Continuwuity and Matrix issues" to just "Continuwuity issues"
* move "Config not applying" subsection to C10y issues section
* rename "General potential issues" to just "DNS issues" - this section
will be elaborated later in a DNS tuning page
2026-03-06 16:35:11 +00:00
timedout
40b1dabcca
chore: Add news fragment
2026-03-06 14:32:13 +00:00
timedout
94c5af40cf
fix: Automatically remove corrupted appservice registrations
2026-03-06 14:21:04 +00:00
Renovate Bot
36a3144757
chore(deps): update rust crate tokio to v1.50.0
2026-03-05 13:33:32 +00:00
Trash Panda
220b61c589
docs: Update prefligit references to prek
2026-03-05 13:32:22 +00:00
Ginger
38e93cde3e
chore: News fragment
2026-03-04 12:51:59 -05:00
Ginger
7e501cdb09
fix: Fix left rooms always being sent on initial sync
2026-03-04 12:51:54 -05:00
Shane Jaroch
da182c162d
fix(registration): discrepancy between 401 response and 500 log statement
2026-03-04 16:18:38 +00:00
aviac
9a3f7f4af7
feat(nix): always enable liburing in all builds by default
2026-03-04 15:58:15 +00:00
Skyler Mäntysaari
5ce1f682f6
docs: Update the actual doc page
2026-03-04 15:37:06 +00:00
Skyler Mäntysaari
5feb08dff2
docs: Update delete-past-remote-media example with correct flag syntax
...
It's not just a single `-` but rather `--`.
2026-03-04 15:37:06 +00:00
Ginger
1e527c1075
chore: Update example config
2026-03-04 10:24:16 -05:00
Trash Panda
c6943ae683
fix(pre-commit): Use default clippy toolchain to avoid cache thrashing
2026-03-04 15:10:48 +00:00
Trash Panda
8932dacdc4
fix(pre-commit): Remove unnecessary test expression
2026-03-04 15:10:48 +00:00
Trash Panda
0be3d850ac
fix: Lessen complexity of test expression
2026-03-04 15:10:48 +00:00
Trash Panda
57e7cf7057
fix: Prevent clippy from running on changes that don't include rust code
2026-03-04 15:10:48 +00:00
Trash Panda
1005585ccb
fix: Remove erroneous addition of pre-push stage to default_stages
2026-03-04 15:10:48 +00:00
Trash Panda
1188566dbd
fix: Typo in always_run
2026-03-04 15:10:48 +00:00
Trash Panda
0058212757
chore: Add pre-push hook to run clippy
2026-03-04 15:10:48 +00:00
stratself
dbf8fd3320
docs: Add Delegation page ( #1414 )
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1414
Reviewed-by: Jade Ellis <jade@ellis.link >
Reviewed-by: Jacob Taylor <aranjedeath@noreply.forgejo.ellis.link >
Co-authored-by: stratself <stratself@proton.me >
Co-committed-by: stratself <stratself@proton.me >
2026-03-04 15:10:00 +00:00
Ginger
ce295b079e
chore: News fragment
2026-03-04 15:06:26 +00:00
Ben Botwin
5eb74bc1dd
feat: Readded support for reading registration tokens from a file
...
Co-authored-by: Ginger <ginger@gingershaped.computer >
2026-03-04 15:06:26 +00:00
Niklas Wojtkowiak
da561ab792
fix(rooms): prevent removing admin room alias
...
Only the server user can now remove the #admins alias, matching the
existing check for setting the alias. This prevents users from
accidentally breaking the admin room functionality.
fixes #1408
2026-03-04 15:05:24 +00:00
Niklas Wojtkowiak
80c9bb4796
fix(rooms): prevent removing admin room alias
...
Only the server user can now remove the #admins alias, matching the
existing check for setting the alias. This prevents users from
accidentally breaking the admin room functionality.
fixes #1408
2026-03-04 15:05:24 +00:00
Renovate Bot
22a47d1e59
chore(deps): update pre-commit hook crate-ci/committed to v1.1.11
2026-03-04 15:05:03 +00:00
Ginger
83883a002c
fix(complement): Fix complement conflicting with first-run
...
- Disabled first-run mode when running Complement tests
- Updated logging config under complement to be a bit less verbose
- Changed test result and log output locations
2026-03-04 15:04:37 +00:00
31a05b9c
8dd4b71e0e
fix: make dropped PDU warning less useless
2026-03-04 14:58:01 +00:00
lveneris
6fe3b1563c
docs: update caddy docker compose example
2026-03-04 14:57:39 +00:00
lveneris
44d3825c8e
docs(config): merge backwards compatibility descriptions
2026-03-04 14:57:27 +00:00
lveneris
d6c5484c3a
docs(config): use CONTINUWUITY_ environment prefix
2026-03-04 14:57:27 +00:00
Renovate Bot
1fd6056f3f
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.6
2026-03-04 14:37:37 +00:00
Renovate Bot
525a0ae52b
chore(deps): update node-patch-updates to v2.0.4
2026-03-04 14:35:14 +00:00
Jade Ellis
60210754d9
chore: Admin announcement
2026-03-04 09:13:41 +00:00
Renovate Bot
08dd787083
chore(deps): update pre-commit hook crate-ci/typos to v1.44.0
2026-03-04 05:03:04 +00:00
Jade Ellis
2c7233812b
chore: Release
2026-03-04 00:32:43 +00:00
timedout
d725e98220
fix(ci): Special case ubuntu-latest
2026-03-03 23:07:55 +00:00
Jade Ellis
0226ca1e83
chore: Changelog for 0.5.6
2026-03-03 21:55:05 +00:00
nex
1695b6d19e
fix(ci): Revert llvm-project#153385 workaround
...
LLVM was removed from the runner image, so this workaround (and dodgy clang manual pkg selection) is no longer necessary
Signed-off-by: Ellis Git <forgejo@mail.ellis.link >
2026-03-03 21:53:04 +00:00
Jade Ellis
c40cc3b236
chore: Release
2026-03-03 20:59:08 +00:00
Jade Ellis
754959e80d
fix: Don't process admin escape commands for local users from federation
...
Reviewed-By: timedout <git@nexy7574.co.uk >
2026-03-03 19:55:50 +00:00
timedout
37888fb670
fix: Limit body read size of remote requests (CWE-409)
...
Reviewed-By: Jade Ellis <jade@ellis.link >
2026-03-03 19:54:34 +00:00
Jade Ellis
7207398a9e
docs: Changelog
2026-03-03 19:39:54 +00:00
Jason Volk
1a7bda209b
feat: Implement Dehydrated Devices MSC3814
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2026-03-03 19:39:53 +00:00
Autumn Ashton
7e1950b3d2
fix(docker): Fix building a docker container with dev profile
...
In Rust, the dev profile uses "debug" as the name of the output folder.
2026-03-03 19:31:04 +00:00
timedout
b507898c62
fix: Bump ruwuma again
2026-03-03 18:10:28 +00:00
nexy7574
f4af67575e
fix: Bump ruwuma to resolve duplicate state error
2026-03-03 06:01:02 +00:00
timedout
6adb99397e
feat: Remove MSC4010 support
2026-02-27 17:03:19 +00:00
Renovate Bot
8ce83a8a14
chore(deps): update rust crate axum-extra to 0.12.0
2026-02-25 17:16:35 +00:00
Niklas Wojtkowiak
052c4dfa21
fix(sync): don't override sliding sync v5 list range start to zero
2026-02-24 13:59:33 +00:00
lynxize
a43dee1728
fix: Don't show successful media deletion as an error
...
Fixes !admin media delete --mxc <url> responding with an error message
when the media was deleted successfully.
2026-02-23 22:02:34 -07:00
Niklas Wojtkowiak
763d9b3de8
fixup! fix(api): restore backwards compatibility for RTC foci config
2026-02-23 18:10:25 -05:00
Niklas Wojtkowiak
1e6d95583c
chore(deps): update ruwuma revision
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
8a254a33cc
fix(api): restore backwards compatibility for RTC foci config
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
c97dd54766
chore(changelog): add news fragment for #1442
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
8ddb7c70c0
feat(api): implement MSC4143 RTC transports discovery endpoint
...
Add dedicated \`GET /_matrix/client/v1/rtc/transports\` and \`GET /_matrix/client/unstable/org.matrix.msc4143/rtc/transports\` endpoints for MatrixRTC focus discovery (MSC4143), replacing the deprecated well-known approach.
Move RTC foci configuration from \`[global.well_known]\` into a new \`[global.matrix_rtc]\` config section with a \`foci\` field. Remove \`rtc_foci\` from the \`.well-known/matrix/client\` response. Update LiveKit setup documentation accordingly.
Closes #1431
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
cb9786466b
chore(changelog): add news fragment for #1441
2026-02-23 17:59:13 +00:00
Niklas Wojtkowiak
18d2662b01
fix(config): remove allow_public_room_directory_without_auth
2026-02-23 17:59:13 +00:00
timedout
558262dd1f
chore: Refactor transaction_ids -> transactions
2026-02-23 17:44:35 +00:00
timedout
d311b87579
chore: Fix incorrect capitalisation
...
I didn't realise I agreed to take an English class with @ginger while
working on this server lol
2026-02-23 17:25:12 +00:00
timedout
8702f55cf5
fix: Don't panic if nobody's listening
2026-02-23 17:22:37 +00:00
timedout
d4481b07ac
chore: Add news frag
2026-02-23 16:54:54 +00:00
Jade Ellis
92351df925
refactor: Make federation transaction handle errors correctly
...
We have a dedicated error type that's then matched.
Event sorting is now infallible.
Could probably be cleaned up in a bit.
2026-02-23 16:36:46 +00:00
Jade Ellis
47e2733ea1
refactor: Make stream utils generic over the error type
2026-02-23 16:36:46 +00:00
Jade Ellis
6637e4c6a7
fix: Clean up cache, prevent several race conditions
...
We use one map which is only ever held for a short time.
2026-02-23 16:36:46 +00:00
nexy7574
35e441452f
feat: Attempt to build localised DAG before processing PDUs
2026-02-23 16:36:46 +00:00
nexy7574
66bbb655bf
feat: Warn when server is overloaded
2026-02-23 16:36:45 +00:00
nexy7574
81b202ce51
chore: Decrease transaction log verbosity
2026-02-23 16:36:45 +00:00
nexy7574
4657844d46
feat: Show active transaction handle count in !admin federation incoming-federation
2026-02-23 16:36:45 +00:00
nexy7574
9016cd11a6
chore: Run pre-commit and clippy to fix inherited CI errs
2026-02-23 16:36:45 +00:00
nexy7574
dd70094719
feat: Make max_active_txns actually configurable
2026-02-23 16:36:45 +00:00
nexy7574
fcd49b7ab3
fix: Remove duplicate fields from logs
2026-02-23 16:36:45 +00:00
nexy7574
470c9b52dd
feat: Instrument process_inbound_transaction
2026-02-23 16:36:45 +00:00
nexy7574
0d8cafc329
feat: Support casting transaction processing to the background
2026-02-23 16:36:44 +00:00
nexy7574
2f9956ddca
feat: Add helper functions for federation channels
2026-02-23 16:36:44 +00:00
nexy7574
21a97cdd0b
chore: Refactor existing references to transaction service
2026-02-23 16:36:44 +00:00
nexy7574
e986cd4536
feat(federation): Restructure transaction_ids service
...
Adds two new in-memory maps to the service in to prepare for better handlers
2026-02-23 16:36:40 +00:00
Shane Jaroch
526d862296
fix: more aggressive user agent for URL preview
...
adding "facebookexternalhit" alongside "embedbot" fixes many errors, such as YouTube Music's:
"Your browser is deprecated. Please upgrade."
add admin command to clear URL stuck and broken data (per URL currently)
add command to clear all saved URL previews.
sync resolver docs.
2026-02-23 15:24:14 +00:00
Ben Botwin
fbeb5bf186
report permission denied errors
2026-02-23 15:22:18 +00:00
Ben Botwin
a336f2df44
fixed formatting
2026-02-23 15:22:18 +00:00
Ben Botwin
19b78ec73e
made error handling more concise
2026-02-23 15:22:18 +00:00
Ben Botwin
27ff2d9363
added more granular error handling for other file fetch function
2026-02-23 15:22:18 +00:00
Ben Botwin
50fa8c3abf
ran format
2026-02-23 15:22:18 +00:00
Ben Botwin
18c4be869f
added handling for other potential errors
2026-02-23 15:22:18 +00:00
Ben Botwin
fc00b96d8b
Added proper 404 for not found media and fixed devshell for running tests
2026-02-23 15:22:18 +00:00
Jade Ellis
fa4156d8a6
docs: Changelog
2026-02-22 21:19:20 +00:00
Jade Ellis
23638cd714
feat(appservices): MSC3202 Device masquerading for appservices
2026-02-22 21:19:20 +00:00
Raven
9f1a483e76
docs: Add information about partnered homeservers to the introduction page & update README.md
...
Includes step-by-step directions to ease the lift for those who have ended up
here and who have never created a matrix account or used matrix before in the
past.
Also updates the information in README.md to match, as these should generally be identical.
2026-02-21 18:51:56 -08:00
Renovate Bot
688ef727e5
chore(deps): update rust crate nix to 0.31.0
2026-02-21 16:33:05 +00:00
Shannon Sterz
3de026160e
docs: express forbidden_remote_server_names as valid regex
...
this field expects a regex not a glob, so the correct value should be
".*" if one wants to block all remote server names. otherwise, setting
"*" as documented results in an error on start because the configuration
could not be properly parsed.
2026-02-21 16:27:59 +00:00
Ginger
9fe761513d
chore: Clippy & prek fixes
2026-02-21 11:27:39 -05:00
Renovate Bot
abf1e1195a
chore(deps): update rust crate libloading to 0.9.0
2026-02-21 01:55:48 +00:00
Ginger
d9537e9b55
fix: Forbid registering users with a non-local localpart
2026-02-20 20:54:19 -05:00
Jade Ellis
0d1de70d8f
fix(deps): Update lockfile
2026-02-21 00:22:42 +00:00
Ben Botwin
4aa03a71eb
fix(nix): Added unstable flag to buildDeps
2026-02-21 00:15:53 +00:00
aviac
f847918575
fix(nix): Fix all-features build
...
The build was broken since we started using an unstable reqwest version
which requires setting an extra feature flag
2026-02-21 00:15:53 +00:00
Renovate Bot
7569a0545b
chore(deps): update dependency lddtree to 0.5.0
2026-02-20 22:59:34 +00:00
Jade Ellis
b6c5991e1f
chore(deps): Update rand
...
A couple indirect deps are still on rand_core 0.6 but we can deal
2026-02-20 22:57:45 +00:00
Katie Kloss
efd879fcd8
docs: Add news fragment
2026-02-20 10:13:54 +00:00
Katie Kloss
92a848f74d
fix: Crash before starting on OpenBSD
...
core_affinity doesn't return any cores on OpenBSD, so we try to
clamp(1, 0). This is Less Good than fixing that crate, but at
least allows the server to start up.
2026-02-20 10:13:54 +00:00
Renovate Bot
776b5865ba
chore(deps): update sentry-rust monorepo to 0.46.0
2026-02-19 14:56:25 +00:00
timedout
722bacbe89
chore: Fix busted lockfile merge
2026-02-19 02:33:41 +00:00
Jade Ellis
46907e3dce
chore: Migrate to axum 0.8
...
Co-authored-by: dasha_uwu
2026-02-19 02:18:29 +00:00
timedout
31e2195e56
fix: Remove non-compliant and non-functional non-authoritative directory queries
...
chore: Add news frag
2026-02-19 01:37:42 +00:00
Terry
7ecac93ddc
fix: Remove rocksdb secondary mode
2026-02-18 23:11:53 +00:00
Terry
6a0b103722
docs: Changelog
2026-02-18 23:11:53 +00:00
Terry
23d77b614f
fix: Remove ability to set rocksdb as read only
2026-02-18 23:11:53 +00:00
stratself
e01aa44b16
fix: add nodejs URL in CONTRIBUTING.md page
2026-02-18 23:07:29 +00:00
stratself
a08739c246
docs: rewrite how to load docs with new rspress engine
2026-02-18 23:07:29 +00:00
Ginger
c14864b881
fix: Wording fixes
2026-02-18 14:41:03 +00:00
Ginger
1773e72e68
feat(docs): Add a note about !779 to the troubleshooting page
2026-02-18 14:41:03 +00:00
kraem
0f94d55689
fix: don't warn about needed backfill via federation for non-federated rooms
2026-02-18 14:27:14 +00:00
Renovate Bot
abfb6377c2
chore(deps): update rust-patch-updates
2026-02-18 14:26:49 +00:00
Renovate Bot
91d64f5b24
chore(deps): update rust crate askama to 0.15.0
2026-02-18 05:04:23 +00:00
Jade Ellis
9a3f3f6e78
ci: Explicitly enable Dependency Dashboard
2026-02-17 21:33:30 +00:00
Jade Ellis
b3e31a4aad
ci(deps): Automerge typos updates
2026-02-17 21:33:13 +00:00
Jade Ellis
8cda431cc6
ci(deps): Group npm patch updates
2026-02-17 21:30:51 +00:00
Renovate Bot
02b9a3f713
chore(deps): update pre-commit hook crate-ci/typos to v1.43.5
2026-02-17 05:03:45 +00:00
timedout
d40893730c
chore: Lighten the phrasing
2026-02-17 02:07:19 +00:00
timedout
28fae58cf6
chore: Add news frag & rebuild config
2026-02-17 02:07:19 +00:00
timedout
f458f6ab76
chore: Disable presence by default, and add warnings to other heavy ops
2026-02-17 02:07:19 +00:00
Shane Jaroch
fdf9cea533
fix(admin-cli): concatenation/formatting error, i.e.,
...
**NOTE:** If there are any features, tools, or admin internals dependent on this output that would break, let me know!
I'm hoping this is acceptable, since it's a human-readable command.
Current output:
```shell
uwu> server list-backups
#1 Mon, 9 Feb 2026 20:36:25 +0000: 66135580 bytes, 595 files#2 Wed, 11 Feb 2026 02:33:15 +0000: 270963746 bytes, 1002 files#3 Sat, 14 Feb 2026 22:11:19 +0000: 675905487 bytes, 2139 files
```
Should be:
```shell
uwu> server list-backups
#1 Mon, 9 Feb 2026 20:36:25 +0000: 66135580 bytes, 595 files
#2 Wed, 11 Feb 2026 02:33:15 +0000: 270963746 bytes, 1002 files
#3 Sat, 14 Feb 2026 22:11:19 +0000: 675905487 bytes, 2139 files
```
2026-02-16 00:52:02 -05:00
Jade Ellis
ecb1b73c84
style: Trailing whitespace
2026-02-16 03:47:16 +00:00
rooot
e03082480a
docs(livekit): document nginx websockets too
...
Signed-off-by: rooot <hey@rooot.gay >
2026-02-16 03:43:43 +00:00
rooot
f9e7f019ad
docs(livekit): fix port in caddy config example
...
Signed-off-by: rooot <hey@rooot.gay >
2026-02-16 03:43:43 +00:00
rooot
12069e7c86
docs(livekit): add nginx proxy example
...
Signed-off-by: rooot <hey@rooot.gay >
2026-02-16 03:43:42 +00:00
Jade Ellis
77928a62b4
docs: Document BSD community room
2026-02-16 03:31:56 +00:00
elisaado
c73cb5c1bf
feat(docs): Add Kubernetes documentation with sample ( #1387 )
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1387
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: elisaado <forgejoellis@elisaado.com >
Co-committed-by: elisaado <forgejoellis@elisaado.com >
2026-02-16 03:14:29 +00:00
Jade Ellis
a140eacb04
docs: Fix trailing list
2026-02-16 03:12:50 +00:00
Jade Ellis
40536b13da
feat: Add experimental http3 support
...
Only enabled in Docker builds for now, due to build config required. Not
sure if more work is needed for 0RTT.
2026-02-16 02:56:49 +00:00
Jade Ellis
cacd8681d1
docs: Update & apply feedback
2026-02-16 02:55:26 +00:00
burgundia
b095518e6f
Update documentation to feature LiveKit-related configuration options present in continuwuity.toml
2026-02-16 02:35:41 +00:00
Jade Ellis
a91add4aca
docs: Apply feedback
2026-02-16 02:35:41 +00:00
Jade Ellis
7fec48423a
chore: Style
2026-02-16 02:35:40 +00:00
Jade Ellis
2f6b7c7a40
docs: Update TURN guide
2026-02-16 02:35:40 +00:00
Jade Ellis
48ab6adec1
chore: Apply review comments
2026-02-16 02:35:40 +00:00
Jade Ellis
592244d5aa
docs: Last dead link
2026-02-16 02:35:40 +00:00
Jade Ellis
091893f8bc
fix: oops
2026-02-16 02:35:40 +00:00
Jade Ellis
6eba6a838e
docs: Fix broken links
2026-02-16 02:35:39 +00:00
Jade Ellis
1a11c784f5
docs: Write up how to set up LiveKit calling
2026-02-16 02:35:38 +00:00
Renovate Bot
55ccfdb973
chore(deps): update rust-patch-updates
2026-02-15 23:04:26 +00:00
Henry-Hiles
a9a39e6d5e
fix: Update regex for web template in uwulib build
2026-02-15 23:04:05 +00:00
Jade Ellis
38bf1ccbcc
refactor: Drop duplicate clone
2026-02-15 23:03:23 +00:00
timedout
b7a8cbdb42
feat: Exclude empty rooms from !admin rooms list by default
...
Reviewed-By: Ginger <ginger@gingershaped.computer >
2026-02-15 23:03:23 +00:00
Ginger
4e1dac32a5
fix: Don't panic when running startup admin commands
2026-02-15 17:32:26 -05:00
timedout
7b21c3fd9f
chore: Update changelog
2026-02-15 20:39:14 +00:00
timedout
f566ca1b93
chore: Release 0.5.5
2026-02-15 20:31:58 +00:00
timedout
debe411e23
fix(ci): Work around LLVM issue & dynamically select clang pkg version
2026-02-15 20:27:55 +00:00
timedout
dc0d6a9220
fix: Install clang-23 specifically
...
clang (clang-22) is busted
2026-02-15 19:09:33 +00:00
timedout
2efdb6fb0d
fix: Work around https://github.com/llvm/llvm-project/issues/153385
2026-02-15 18:55:17 +00:00
Ginger
576348a445
fix: Set default value of allow_registration to true
2026-02-15 18:05:42 +00:00
Ginger
f322b6dca0
chore: News fragment
2026-02-15 18:05:42 +00:00
Ginger
a1ed77a99c
feat: Add a link to the clients list on matrix.org
2026-02-15 18:05:42 +00:00
Ginger
01b5dffeee
feat: Default index page improvements
...
- Add project logo to footer and favicon
- Display different messages depending on if first-run mode is active
2026-02-15 18:05:42 +00:00
Ginger
ea3c00da43
chore: Clippy fixes
2026-02-15 18:05:42 +00:00
Ginger
047eba0442
feat: Improve the initial setup experience
...
- Issue a single-use token for initial account creation
- Disable registration through other methods until the first account is made
- Print helpful instructions to the console on the first run
- Improve the welcome message sent in the admin room on first run
2026-02-15 18:05:42 +00:00
Ginger
11a088be5d
feat: Stop logging announcements to the console
2026-02-15 18:05:42 +00:00
Ginger
dc6bd4e541
fix: Silence unnecessary policy server errors in debug builds
2026-02-15 18:05:42 +00:00
Ginger
2bf9207cc4
feat: Add skeleton first-run service
2026-02-15 18:05:42 +00:00
Ginger
b2a87e2fb9
refactor: Add support for multiple static tokens to registration token service
2026-02-15 18:05:42 +00:00
timedout
7d0686f33c
fix: Error response can leak appservice token
...
Reviewed-By: Ginger <ginger@gingershaped.computer >
Reviewed-By: Jade Ellis <jade@ellis.link >
2026-02-15 17:58:48 +00:00
Jade Ellis
082c44f355
fix: Only sync LDAP admin status when admin_filter is configured
...
Closes #1307
2026-02-15 16:17:26 +00:00
Jade Ellis
117c581948
fix: Correct incorrectly inverted boolean expression
2026-02-15 16:11:19 +00:00
timedout
cb846a3ad1
style: Invert pending_invite_state check
2026-02-15 16:11:19 +00:00
timedout
81b984b2cc
style: Compress should_rescind_invite
2026-02-15 16:11:19 +00:00
timedout
e2961390ee
feat: Support rescinding invites over federation
2026-02-15 16:11:19 +00:00
timedout
cb75e836e0
style: Update error messages in make_join.rs
2026-02-15 16:11:19 +00:00
nexy7574
cb7a988b1b
chore: Add news frag
2026-02-15 16:11:19 +00:00
nexy7574
aa5400bcef
style: Fix IncompatibleRoomVersion log line
2026-02-15 16:11:18 +00:00
nexy7574
ff4dddd673
fix: Refactor local join process
2026-02-15 16:11:18 +00:00
nexy7574
c22b17fb29
fix: Return accurate errors in make_join for restricted rooms
2026-02-15 16:11:18 +00:00
timedout
3da7fa24db
fix: Produce more useful errors in make_join_request
2026-02-15 16:11:18 +00:00
timedout
d15ac1d3c1
fix: Use 404 instead of 400 (and include sender)
2026-02-15 15:55:36 +00:00
timedout
a9ebdf58e2
feat: Filter ignored PDUs in relations
2026-02-15 15:55:35 +00:00
timedout
f1ab27d344
feat: Return SENDER_IGNORED error for context and relations
2026-02-15 15:55:35 +00:00
timedout
8bc6e6ccca
feat: Return SENDER_IGNORED error in is_ignored_pdu
2026-02-15 15:55:32 +00:00
Jade Ellis
60a3abe752
refactor: Use HashSet
2026-02-15 15:35:29 +00:00
Ellie
e3b874d336
fix(sync): handle wildcard state keys in sliding sync required_state
2026-02-15 15:35:29 +00:00
Jade Ellis
f3f82831b4
docs: Changelog
2026-02-15 15:23:15 +00:00
Jade Ellis
26aac1408e
fix: Correct user agent changes
...
Correct the domain
Remove "embed" in the UA because the
global UA was modified, rather than
just the one for preview requests
2026-02-15 15:21:06 +00:00
Trash Panda
be8f62396a
feat(core): Change default user agent
2026-02-15 15:21:06 +00:00
Trash Panda
40996a6602
feat(core): Add config option for the url preview user agent
2026-02-15 15:21:05 +00:00
Jade Ellis
9cae531f90
doc: Changelog
2026-02-15 15:19:03 +00:00
Jade Ellis
56eea935b6
feat: Deadlock detector thread
2026-02-15 15:19:02 +00:00
Renovate Bot
fcb646f8c4
chore(deps): update rust-patch-updates
2026-02-15 05:02:30 +00:00
Jade Ellis
57b21c1b32
docs: Add links to matrix guides
2026-02-14 19:29:07 +00:00
Ginger
8d66500c99
chore: Code cleanup
2026-02-14 14:12:57 -05:00
Simon Gardling
abacf1dc20
chore: News fragment
2026-02-14 14:12:42 -05:00
Simon Gardling
134e5cadaf
fix(sliding-sync): Properly handle wildcard state_key
...
Fixes calls as described in https://forgejo.ellis.link/continuwuation/continuwuity/issues/1306
2026-02-14 14:12:35 -05:00
Renovate Bot
8ec0f0d830
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.3
2026-02-14 14:14:40 +00:00
Renovate Bot
0453544036
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.5
2026-02-14 05:03:21 +00:00
Jade Ellis
89ad809270
docs: Correct comment on rtc_focus_server_urls
2026-02-13 19:52:39 +00:00
Chris W Jones
ecd3a4eb41
build: Update ruwuma for RTC Foci responses
2026-02-13 19:52:39 +00:00
Chris W Jones
5506997ca0
feat: Add config option for livekit
...
This adds a new config option under `global.well_known` for livekit
server URLs. It also updates the well_known client API endpoint to
return this list.
Closes #1355
2026-02-13 19:52:39 +00:00
Renovate Bot
abc0683d59
chore(deps): update dependency @rspress/core to v2.0.3
2026-02-13 19:32:56 +00:00
Renovate Bot
dd60beb9fb
chore(deps): update dependency @rspress/plugin-sitemap to v2.0.3
2026-02-13 05:04:20 +00:00
arxari
d9520f9382
Change the federation testing site in the docs to a more verbose one
...
The new site is easy to use at a glance but provides more advanced info if needed
Nexxy approved https://matrix.to/#/#offtopic:continuwuity.org/$rHSywj-s3v9onrROBcwDCHnnOpPVFbu0-Xgrh9A4btw
2026-02-12 20:13:47 +00:00
arxari
40bb5366bb
Change the federation testing site to a more verbose one
...
The new site is easy to use at a glance but provides more advanced info if needed
Nexxy approved https://matrix.to/#/#offtopic:continuwuity.org/$rHSywj-s3v9onrROBcwDCHnnOpPVFbu0-Xgrh9A4btw
2026-02-12 20:11:20 +00:00
timedout
f82bd77073
style: Fix clippy issues
2026-02-12 19:10:13 +00:00
timedout
7d84ba5ff2
fix: Don't include latest_events in output
2026-02-12 17:37:29 +00:00
timedout
69a8937584
fix: Complement runner
2026-02-12 17:23:39 +00:00
timedout
b2ec13d342
fix: Redo the get_missing_events federation route
2026-02-12 16:48:12 +00:00
Jade Ellis
4e55e1ea90
docs: Add note about checking the contents of configuration
2026-02-11 16:56:07 +00:00
ginger
f5f3108d5f
chore: Formatting
2026-02-10 22:56:11 +00:00
chri-k
d1e1ee6156
fix: always treat server_user as an admin
2026-02-10 22:56:11 +00:00
Omar Pakker
ae16a45515
chore: Add towncrier news fragment
2026-02-10 23:07:38 +01:00
Omar Pakker
077bda23a6
feat(admin): Add resolver cache flush command
...
This command allows an admin to flush a specific server
from the resolver caches or flush the whole cache.
2026-02-10 23:07:32 +01:00
Renovate Bot
a2bf0c1223
chore(deps): update pre-commit hook crate-ci/typos to v1.43.4
2026-02-10 05:02:40 +00:00
Ginger
b9b1ff87f2
chore: Formatting fixes
2026-02-10 02:29:11 +00:00
Ginger
3c0146d437
feat: Implement a migration to fix busted local invites
2026-02-10 02:29:11 +00:00
Ginger
7485d4aa91
fix: Properly set stripped state for local invites
2026-02-10 02:29:11 +00:00
Jade Ellis
39bdb4c5a2
chore: Announcement for v0.5.4
2026-02-09 20:48:47 +00:00
Renovate Bot
55fb3b8848
chore(deps): update pre-commit hook crate-ci/typos to v1.43.3
2026-02-09 15:26:52 +00:00
timedout
19146166c0
chore: Linkify pull requests in CHANGELOG.md
2026-02-08 17:49:53 +00:00
timedout
f47027006f
chore: Bump cargo lock
2026-02-08 17:45:51 +00:00
timedout
b7a8f71e14
chore: Bump version
2026-02-08 17:41:53 +00:00
timedout
c7378d15ab
chore: Update changelog
2026-02-08 17:41:30 +00:00
timedout
7beeab270e
fix: Add failing spell check string to typos
...
This isn't the proper fix but whatever it makes CI pass
2026-02-08 17:25:09 +00:00
Julian Anderson
6a812b7776
chore: Add news fragment
2026-02-08 17:25:09 +00:00
Julian Anderson
b1f4bbe89e
docs(deploying/fedora): Remove seemingly nonexistent/impossible Fedora install method
2026-02-08 17:25:09 +00:00
Julian Anderson
6701f88bf9
docs(deploying/fedora): Fix URLs for known working install methods, add EL caveat, correct GPG key info
2026-02-08 17:25:09 +00:00
Jade Ellis
62b9e8227b
docs: Explain enabling backtraces at runtime
2026-02-08 17:23:09 +00:00
Jade Ellis
7369b58d91
feat: Try log original server error
2026-02-08 17:23:09 +00:00
Jade Ellis
f6df44b13f
feat: Try log panics before unwinds to catch backtraces
2026-02-08 17:23:09 +00:00
timedout
f243b383cb
style: Fix typo in validate_remote_member_event_stub
2026-02-08 15:37:40 +00:00
timedout
e0b7d03018
fix: Perform additional membership validation on remote knocks too
2026-02-08 15:34:07 +00:00
timedout
184ae2ebb9
fix: Apply validation to make_join process
2026-02-06 18:15:39 +00:00
timedout
0ea0d09b97
fix: Don't fail open when a PDU doesn't have a short state hash
2026-02-06 18:09:09 +00:00
timedout
6763952ce4
chore: Bump ruwuma
2026-02-06 17:52:48 +00:00
Renovate Bot
e2da8301df
chore(deps): update pre-commit hook crate-ci/typos to v1.43.2
2026-02-06 16:49:57 +00:00
April Grimoire
296a4b92d6
fix: Resolve unnecessary serialization issue
...
Fixes #1335
2026-02-06 07:52:19 +00:00
timedout
00c054d356
fix: Get_missing_events returns the same event N times
2026-02-05 21:28:21 +00:00
Renovate Bot
2558ec0c2a
chore(deps): update rust-patch-updates
2026-02-05 14:06:42 +00:00
timedout
56bc3c184e
feat: Enable running complement manually
2026-02-04 18:06:53 +00:00
Renovate Bot
5c1b90b463
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.4
2026-02-04 16:05:32 +00:00
Renovate Bot
0dbb774559
chore(deps): update dependency @rspress/plugin-sitemap to v2.0.2
2026-02-04 16:04:56 +00:00
Renovate Bot
16e0566c84
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.2
2026-02-04 16:02:09 +00:00
Renovate Bot
489b6e4ecb
chore(deps): update pre-commit hook crate-ci/typos to v1.43.1
2026-02-04 15:58:34 +00:00
Renovate Bot
e71f75a58c
chore(deps): update dependency @rspress/core to v2.0.2
2026-02-04 05:04:11 +00:00
timedout
082ed5b70c
feat: Use info level logs for residency check failures
2026-02-03 20:09:41 +00:00
timedout
76fe8c4cdc
chore: Add news fragment
2026-02-03 20:09:41 +00:00
timedout
c4a9f7a6d1
perf: Don't handle expensive requests for rooms we aren't in
...
Mostly borrowed from dendrite:
https://github.com/element-hq/dendrite/blob/a042861/federationapi/routing/routing.go#L601
2026-02-03 20:09:41 +00:00
timedout
a047199fb4
perf: Don't handle PDUs for rooms we aren't in
2026-02-03 20:09:41 +00:00
Renovate Bot
411c9da743
chore(deps): update rust-patch-updates
2026-02-02 01:34:58 +00:00
Renovate Bot
fb54f2058c
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.1
2026-02-01 05:03:41 +00:00
ginger
358273226c
chore: Update FUNDING.yml
2026-01-31 01:13:15 +00:00
timedout
fd9bbb08ed
fix: Restore admin room announcement for deactivations
2026-01-30 05:11:30 +00:00
timedout
53184cd2fc
chore: Add news fragment
2026-01-30 05:11:30 +00:00
timedout
25f7d80a8c
fix: Clippy lint
2026-01-30 05:11:30 +00:00
timedout
02fa0ba0b8
perf: Optimise account deactivation process
2026-01-30 05:11:30 +00:00
ginger
572b228f40
Update homeserver list
2026-01-29 23:35:07 +00:00
Renovate Bot
b0a61e38da
chore(deps): update pre-commit hook crate-ci/typos to v1.42.3
2026-01-29 15:49:54 +00:00
Renovate Bot
401dff20eb
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.3
2026-01-29 15:49:32 +00:00
Ginger
f2a50e8f62
fix(docs): Remove rspress-plugin-preview
2026-01-29 10:41:46 -05:00
Ginger
36e80b0af4
fix(docs): Add stub type definition for docs CSS
2026-01-29 10:36:44 -05:00
Ginger
c9a4c546e2
chore(deps): Update to rspress 2.0.0
2026-01-29 10:35:24 -05:00
Ginger
da8b60b4ce
fix(docs): Add redirect from old community page
2026-01-26 21:42:50 -05:00
Ginger
89afaa94ac
feat(docs): Move community pages into subdir, add partnered homeservers page
2026-01-26 21:32:05 -05:00
Ginger
2b5563cee3
fix(docs): Remove busted link in nav
2026-01-26 20:55:12 -05:00
Ginger
6cb9d50383
chore: News fragment
2026-01-21 12:27:13 -05:00
Ginger
77c0f6e0c6
fix: Add a code path for clients trying to use fallback auth
2026-01-21 12:27:13 -05:00
Jade Ellis
c85e710760
fix: Add option to mark certain config sections as optional
...
Fixes #1290
2026-01-20 17:36:22 +00:00
Renovate Bot
59346fc766
chore(deps): update pre-commit hook crate-ci/committed to v1.1.10
2026-01-20 16:25:19 +00:00
Renovate Bot
9c5e735888
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.7
2026-01-20 16:24:46 +00:00
Ginger
fe74e82318
chore: Formatting
2026-01-20 10:00:26 -05:00
K900
cb79a3b9d7
refactor(treewide): get rid of compile time build environment introspection
...
It's cursed and not very useful. Still a few uses of ctor left, but oh well.
2026-01-19 19:44:28 +00:00
timedout
ebc8df1c4d
feat: Add endpoints required for API-based takedowns and room bans
2026-01-18 18:47:15 +00:00
nex
b667a963cf
chore: Fixup typos
2026-01-18 15:22:14 +00:00
timedout
5a6b909b37
fix: Remove homebrewed error mangling for correctness
2026-01-18 15:22:14 +00:00
timedout
dba9cf0ad2
chore: Add news fragment
2026-01-18 15:22:14 +00:00
timedout
287ddd9bc5
fix: Only fall back to legacy media when response is M_UNRECOGNIZED
...
https://spec.matrix.org/v1.17/server-server-api/#content-repository
Previously we would fall back for ALL
auth media errors.
2026-01-18 15:22:14 +00:00
Jason Volk
79a278b9e8
Fix verification loss; workaround Nheko-Reborn/nheko#1908 ( closes #146 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2026-01-18 14:41:01 +00:00
Ginger
6c5d658ef2
fix: Fix explosions with new tracing
2026-01-15 09:28:26 -05:00
Renovate Bot
70c43abca8
chore(deps): update rust-patch-updates
2026-01-15 09:28:26 -05:00
Renovate Bot
6a9b47c52e
chore(deps): update rust-patch-updates
2026-01-15 05:03:40 +00:00
Ginger
c042de96f8
chore(deps): Update rspress to 2.0.0-rc.5
2026-01-14 09:35:20 -05:00
Jade Ellis
7a6acd1c82
chore: Changelog
2026-01-13 20:29:30 +00:00
Jade Ellis
d260c4fcc2
style: Fix yo unused variables
2026-01-13 20:29:30 +00:00
Jade Ellis
fa15de9764
feat: Admin announce improvements
...
- Check announcements on first start
- Print out any fetch errors on first start in the admin room
- Randomly jitter the next check
2026-01-13 20:29:30 +00:00
Jade Ellis
e6c7a4ae60
docs: Changelog
2026-01-13 00:05:20 +00:00
Jade Ellis
5bed4ad81d
chore: Admin announcement
2026-01-13 00:01:28 +00:00
Jade Ellis
587abe9d14
chore: Release
2026-01-12 23:47:37 +00:00
Jade Ellis
c499042a76
docs: Changelog
2026-01-12 23:45:42 +00:00
timedout
86e450a835
fix: M_BAD_JSON in send_join and send_knock
2026-01-12 17:53:37 +00:00
Jade Ellis
4c796029bb
chore: Add correct configuration for cargo release
2026-01-12 16:20:38 +00:00
Jade Ellis
fc3615c46b
docs: Changelog
2026-01-12 16:20:38 +00:00
Jade Ellis
7375f7a68e
feat: Improve the display of the configuration in the admin room
2026-01-12 16:20:38 +00:00
Ginger
ae28fe92d2
feat: Exclude undocumented commands
2026-01-12 10:51:17 -05:00
Ginger
00eeeb78de
fix: Remove extraneous dashes from command help
2026-01-12 10:47:19 -05:00
Ginger
a028049e6f
feat: Add copy to admin command reference index
2026-01-12 10:36:37 -05:00
Ginger
7b159bc8c8
feat: Add comments to generated files
2026-01-12 10:36:37 -05:00
Ginger
66fcedf08b
fix: Update documentation TOC
2026-01-12 10:36:37 -05:00
Ginger
3f790844f3
chore: Clippy fixes
2026-01-12 10:36:37 -05:00
Ginger
89be9d1efc
feat: Improve admin command reference generation
...
- Change xtasks to use `clap` for argument parsing
- Generate admin command reference manually instead of with `clap_markdown`
- Split admin command reference into multiple files
2026-01-12 10:36:37 -05:00
Astralchroma
60dd6baffd
Link to documentation clarifying what exactly "Performance optimised version." means
2026-01-11 16:54:33 +00:00
timedout
99a10998b4
style: Remove unused import
2026-01-11 15:42:06 +00:00
nex
05c6b5df75
fix: M_BAD_JSON in c2s invite
2026-01-11 15:37:59 +00:00
Jade Ellis
74db426c6b
fix: Correct federation timeouts
2026-01-09 19:51:29 +00:00
Jade Ellis
344d68dabc
fix: Use correct token handlers for Ruma
2026-01-09 19:42:14 +00:00
Jade Ellis
d3ee9c407a
fix: Apply timeouts in more places
2026-01-09 19:42:13 +00:00
Ginger
da956b1a2a
chore: Release
2026-01-09 09:28:54 -05:00
Ginger
244bf6ed2f
chore: Update changelog for 0.5.2
2026-01-09 09:28:37 -05:00
timedout
52a51f1de0
fix: Remove useless timestamp check in outlier upgrade process
2026-01-09 02:50:04 +00:00
timedout
6e118f445b
chore: Add news fragment
2026-01-09 02:50:04 +00:00
timedout
e3cf288f39
feat: Support creating custom v12 room IDs
2026-01-09 02:50:04 +00:00
Ginger
6e6c9ae4cb
chore: Update news fragments
2026-01-08 20:14:46 -05:00
timedout
5a2a1b6240
style: Clean up whoami code
2026-01-09 01:12:38 +00:00
timedout
fb536ca1ce
chore: Add news fragment
2026-01-09 00:47:09 +00:00
timedout
d22d47954f
fix: Return 403 instead of 404 at /_matrix/client/v3/account/whoami
2026-01-09 00:44:38 +00:00
Ginger
d48cc46643
fix: Allow cargo_common_metadata clippy lint
2026-01-08 19:28:27 +00:00
Ginger
8cf2d175d6
fix: Update package and crate metadata
2026-01-08 19:28:27 +00:00
Ginger
205ac22008
chore: Update admin command documentation
2026-01-08 14:27:50 -05:00
Jade Ellis
d353446488
fix: Incomplete rename
2026-01-07 23:48:04 +00:00
timedout
77e8fd1744
style: Use contains to check for row presence
2026-01-07 17:31:54 +00:00
timedout
7fa7b129c0
perf: Store empty value (row only needs to exist)
2026-01-07 17:31:54 +00:00
timedout
247bc15659
fix: Await future
2026-01-07 17:31:53 +00:00
timedout
88a35e139d
fix: Correctly return M_USER_LOCKED during login
2026-01-07 17:31:53 +00:00
timedout
37574ef5cc
chore: Add news fragment
2026-01-07 17:31:53 +00:00
timedout
1c816850ed
feat: Allow admins to disable the login capability of an account
...
# Conflicts:
# src/admin/user/commands.rs
2026-01-07 17:31:51 +00:00
timedout
3483059e1c
fix: Unawaited future causing build error
2026-01-07 14:33:37 +00:00
Ginger
d865dd4454
feat( !783 ): Add --once shortcut flag to issue command
2026-01-07 14:22:37 +00:00
Ginger
adc7c5ac49
fix( !783 ): Don't allow registrations by default with no token configured
2026-01-07 14:22:37 +00:00
Ginger
112403e470
chore( !783 ): Remove config file check for no static token or captcha
2026-01-07 14:22:37 +00:00
Ginger
ea0a124981
chore( !783 ): Update config file documentation, depluralize token subcommand
2026-01-07 14:22:37 +00:00
Ginger
bf205fb13c
chore( !783 ): Note that registration_token_file is gone
2026-01-07 14:22:37 +00:00
Ginger
9a6408f98f
chore( !783 ): News fragment
2026-01-07 14:22:37 +00:00
Ginger
ca77970ff3
feat( !783 ): Add admin commands for managing tokens
2026-01-07 14:22:37 +00:00
Ginger
42f4ec34cd
feat( !783 ): Initial implementation
...
Adds support for extra limited-use registration tokens
stored in the database, and a new service to manage them.
2026-01-07 14:22:37 +00:00
Renovate Bot
ecf74bb31f
chore(deps): update dependency lddtree to 0.4.0
2026-01-06 20:38:12 +00:00
timedout
8c716befdc
chore: Add news fragment
2026-01-06 20:32:52 +00:00
timedout
a8209d1dd9
feat: Add command to forcefully log out all of a user's devices
2026-01-06 20:28:23 +00:00
Jade Ellis
9552dd7485
style: Log error
2026-01-06 01:55:52 +00:00
Ginger
88c84f221f
chore: Add comment and warning to unhappy path
2026-01-06 00:59:32 +00:00
Laurențiu Nicola
a10bd71945
fix(admin): fix force-leaving rooms with no left_state PDU
2026-01-06 00:59:31 +00:00
Jade Ellis
2f11bf4d74
docs: Document image mirrors
2026-01-06 00:45:12 +00:00
Jade Ellis
1e8748d1a0
docs: Fix some issues
2026-01-06 00:45:12 +00:00
Tom Foster
70ef6e4211
docs: Document maxperf Docker image variants from #1017
...
Add documentation for the new performance-optimised Docker images with
"-maxperf" suffix. These use the release-max-perf build profile with LTO
and target haswell CPU architecture on amd64 for optimal performance.
Also restructure the static prebuilt binary section in generic deployment
docs for better clarity and fix various UK English spelling issues.
2026-01-06 00:45:12 +00:00
Renovate Bot
212c1bc14d
chore(deps): update github-actions-non-major
2026-01-06 00:24:55 +00:00
timedout
ce46b6869f
chore: Bump dependencies to fix request errors
2026-01-05 20:10:30 +00:00
timedout
a18b8254d0
chore: Add news fragment
2026-01-05 20:10:30 +00:00
timedout
279f7cbfe4
style: Fix failing lints
2026-01-05 20:10:29 +00:00
timedout
006c57face
perf: Don't check accept_make_join twice for restricted make_join
2026-01-05 20:10:29 +00:00
timedout
d52e0dc014
fix: Apply check_all_joins to make_join
2026-01-05 20:10:29 +00:00
timedout
4b873a1b95
fix: Apply spam checker to local restricted joins
2026-01-05 20:10:29 +00:00
timedout
76865e6f91
fix: Accept_may_join callback works again
2026-01-05 20:10:29 +00:00
timedout
99f16c2dfc
fix: Call user_may_join_room later in the join process
2026-01-05 20:10:28 +00:00
timedout
5ac82f36f3
feat: Consolidate antispam checks into a service
...
Also adds support for the spam checker join rule, and Draupnir callbacks
2026-01-05 20:10:28 +00:00
timedout
c249dd992e
feat: Add support for automatically rejecting pending invites
2026-01-05 20:10:28 +00:00
timedout
0956779802
feat: Add Meowlnir invite interception support
...
Co-authored-by: Jade Ellis <jade@ellis.link >
2026-01-05 20:10:27 +00:00
timedout
a83c1f1513
fix: Restrict suspend+lock commands to admin room
...
Also prevent locking the service user or admin users
2026-01-05 19:49:12 +00:00
timedout
8b5e4d8fe1
chore: Add news fragment
2026-01-05 19:34:21 +00:00
timedout
7502a944d7
feat: Add user locking and unlocking commands and functionality
...
Also corrects the response code returned by UserSuspended
2026-01-05 19:30:16 +00:00
Jade Ellis
aed15f246a
refactor: Clean up logging issues
...
Primary issues: Double escapes (debug fmt), spans without levels
2026-01-05 18:28:57 +00:00
timedout
27d6604d14
fix: Use a timeout instead of deadline
2026-01-03 17:08:47 +00:00
timedout
1c7bd2f6fa
style: Remove unnecessary then() calls in chain
2026-01-03 16:22:49 +00:00
timedout
56d7099011
style: Include errors in key claim response too
2026-01-03 16:10:06 +00:00
timedout
bc426e1bfc
fix: Apply client-requested timeout to federated key queries
...
Also parallelised federation calls in related functions
2026-01-03 16:05:05 +00:00
timedout
6c61b3ec5b
fix: Build error two: electric boogaloo
2025-12-31 21:15:28 +00:00
timedout
9d9d1170b6
fix: Build error
2025-12-31 21:04:06 +00:00
Jade Ellis
7be20abcad
style: Fix typo
2025-12-31 20:08:53 +00:00
Jade Ellis
078275964c
chore: Update precommit hooks
2025-12-31 20:08:53 +00:00
timedout
bf200ad12d
fix: Resolve compile errors
...
me and cargo check are oops now
2025-12-31 20:01:29 +00:00
timedout
41e628892d
chore: Add news fragment
2025-12-31 20:01:29 +00:00
timedout
44851ee6a2
feat: Fall back to remote room summary if local fails
2025-12-31 20:01:29 +00:00
timedout
a7e6e6e83f
feat: Allow local server admins to bypass summary visibility checks
...
feat: Allow local server admins to bypass summary visibility checks
Also improve error messages so they aren't so damn long.
2025-12-31 20:01:29 +00:00
Ginger
8a561fcd3a
chore: Clippy fixes
2025-12-31 19:56:35 +00:00
Ginger
25c305f473
chore: Fix comment formatting
2025-12-31 19:56:35 +00:00
Ginger
c900350164
chore: Add news fragment
2025-12-31 19:56:35 +00:00
Ginger
c565e6ffbc
feat: Restrict where certain admin commands may be used
2025-12-31 19:56:31 +00:00
Jade Ellis
442f887c98
style: Improve warning regarding admin removal
2025-12-31 19:40:42 +00:00
Terry
03220845e5
docs: Changelog
2025-12-31 19:35:53 +00:00
Terry
f8c1e9bcde
feat: Config defined admin list
...
Closes !1246
2025-12-31 19:35:40 +00:00
Ginger
21324b748f
feat: Enable console feature by default
2025-12-31 19:12:25 +00:00
Jade Ellis
b7bf36443b
docs: Fix typo
2025-12-31 19:03:22 +00:00
ginger
d72192aa32
fix(ci): Stop using nightly to build Debian packages
2025-12-30 14:23:31 -05:00
Jade Ellis
38ecc41780
chore: Release
2025-12-30 17:45:32 +00:00
Jade Ellis
7ae958bb03
docs: Announcement
2025-12-30 17:35:20 +00:00
Jade Ellis
f676fa53f1
chore: Specify the tag body template
2025-12-30 17:34:44 +00:00
Jade Ellis
978bdc6466
docs: Changelog
2025-12-30 17:34:44 +00:00
timedout
7c741e62cf
fix: Forbid creators in power levels
2025-12-30 17:34:43 +00:00
Olivia Lee
12aecf8091
validate membership events returned by remote servers
...
This fixes a vulnerability where an attacker with a malicious remote
server and a user on the local server can trick the local server into
signing arbitrary events. The attacker issue a remote leave as the local
user to a room on the malicious server. Without any validation of the
make_leave response, the local server would sign the attacker-controlled
event and pass it back to the malicious server with send_leave.
The join and knock endpoints are also fixed in this commit, but are less
useful for exploitation because the local server replaces the "content"
field returned by the remote server. Remote invites are unaffected
because we already check that the event returned from /invite has the
same event ID as the event passed to it.
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-authored-by: Jade Ellis <jade@ellis.link >
Co-authored-by: Ginger <ginger@gingershaped.computer >
2025-12-30 15:24:45 +00:00
Renovate Bot
19372f0b15
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.6
2025-12-29 23:52:04 +00:00
Jade Ellis
a66b90cb3d
ci: Explicitly auto tag latest
2025-12-29 23:45:02 +00:00
Jade Ellis
7234ce6cbe
ci: Don't force tag all versions as latest
2025-12-29 23:45:02 +00:00
Jade Ellis
beb0c2ad9a
fix(ci): Don't double append latest tag suffix
2025-12-29 23:45:02 +00:00
Jade Ellis
39aaf95d09
docs: Changelog
2025-12-29 23:33:12 +00:00
Jade Ellis
5e0edd5a1c
feat: Allow configuring the OTLP protocol
2025-12-29 23:33:12 +00:00
Jade Ellis
d180f5a759
feat: Split otlp exporter into a new, enabled-by-default feature
2025-12-29 23:33:12 +00:00
Jade Ellis
f163264a82
docs: Update example domains
2025-12-29 23:33:12 +00:00
timedout
5e7bc590d2
chore: Apply suggestions
2025-12-29 23:30:49 +00:00
timedout
08df35946b
fix: File -> line
2025-12-29 23:30:49 +00:00
timedout
c4ebf289fa
fix: Dead link to code style doc
2025-12-29 23:30:49 +00:00
timedout
1fc6010f9a
fix: Issue title -> pull request title
2025-12-29 23:30:49 +00:00
timedout
1d91331275
fix: Stray whitespace
2025-12-29 23:30:49 +00:00
timedout
77e62ad772
feat: Add pull request template
2025-12-29 23:30:49 +00:00
timedout
696a1e6a4d
docs: Add information on writing changelog fragments
2025-12-28 00:59:31 +00:00
timedout
f41bbd7361
feat(meta): Set up towncrier
2025-12-28 00:53:44 +00:00
timedout
7350266c80
fix: Don't allow admin room upgrades and fix power levels during upgrade
2025-12-27 04:05:26 +00:00
Julian Anderson
322c0900c6
docs: handle traefik >=3.6.3 "encoded characters"
2025-12-24 22:40:50 -05:00
timedout
1237e60aaf
Revert "feat(ci): Allow running manual workflows against specific commits"
...
This reverts commit 9b4845bf8d .
2025-12-22 13:45:45 +00:00
timedout
9b4845bf8d
feat(ci): Allow running manual workflows against specific commits
2025-12-22 13:29:40 +00:00
aviac
fb5b515f96
chore: update flake lock
2025-12-22 04:11:41 +00:00
Jade Ellis
e6336d694a
chore: Fix escape
2025-12-22 02:42:21 +00:00
Jade Ellis
b7841280d9
chore: Security announcement
2025-12-22 02:36:31 +00:00
Jade Ellis
f4ccb81913
chore: Release
2025-12-22 00:23:20 +00:00
Jade Ellis
710cdfeadb
chore: Update mailmap
2025-12-21 20:34:11 +00:00
Jade Ellis
666849ea87
chore(ci): Unify artifact versions
2025-12-21 19:11:12 +00:00
Jade Ellis
71094803f1
fix(ci): Try use path that exists
2025-12-21 18:50:48 +00:00
Jade Ellis
bf91ce5c7f
feat: Mark v12 as stable
2025-12-21 17:15:16 +00:00
Jade Ellis
8fd15f26ce
style: Fix clippy
2025-12-21 17:12:36 +00:00
Jade Ellis
705fa6c5c6
fix: Simplify visibility check code
2025-12-21 17:12:36 +00:00
Jade Ellis
6f67c27538
fix: Ensure that room ID is present on state events sent to client
...
routes
Mostly fixes !1094
The remaining issue is federation routes
2025-12-21 17:12:35 +00:00
Jade Ellis
8586d747d1
feat: Run visibility checks on bundled relations
2025-12-21 17:12:35 +00:00
Jade Ellis
11012a9ce1
fix: Always return the same 404 message in context
2025-12-21 17:12:35 +00:00
Jade Ellis
07be190507
fix: Return 404 when event is not accessible
2025-12-21 17:12:35 +00:00
Jade Ellis
ae4acc9568
fix: Don't incorrectly add thread root to relation response
2025-12-21 17:12:35 +00:00
Jade Ellis
f83ddecd8c
refactor(perf): Push down visibility check after limit
2025-12-21 17:12:34 +00:00
Jade Ellis
dd87232f1f
refactor: Reduce database lookups in some cases
2025-12-21 17:12:34 +00:00
Jade Ellis
8e33f9a7d0
refactor: Improve code style for bundled aggregations
2025-12-21 17:12:34 +00:00
Jade Ellis
8d3e4eba99
fix: Add aggregations to the search endpoint
2025-12-21 17:12:34 +00:00
Jade Ellis
96bfdb97da
fix: Filter out invalid replacements from bundled aggregations
2025-12-21 17:12:34 +00:00
Jade Ellis
b61010da47
feat: Add bundled aggregations support
...
Add support for the m.replace and m.reference bundled
aggregations.
This should fix plenty of subtle client issues.
Threads are not included in the new code as they have
historically been written to the database. Replacing the
old system would result in issues when switching away from
continuwuity, so saved for later.
Some TODOs have been left re event visibility and ignored users.
These should be OK for now, though.
2025-12-21 17:12:34 +00:00
Jade Ellis
987c5eeb03
refactor: Promote handling unsigned data out of timeline
...
Also fixes:
- Transaction IDs leaking in event route
- Age not being set for event relations or threads
- Both of the above for search results
Notes down concern with relations table
2025-12-21 17:12:33 +00:00
timedout
7fa4fa9862
fix: Also check sender origin
2025-12-21 10:58:50 +00:00
timedout
b2bead67ac
fix: Apply additional validation to invites
2025-12-21 10:10:54 +00:00
timedout
48a6a475ce
fix: Omit children with invalid state from space summary
2025-12-18 19:48:58 +00:00
timedout
86450da705
style: Run clippy
2025-12-18 19:48:26 +00:00
timedout
8538b21860
feat: Check for incoming signatures
2025-12-18 19:03:32 +00:00
timedout
63e4aacd2b
style: Reword TODO comment
2025-12-18 18:24:00 +00:00
timedout
72f0eb9493
feat: Fetch policy server signatures
2025-12-18 18:23:54 +00:00
Odd E. Ebbesen
867d0ab671
fix(reload): Store paths to config files for admin reload
...
Paths given via --config at startup are now stored inside the config
struct at runtime, to make it possible to reload config without setting
an env var for the config file location.
2025-12-16 14:58:33 +00:00
Ginger
64e187e5b4
fix: Update comment in src/core/config/mod.rs
2025-12-16 14:19:43 +00:00
aviac
5dc449a87a
test: add test for config with default_room_version
...
This commit refactors the test a bit to run the basic test script with
different configs. Currently we have two configs we test:
- the bare minimum to make it run (base)
- base + default_room_version set to "12"
2025-12-16 14:19:43 +00:00
aviac
f5fda01013
docs: Add note about the type of the default_room_version option
2025-12-16 14:19:43 +00:00
Jade Ellis
cdc53b3421
fix: Allow using LDAP passwords in UIAA
...
Fixes #1131
Co-authored-by: Jade Ellis <jade@ellis.link >
2025-12-16 13:55:32 +00:00
Ginger
0b667ae4fd
fix(ci): Try explicitly specifying the ref for debian/fedora workflows
2025-12-15 10:21:46 -05:00
unbeatable-101
83baf9b524
Keep location of Continuwuity configuration file consitant
2025-12-13 22:51:16 +00:00
timedout
4f198fb4ef
fix: Enforce limits when joining rooms
2025-12-13 22:17:47 +00:00
timedout
1631c0afa4
fix: Perform additional validation on events
2025-12-13 21:36:20 +00:00
Charlotte Hartmann Paludo
862684af28
fix: remove trailing whitespace from secrets read from secrets file
2025-12-13 16:07:51 +00:00
Ginger
7345c241a9
fix: Don't halt and catch fire on deserialization errors in MSC4133 migration
2025-12-12 11:16:52 -05:00
Ginger
6a8b988b36
fix(ci): Downgrade upload-artifact actions again to v3 this time
2025-12-10 11:33:36 -05:00
Ginger
f1d6536793
fix(ci): Downgrade upload-artifact actions to v4
2025-12-10 11:33:36 -05:00
Ginger
cf8d8e4ea6
chore: Post-rebase cleanup
2025-12-09 03:25:04 +00:00
timedout
393d341f07
perf: Throttle frequent device metadata updates & centralise site
2025-12-09 03:25:03 +00:00
timedout
ba55dffa0e
perf: Don't increment the device list version when updating local info
2025-12-09 03:25:03 +00:00
timedout
f3115e14ab
feat: Update device metadata upon hitting hot endpoints
2025-12-09 03:25:03 +00:00
Ginger
b3fa4705ef
chore: Fix line endings
2025-12-07 15:28:19 -05:00
Ginger
53b06a7918
chore(sync/v3): Remove unused imports
2025-12-07 19:58:24 +00:00
Ginger
fafc1d3fd1
fix(sync/v3): Don't send rejected invites on initial syncs
2025-12-07 19:58:24 +00:00
Ginger
dbc74272c3
refactor(sync/v3): Extract left room timeline logic into its own function
2025-12-07 19:58:24 +00:00
Ginger
f11caac05e
fix(sync/v3): Don't send dummy leaves on an initial sync
2025-12-07 19:58:24 +00:00
Ginger
e581face44
chore: Formatting
2025-12-07 19:58:24 +00:00
ginger
037ba41adb
fix: Nitpicky comment reword
2025-12-07 19:58:24 +00:00
Ginger
941c8f7d52
fix: Bump max startup time to ten minutes in the systemd unit
2025-12-07 19:58:24 +00:00
Ginger
7dae118af9
chore(sync/v3): More goat sacrifices
2025-12-07 19:58:24 +00:00
Ginger
07dfc5528d
refactor(sync/v3): Split load_joined_room into smaller functions
2025-12-07 19:58:24 +00:00
ginger
3f4749a796
fix: Correct error message
2025-12-07 19:58:24 +00:00
Ginger
be8d72fafc
fix(sync/v3): Add a workaround for matrix-js-sdk/5071
2025-12-07 19:58:24 +00:00
Ginger
0008709481
fix(sync/v3): Stop ignoring leave cache deserialization failures
2025-12-07 19:58:24 +00:00
Ginger
ee51d4357f
fix(sync/v3): Do not include the last membership event when syncing left rooms
2025-12-07 19:58:24 +00:00
Ginger
8ffc6d4f15
chore(sync/v3): Sacrifice a goat to clippy
2025-12-07 19:58:24 +00:00
Ginger
93efe89a1f
fix(sync/v3): Cache shortstatehashes to speed up migration
2025-12-07 19:58:24 +00:00
Ginger
16f37d21ff
fix(sync/v3): Implement a migration for the userroomid_leftstate table
2025-12-07 19:58:24 +00:00
Ginger
800ac8d1f1
fix(sync/v3): Fix invite filtering for federated invites
2025-12-07 19:58:24 +00:00
Ginger
872f5bf077
feat(sync/v3): Remove TL size config option in favor of using the sync filter
2025-12-07 19:58:24 +00:00
Ginger
992217d644
chore(sync/v3): Fix clippy lints
2025-12-07 19:58:24 +00:00
Ginger
4fb4397a9f
fix(sync/v3): Remove mysterious membership event manipulation code
2025-12-07 19:58:24 +00:00
Ginger
61b6947e88
fix(sync/v3): Properly sync room heroes
2025-12-07 19:58:24 +00:00
Ginger
876d3faec4
chore(sync/v3): Use "build_*" terminology instead of "calculate_*"
2025-12-07 19:58:24 +00:00
Ginger
9cc0cc69f7
chore(sync/v3): Use more descriptive names for SyncContext properties
2025-12-07 19:58:24 +00:00
Ginger
5513bb4dff
chore: Remove unneeded comment
2025-12-07 19:58:24 +00:00
Ginger
693e327004
fix: Use prepare_lazily_loaded_members for joined rooms
...
Also, don't take read receipts into consideration for lazy loading.
Synapse doesn't do this and they're making initial syncs very large.
2025-12-07 19:58:24 +00:00
Ginger
3e6571a2b8
chore: Clippy fixes
2025-12-07 19:58:24 +00:00
Jade Ellis
f0f10f8f3e
feat: Typing notifications in simplified sliding sync
...
What's missing? Being able to use separate rooms & lists for typing
indicators.
At the moment, we use the same ones as we use for the timeline, as
todo_rooms is quite intertwined. We need to disentangle this to get that
functionality, although I'm not sure if clients use it.
2025-12-07 19:58:24 +00:00
Ginger
a4f2b55a8a
feat: Add a config option to change the max TL size for legacy sync
2025-12-07 19:58:24 +00:00
Ginger
213a361c53
fix: Set limited to true for newly joined rooms again
2025-12-07 19:58:24 +00:00
Ginger
1c21e4af6e
fix: Properly sync left rooms
...
- Remove most usages of `update_membership` in favor
of directly calling the `mark_as_*` functions
- Store the leave membership event as the value in the
`userroomid_leftstate` table
- Use the `userroomid_leftstate` table to synchronize the
timeline and state for left rooms if possible
2025-12-07 19:58:24 +00:00
Ginger
fceaaedc04
fix: Properly sync newly joined rooms
2025-12-07 19:58:24 +00:00
Ginger
0eff173c0b
fix(sync/v3): Further cleanup + improve incremental sync consistency
2025-12-07 19:58:24 +00:00
Ginger
72bf8e5927
fix: Correctly send limited timelines again
2025-12-07 19:58:24 +00:00
Ginger
3491f653a5
refactor: Split sync v3 into multiple files
2025-12-07 19:58:24 +00:00
Ginger
e820dd7aed
feat: Drop support for MSC3575 (legacy sliding sync)
2025-12-07 19:58:24 +00:00
Ginger
c92b7239a8
chore: Clippy fixes
2025-12-07 19:58:24 +00:00
Ginger
2940bc69c1
fix(sync/v3): Cleanup part 1: mostly fix redundant data in state
2025-12-07 19:58:24 +00:00
Jade
502919b248
chore: Tell continuwuity.org to use my livekit instance
2025-12-04 14:23:02 +00:00
Renovate Bot
33c3d23d60
chore(deps): update rust-patch-updates
2025-11-29 05:01:44 +00:00
Renovate Bot
ce318fe455
chore(deps): update pre-commit hook crate-ci/typos to v1.40.0
2025-11-28 20:19:35 +00:00
Renovate Bot
a729e1d63d
chore(deps): update actions/upload-artifact action to v5
2025-11-28 20:19:10 +00:00
Ginger
956c3dfa62
chore: Fix deprecation warning
2025-11-28 15:08:20 -05:00
Renovate Bot
49e8f06559
chore(deps): update rust-patch-updates
2025-11-28 15:00:38 -05:00
rooot
c0f4424cb9
fix(docs): blurry small logo, scroll resizing top bar
...
Signed-off-by: rooot <hey@rooot.gay >
2025-11-27 13:53:12 +01:00
Tobias Fella
3eac985c5e
fix(docs): Correct typo and outdated name
2025-11-26 21:13:43 +01:00
Jade
5fd341096d
fix(docs): Dead link
2025-11-26 00:10:59 +00:00
Renovate Bot
a1b2d6ec46
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.0-rc.1
2025-11-25 21:50:27 +00:00
Renovate Bot
551563ce83
chore(deps): update dependency @rspress/plugin-preview to v2.0.0-rc.1
2025-11-25 18:38:26 +00:00
Ginger
9f133cf75b
chore(deps): Update actions/checkout to v6
2025-11-25 18:26:28 +00:00
Ginger
23c398dc1e
fix(ci): Remove explicit references to code.forgejo.org in action steps
2025-11-25 18:26:28 +00:00
Renovate Bot
fa73893179
chore(deps): update pre-commit hook crate-ci/committed to v1.1.8
2025-11-25 17:16:13 +00:00
Renovate Bot
57fec44ec7
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.2
2025-11-24 05:02:19 +00:00
timedout
bc8d304dbf
style: Fix unnecessary qualification
...
Sounds like my university experience
2025-11-23 16:33:32 +00:00
timedout
7f4248a8c6
feat: Enhance remote room leave handling
2025-11-23 16:33:32 +00:00
aviac
430200b60e
fix: add explicit fix of rpath
...
Without this the rpath is empty and the binary won't be able to load the librocksdb.so.10 shared lib
2025-11-23 16:26:27 +00:00
Jade Ellis
a573f1f502
docs: Disable incomplete homepage prose for now
2025-11-22 23:13:52 +00:00
Jade Ellis
3bf3c24d22
docs: Update homepage layout
2025-11-22 22:41:53 +00:00
Jade Ellis
c1dc336c65
docs: Fix a couple contrast issues
2025-11-22 20:58:18 +00:00
Jade Ellis
be3c6ebb58
docs: Update rspress, add redirects
2025-11-22 20:49:19 +00:00
Jade Ellis
bdf31fa92e
docs: Remove exclude rules
2025-11-22 20:35:13 +00:00
Jade Ellis
1372f74812
docs: Capitalise page title
2025-11-22 20:35:13 +00:00
Jade Ellis
5935d99af0
feat(docs): Sitemap
2025-11-22 20:35:13 +00:00
Jade Ellis
6b11a65545
fix: Repair symlink
2025-11-22 20:35:13 +00:00
Jade Ellis
5ea1206739
docs: New site 🎉
2025-11-22 20:35:09 +00:00
Jade Ellis
d45c5a9f47
feat: Deal with low screen widths in CSS
2025-11-22 20:30:30 +00:00
Jade Ellis
9a1039b215
docs: Update logos
2025-11-22 20:30:29 +00:00
Renovate Bot
59f9b8bdb8
chore(deps): update rust crate bytes to v1.11.0
2025-11-22 16:13:45 +00:00
lily
3b76e9876d
fix: revert to mdbook version 0.4.52 since >=0.5.0 broke rendering with our current setup completely
2025-11-22 17:05:14 +01:00
nex
64c059f82e
fix(docs): Partially revert 4a9bea5764
...
Signed-off-by: nex <git@nexy7574.co.uk >
2025-11-22 14:15:26 +00:00
lily
76b90acea6
Remove rust flags since they're pretty much outdated and don't work anymore
...
Not much difference from what I've observed, plus it's as max-perf as it gets
2025-11-21 17:12:27 +00:00
Renovate Bot
5e0334088a
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.0
2025-11-21 16:27:13 +00:00
Ginger
eecc472258
fix(ci): Use the version from rust-toolchain.toml when restoring caches
2025-11-21 11:07:44 -05:00
Ginger
4a9bea5764
fix(docs): Fix git repository icon name
2025-11-21 10:46:15 -05:00
Ginger
08fd87c7de
chore: Kick forgejo
2025-11-21 15:19:39 +00:00
Ginger
ac6d639660
fix(docs): Remove unused multilingual option in mdBook config
2025-11-21 15:19:39 +00:00
Ginger
0958660eb5
ci: Do not run release-image workflow on pull requests
2025-11-21 14:52:41 +00:00
Renovate Bot
57c3290f02
chore(deps): update rust-patch-updates
2025-11-21 14:25:55 +00:00
nex
6794ea565f
fix(tests): Fix new syntax error in debug.rc
...
fixes #1180
2025-11-18 18:46:35 +00:00
Lilith
38080275d4
build(Cargo.toml): updated the versions automatically
2025-11-17 12:51:49 +00:00
Lilith
1138218878
build(Cargo.toml): resolve the fact that we have v0.5.0-rc.8.1 despite 0.5.0-rc.8 in toml
2025-11-17 12:51:49 +00:00
Renovate Bot
c0f1d8eab6
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v42
2025-11-17 00:33:11 +00:00
nex
192f78887a
chore: Add rc.8.1 release announcement
2025-11-16 22:08:09 +00:00
timedout
def8816c02
style: Fix clippy failures from 9e73146
2025-11-16 19:55:28 +00:00
timedout
9e73146b19
fix: Restore continuwuity's remembering capabilities
2025-11-14 14:57:49 +00:00
Renovate Bot
19d792e4eb
chore(deps): update rust crate ctor to 0.6.0
2025-11-14 14:03:57 +00:00
Renovate Bot
2a977f019f
chore(deps): update pre-commit hook crate-ci/typos to v1.39.2
2025-11-14 05:01:41 +00:00
ginger
76ea4dfa29
Update README.md
2025-11-13 19:55:12 +00:00
Renovate Bot
2ec771c84d
chore(deps): update rust crate bytesize to v2.2.0
2025-11-13 05:03:54 +00:00
timedout
9375e81974
fix(1163): Resolve algorithm misinterpretations
2025-11-13 03:33:47 +00:00
Renovate Bot
f22f35d27b
chore(deps): update rust crate syn to v2.0.110
2025-11-12 05:03:14 +00:00
Renovate Bot
d5c7d80709
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.11
2025-11-11 23:11:19 +00:00
Jade Ellis
1899d8bb00
ci: Mirror to Docker Hub
2025-11-11 23:11:09 +00:00
Ginger
9a5ba6171f
ci: Remove hardcoded default in setup-rust action
2025-11-11 10:37:03 -05:00
renovate
da3efa05b5
chore(Nix): Updated flake hashes
2025-11-11 15:07:05 +00:00
Ginger
b53ba2eef4
ci: Give flake hashes workflow permissions to push
2025-11-11 15:07:05 +00:00
Jade Ellis
33019c4529
chore: Update rust
2025-11-11 15:07:05 +00:00
Jade Ellis
f7bd9eaba8
chore(clippy): Remove old redundant lint
2025-11-11 13:59:12 +00:00
Jade Ellis
f9c42bbadc
refactor(clippy): Unused self
2025-11-11 13:59:12 +00:00
Jade Ellis
fe62c39501
style(clippy): Remove unneeded allocation
2025-11-11 13:59:12 +00:00
Jade Ellis
35320cf0d4
style(clippy): Elide lifetimes
2025-11-11 13:59:12 +00:00
Jade Ellis
eaf6a889c2
style(clippy): Unnecessary move
...
Function is used in a single place and the move doesn't seem to provide
any safety benefits, so 💨
2025-11-11 13:59:12 +00:00
Jade Ellis
b04f1332db
style(clippy): Remove dead code
...
Looks like this has been dead since we forked at least, seems pretty
safe to remove
2025-11-11 13:59:12 +00:00
Jade Ellis
9e4bcda17b
style(clippy): Make the event graph generic over the hasher
2025-11-11 13:59:12 +00:00
Jade
45e4053883
fix: Don't break when encountering the server user, as there may be real users after
2025-11-10 23:56:02 +00:00
Jade Ellis
c0b617f4f1
feat(sentry): Include the commit hash in the release name
2025-11-10 16:57:24 +00:00
Jade Ellis
a28cfd284b
chore(deps): Upgrade tracing / telemetry ecosystem
...
We no longer need the tracing patches, so I've removed those and
unpinned them in renovate.
otel's jaeger propagator is deprecated too, so it's replaced with the
builtin W3C TraceContext propagator
2025-11-10 16:42:28 +00:00
Jade Ellis
a5b9cb69bd
fix(deps): Pin hyper-util back to the patched version
2025-11-10 15:56:09 +00:00
Renovate Bot
3c8f252a14
chore(deps): update opentelemetry-rust monorepo to 0.31.0
2025-11-10 05:03:16 +00:00
Jade
8a63818f31
feat: Enable sentry compilation feature
2025-11-10 01:33:50 +00:00
Renovate Bot
5b5e26e529
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.10
2025-11-09 19:05:26 +00:00
aviac
866769c054
chore: replace serde-yml with serde-saphyr
...
- serde-yml has an un-addressed [security issue][sec-issue]
- [saphyr][saphyr] is a pretty recent and active crate that deals with YAML parsing
- based on that, someone recently created [serde-saphyr][serde-saphyr]
---
The change was pretty straightforward and mostly "just a search and replace". The new crate has it's `Error` type split
into serialization and derserialization errors. Hence I created one Continuwuity-Error variant for each instead of just
having a single `Yaml` variant. This was already done previously with the `Toml` errors so I thought this would be
rather acceptable.
[sec-issue]: https://github.com/advisories/GHSA-gfxp-f68g-8x78
[saphyr]: https://github.com/saphyr-rs/saphyr
[serde-saphyr]: https://github.com/saphyr-rs/saphyr/issues/66#issuecomment-3353212289
2025-11-09 11:23:32 +01:00
Renovate Bot
2e3b71f5f1
chore(deps): update rust-patch-updates
2025-11-08 23:57:36 +00:00
Jade
1312d61141
revert f7867cf6ca
...
revert ci: Clean up old images
2025-11-08 23:56:02 +00:00
Jade Ellis
f7867cf6ca
ci: Clean up old images
2025-11-08 23:29:25 +00:00
Jade Ellis
2ca6887a5d
chore(ci): Fix merge error
2025-11-08 23:08:10 +00:00
Jade Ellis
368685f8cd
ci: Re-run mirror script when files change
2025-11-08 23:00:37 +00:00
Jade Ellis
ad2d192b94
ci: Use PATs for github registry
...
https://stackoverflow.com/questions/76821352/how-can-you-authenticate-to-the-github-container-registry-using-a-github-app
thx github
2025-11-08 23:00:31 +00:00
Jade Ellis
3214e94cdb
ci: Mirror to ghcr
2025-11-08 22:59:27 +00:00
timedout
37c537379d
chore(ci): Add git.nexy7574.co.uk image mirror ( #1149 )
...
secrets were added to the org
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1149
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-committed-by: timedout <git@nexy7574.co.uk >
2025-11-08 22:56:16 +00:00
Jade Ellis
3c01c5f085
chore: Don't try to update patched deps automatically
2025-11-08 21:17:04 +00:00
Renovate Bot
4c552bb8ca
chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v6
2025-11-08 20:56:00 +00:00
Jade Ellis
ce73d29855
chore: Fix typos
2025-11-08 20:54:49 +00:00
Renovate Bot
d6e314744b
chore(deps): update pre-commit hook crate-ci/typos to v1.39.0
2025-11-08 14:34:13 +00:00
Jade
ec603188de
ci: Enable pre-commit in renovate
2025-11-08 14:31:35 +00:00
timedout
fbf48addc7
fix(user_can): Fix room creators being unable to redact events in v12 rooms
2025-10-27 14:34:50 +00:00
nexy7574
cbf726580f
fix: Kicks in !v12 are impossible
2025-10-27 14:34:50 +00:00
nexy7574
28f258fc8c
fix: Incorrect interpretation of 5.5.4
2025-10-27 14:34:50 +00:00
nexy7574
8b3acfd770
fix: Inverted creatorship check
2025-10-27 14:34:50 +00:00
nexy7574
a581e8de01
fix: Don't check restricted join rules for invite joins
2025-10-27 14:34:50 +00:00
nexy7574
7c74db5e74
fix: Weird re-application of partially resolved state
2025-10-27 14:34:50 +00:00
nexy7574
b17b4235f3
fix: Unbans and kicks incorrectly checked creatorship in !v12
2025-10-27 14:34:50 +00:00
aviac
ec3564e8aa
chore: use upstream rust-jemalloc-sys-unprefixed after flake.lock update
2025-10-27 12:55:21 +00:00
aviac
9a887ac04b
chore: fix CI to make all checks green
...
- define a nix default package
- try to fix CI
- fix/improve (?) CI even more (??)
2025-10-27 12:55:21 +00:00
aviac
fed808a3c6
feat: add taplo.toml to check now that we have it
2025-10-27 12:55:21 +00:00
aviac
37983b33a2
feat: add treefmt
2025-10-27 12:55:21 +00:00
aviac
1b2224fac6
feat: add hydra jobs to build all packages
2025-10-27 12:55:21 +00:00
aviac
c1c165ab48
fix: apply rocksdb changes in checks and shll
2025-10-27 12:55:20 +00:00
aviac
68bea1816f
feat(nix): flake-parts, first draft
2025-10-27 12:55:20 +00:00
Odd E. Ebbesen
cb7875e479
fix( #1134 ): Update docs and implementation of admin media delete-past-remote-media ( #1136 )
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1136
Co-authored-by: Odd E. Ebbesen <git@oddware.net >
Co-committed-by: Odd E. Ebbesen <git@oddware.net >
2025-10-27 12:31:25 +00:00
Jade Ellis
910a3182f7
fix: Prevent crash on process exit on MacOS
2025-10-26 17:42:08 +00:00
Jade Ellis
05886f8dcb
feat: Add option to control WAL compression
...
Also enables zstd compression by default
2025-10-26 17:30:42 +00:00
timedout
cff3c27729
fix: Bump ruwuma, export new route, config loading
2025-10-24 16:37:22 -04:00
Kierre
80be2ca22c
Repair
2025-10-24 16:07:06 -04:00
Kierre
d133b6c0c3
feat: set MSC4373 values
2025-10-24 15:33:16 -04:00
Ginger
a3592bd3b7
feat: Make a few improvements to the systemd unit
...
- Use systemd's credential system to supply our config file
- Remove `ConfigurationDirectory` to prevent conflicts with package managers
- Set `config_reload_signal` to true using an envvar
2025-10-17 13:37:42 +00:00
Ginger
70e8e96302
fix: Use mode 600 for config files on Fedora because they contain secret info
2025-10-17 13:37:42 +00:00
timedout
6002edccd3
perf: Remove extraneous policy server check
2025-10-16 23:57:07 +01:00
timedout
d189004d65
feat: Add more granular controls for policy server calling ( #1127 )
...
Adds two new toggles to the configuration, the first of which allows disabling the policy server checks entirely, and the second of which allows disabling checking events created locally. They're both enabled by default for maximum PS efficacy but allowing them to be disabled allows people who frequently cannot contact policy servers, for example those in censored countries, to be able to still use rooms with pace, allows single-user/trusted-only homeservers to disable the preliminary check on their own events, and also gives an escape hatch in case an issue like #1060 happens again, especially with MSCs not in FCP being moving targets.
In future, I think we should gate all MSC implementations behind config flags, even if they default to on.
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1127
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-committed-by: timedout <git@nexy7574.co.uk >
2025-10-16 22:45:23 +00:00
timedout
26b700bf51
fix: Policy server calls use the correct JSON object ( #1126 )
...
Fixes #1060
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1126
Reviewed-by: Jacob Taylor <aranjedeath@noreply.forgejo.ellis.link >
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-committed-by: timedout <git@nexy7574.co.uk >
2025-10-16 21:06:54 +00:00
Renovate Bot
09f24745c3
chore(deps): lock file maintenance
2025-10-15 19:05:50 +00:00
Renovate Bot
7ffbbe6890
chore(deps): update https://github.com/actions/setup-node action to v6
2025-10-15 18:55:02 +00:00
Renovate Bot
ad94c112fe
chore(deps): update rust-patch-updates
2025-10-15 17:55:58 +00:00
Jade
8c7cc68cbf
fix(ci): Don't use shallow clone when we're comparing git history
2025-10-15 12:53:15 +00:00
Ginger
dc047b635f
feat: Send notifications to systemd when a reload is triggered
2025-10-15 03:12:25 +00:00
Renovate Bot
cc4c2fed25
chore(deps): lock file maintenance
2025-10-13 12:05:52 +00:00
Renovate Bot
17e47ecd6d
chore(deps): update github-actions-non-major
2025-10-13 11:27:22 +00:00
Jade
b1d5ff477b
chore: Update renovate config
...
- Limit renovate updates to mondays
- Don't group lock updates
- Update checksums if possible
2025-10-13 11:26:26 +00:00
Renovate Bot
d6dc01ac2c
chore(deps): update https://code.forgejo.org/actions/checkout action to v5
2025-10-13 10:41:20 +00:00
Jimmy Brush
77ebe0d02f
fix( !714 ): Off-by-one in v5 sync
...
Simplified sliding sync specifies ranges to be inclusive while rust ranges are
exclusive.
2025-10-13 10:28:19 +00:00
Renovate Bot
81e3d4c905
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.7
2025-10-13 10:27:18 +00:00
nexy7574
cb8f36444c
feat: Proactively read Content-Length to reject oversized uploads
2025-10-12 19:42:57 +00:00
nexy7574
799def70dc
feat: Produce even more informative errors when saving media fails
2025-10-12 19:42:57 +00:00
nexy7574
20f741d0e5
feat: Produce a more informative error when uploading media fails
2025-10-12 19:42:57 +00:00
Renovate Bot
d38f4a24f2
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.146.0
2025-10-11 05:03:03 +00:00
Renovate Bot
6604cc4df9
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.144.1
2025-10-10 05:01:39 +00:00
Renovate Bot
89aa4d1eae
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.143.1
2025-10-09 05:03:56 +00:00
Renovate Bot
9231ea5114
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.141.0
2025-10-08 05:01:41 +00:00
Renovate Bot
4a3c72338d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.138.1
2025-10-07 05:02:54 +00:00
Renovate Bot
ab862f4383
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.135.5
2025-10-06 05:01:26 +00:00
Renovate Bot
bd43be931a
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.135.4
2025-10-05 05:03:52 +00:00
Ginger
148240cbbb
fix: Add missing ldap3 feature
2025-10-01 18:55:30 +00:00
Renovate Bot
2e9e42d9ae
chore(deps): update rust crate ldap3 to 0.12.0
2025-10-01 18:55:30 +00:00
Renovate Bot
89fbda0d6e
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.132.5
2025-10-01 05:03:28 +00:00
Renovate Bot
c97eb5c889
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.132.2
2025-09-30 05:01:26 +00:00
Ginger
366ec46b26
fix: Upload debs built on a schedule
2025-09-29 14:17:44 +00:00
ginger
62a98ebc71
fix: Upload RPMs built on a schedule
2025-09-29 14:17:44 +00:00
Renovate Bot
439c605efe
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.9
2025-09-29 05:03:13 +00:00
Renovate Bot
32df2f3487
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.8
2025-09-28 05:03:46 +00:00
Renovate Bot
692da7ffc2
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.6
2025-09-27 16:17:44 +00:00
Renovate Bot
1082b24b1d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.6
2025-09-27 05:03:28 +00:00
nexy7574
f45ceedb8a
fix(upgrade): Potentially resolve CI clippy errors
...
I'm not convinced this isn't a rust bug itself,
but CI was complaining about lifetimes
and those complaints couldn't be reproduced locally,
so this should probably fix it maybe?
2025-09-26 18:47:49 +01:00
nexy7574
d614e43981
fix(stateres): Creators can always unban
...
Also basically rewrote all of the event auth logs to be more digestable
2025-09-26 18:47:49 +01:00
Renovate Bot
1e0e7a31aa
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.2
2025-09-26 05:02:43 +00:00
Renovate Bot
92fffe9c82
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.130.1
2025-09-25 08:28:06 +00:00
Renovate Bot
11e51300a5
chore(deps): update github-actions-non-major
2025-09-25 08:16:34 +00:00
Jade Ellis
ef84e1bb02
fix(v12): Create tombstone event on room upgrade
2025-09-25 08:15:23 +00:00
nexy7574
1887d58df8
fix: V12 room upgrades
2025-09-25 08:15:23 +00:00
nexy7574
c66f6f8900
fix(stateres): Correctly fetch missing auth events for incoming PDUs
2025-09-25 02:54:00 +01:00
Ginger
902fe7b7ab
fix: Fix panic in debug builds caused by MSC4133 migration
2025-09-24 16:45:11 -04:00
Renovate Bot
472e1fee17
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.127.2
2025-09-24 05:03:46 +00:00
Jade Ellis
3c6f2d07e0
ci: Only run RPM builds on tags or schedule
2025-09-23 22:16:46 +01:00
ginger
43254aa396
fix: Attempt to enable RPM signing
2025-09-23 22:15:01 +01:00
Tom Foster
48ebf86335
feat(ci): Add Fedora RPM package build workflow
...
Build and publish RPM packages for Fedora using rpkg and official
rust-packaging macros. Packages are automatically signed by Forgejo's
built-in package registry (introduced in v9.0).
Publishes packages to organised groups:
- continuwuity (binary): base group (stable/dev/branch-name)
- continuwuity-debuginfo: GROUP-debug
- continuwuity (source RPM): GROUP-src
Workflow triggers on pushes to relevant paths and version tags (v*).
Tagged releases use clean version numbers (v1.2.3 becomes 1.2.3-1)
while branch builds use sanitised branch name versioning.
Uses dnf builddep to install build dependencies directly from the
generated SRPM, ensuring consistency between CI and spec file without
duplication. This also prevents hiding packaging issues that could
occur with --nodeps fallbacks.
2025-09-23 22:15:00 +01:00
Ginger
f1e3b4907e
Build Debian packages and upload them to Forgejo's repository ( #996 )
...
This uses the existing `cargo-deb` metadata.
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/996
Reviewed-by: Tom Foster <tom@tcpip.uk >
Reviewed-by: nex <nex@noreply.forgejo.ellis.link >
Co-authored-by: Ginger <ginger@gingershaped.computer >
Co-committed-by: Ginger <ginger@gingershaped.computer >
2025-09-23 19:53:37 +00:00
Jade Ellis
9346a0d05e
fix(ci): Typo
2025-09-23 12:55:04 +01:00
nyanbinary
c99faae115
chore(nix): bump rocksdb version in flake.nix to 10.5.fb
2025-09-23 06:31:10 +00:00
Renovate Bot
a5aa68ee8d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.125.2
2025-09-23 03:53:03 +00:00
Tom Foster
8959ac06ac
ci: Split Rust build cache into dependencies and incremental caches
...
Replace single large build cache with separate dependencies and incremental
caches. Dependencies cache survives source code changes and uses tiered
restore keys. Removes build directory from caching to improve CI performance
while maintaining effective compilation caching with sccache.
2025-09-23 04:30:35 +01:00
Tom Foster
47f7ebfd68
fix: Use node_version in npm cache key for wrangler installation
...
Replace hashFiles('**/package-lock.json') with node_version since wrangler
is installed via npm without a lockfile to hash. Removes trailing dash from
cache keys and ensures npm dependencies are regenerated when Node.js version
changes.
2025-09-23 04:30:35 +01:00
Tom Foster
7d91f218b1
ci: Migrate to detect-versions with namespaced cache keys
...
Replace local detect-runner-os action with external detect-versions@v1 to
reduce custom action maintenance. Add architecture detection for future
cross-platform support and namespace all cache keys with "continuwuity-"
prefix to prevent collisions with other projects on shared runners.
Updates cache mount IDs in Dockerfiles to match the new namespacing
convention, ensuring consistent cache isolation across CI and Docker builds.
2025-09-23 04:30:22 +01:00
Jade Ellis
e5e2db37d9
ci: Run image release workflow on tag
2025-09-22 17:03:26 +01:00
Jade Ellis
e08ea3b9e5
ci: Trace commands to push docker manifests
2025-09-22 17:03:26 +01:00
Jade Ellis
4f1907abfa
ci: Change tag generation to use suffix flavour
2025-09-22 17:03:26 +01:00
Ginger
92d74c293e
feat: Advertise support for MSC4155
2025-09-22 11:33:45 -04:00
Renovate Bot
3fbdced0e1
chore(deps): update github-actions-non-major
2025-09-22 05:04:03 +00:00
nexy7574
b70470fa71
fix: Event filters all non-state events
2025-09-21 20:10:36 +01:00
nexy7574
703d6a2075
chore: Bump version to rc.8
2025-09-21 18:17:24 +01:00
Savyasachee Jha
5b75e21810
Update resolv-conf to upstream 0.7.5
2025-09-21 17:13:38 +00:00
Ginger
13b7538785
Add support for MSC4155 ( #1013 )
...
[rendered msc here](https://github.com/Johennes/matrix-spec-proposals/blob/johannes/invite-filtering/proposals/4155-invite-filtering.md ). Closes #836 .
Co-authored-by: nexy7574 <git@nexy7574.co.uk >
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1013
Reviewed-by: nex <nex@noreply.forgejo.ellis.link >
Co-authored-by: Ginger <ginger@gingershaped.computer >
Co-committed-by: Ginger <ginger@gingershaped.computer >
2025-09-21 17:03:40 +00:00
Renovate Bot
9745bcba1c
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.121.4
2025-09-21 05:02:02 +00:00
nexy7574
c9c79fbea6
fix: Fix restricted join rules inconsistencies
2025-09-20 21:07:13 +00:00
nexy7574
92e9802340
style: Tidy up 1054
2025-09-20 21:07:00 +00:00
nexy7574
1d80b7ce0c
fix: Don't perform local join when there's no remote servers
2025-09-20 21:07:00 +00:00
Jade
563b6d4b30
fix: Update debug assertion with new serde type location
...
Fixes !1052
2025-09-20 18:04:16 +00:00
Renovate Bot
e86fc6d9f8
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.119.5
2025-09-20 05:03:27 +00:00
Renovate Bot
13adea6498
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.118.1
2025-09-19 10:31:58 +00:00
Renovate Bot
17d0bb6cf6
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.117.0
2025-09-18 21:06:35 +00:00
Renovate Bot
6dc5051fa6
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.116.10
2025-09-18 19:26:39 +00:00
Renovate Bot
3034c03ad1
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.116.8
2025-09-18 13:36:19 +00:00
Renovate Bot
fa6f549d39
chore(deps): lock file maintenance
2025-09-18 13:32:26 +00:00
Renovate Bot
999217b0f6
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.5
2025-09-18 13:31:48 +00:00
Renovate Bot
74fccff2cc
chore(deps): update github-actions-non-major
2025-09-18 13:31:19 +00:00
Shuroii
7a56a2462c
fix(ci): Use github env namespace as forgejo is still unsupported
2025-09-18 13:30:50 +00:00
Ginger
458811f241
fix: Fix nexy's very accurate and not-at-all busted fix to my fix
2025-09-17 20:04:50 -04:00
nexy7574
0672ce5b88
style: Fix clippy lint errors
2025-09-17 23:54:09 +01:00
Ginger
7f287c7880
fix: Use a database migration to fix corrupted us.cloke.msc4175.tz fields
...
(cherry picked from commit 4a893ce4cc81487bcf324dccefd8184ddef5b215)
2025-09-17 23:14:07 +01:00
Shuroii
9142978a15
fix: Fully qualify action
...
This fixes an issue where Forgejo tries to look for code.forgejo.org for the action despite it not being available.
2025-09-17 21:37:50 +00:00
Shuroii
a8eb9c47f8
feat(ci): Add a workflow to update flake hashes
...
This workflow is intended to be ran as dispatch whenever the rocksdb fork changes!
Other than that, it'll run on any toolchain changes (rust-toolchain.toml, Cargo.lock, Cargo.toml) and update the relevant hash accordingly.
2025-09-17 21:37:50 +00:00
nexy7574
9f18cf667a
chore: Temporarily disable bad tests
2025-09-17 22:25:04 +01:00
nexy7574
7e4071c117
Implement room v12 ( #943 )
...
**Does not yet work!** Currently, state resolution does not correctly resolve conflicting states. Everything else appears to work as expected, so stateres will be fixed soon, then we should be clear for takeoff.
Also: a lot of things currently accept a nullable room ID that really just don't need to. This will need tidying up before merge. Some authentication checks have also been disabled temporarily but nothing important.
A lot of things are tagged with `TODO(hydra)`, those need resolving before merge. External contributors should PR to the `hydra/public` branch, *not* ` main`.
---
This PR should be squash merged.
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/943
Co-authored-by: nexy7574 <git@nexy7574.co.uk >
Co-committed-by: nexy7574 <git@nexy7574.co.uk >
2025-09-17 20:46:03 +00:00
Renovate Bot
51423c9d7d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.115.6
2025-09-17 05:03:46 +00:00
Ginger
a0b0ff9d5c
fix: Remove legacy check for u. prefix
2025-09-16 11:30:39 +00:00
Ginger
8e27d74c4a
fix: Slightly more parallelism
2025-09-16 11:30:39 +00:00
Ginger
d6b1055683
fix: Remove needless async marker
2025-09-16 11:30:39 +00:00
Ginger
c9117e6ee4
fix: Fix incorrect deserialization of MSC4133 profile fields
2025-09-16 11:30:39 +00:00
Ginger
e3415a500d
chore: Code cleanup
2025-09-16 11:30:39 +00:00
Ginger
e6fd3c970b
fix: Nuke explicit references to the MSC4175 tz profile field
2025-09-16 11:30:39 +00:00
Renovate Bot
6b7f35a8b8
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.115.0
2025-09-16 05:01:56 +00:00
Tom Foster
a120a4fa95
fix: Handle runner cargo bin path migration in timelord action
...
Runner images have migrated from /usr/share/rust/.cargo/bin to standard
~/.cargo/bin location. Action now checks old location first and migrates
binaries if found, maintaining compatibility with both paths.
Bump cache key to v3 to ensure fresh binary cache after path changes.
2025-09-15 16:17:32 +01:00
Renovate Bot
f872210b20
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.113.4
2025-09-15 05:01:40 +00:00
Renovate Bot
3dd04bd9df
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.113.2
2025-09-14 05:03:21 +00:00
Ginger
af45c348a4
fix: Properly deserialize changes to legacy fields made with MSC4133 endpoints
2025-09-14 01:28:08 +00:00
nexy7574
36dabecb82
chore(1014): Include MSC4155 in build features to resolve build errors
2025-09-14 00:53:43 +00:00
nexy7574
50cd1081ba
chore(1014): Bump ruwuma
2025-09-14 00:53:43 +00:00
nexy7574
14df55e5c5
style(1014): Remove unnecessary commented code
2025-09-14 00:53:43 +00:00
nexy7574
d9d0d1a465
fix( !1014 ): Don't prematurely return during registration
2025-09-14 00:53:43 +00:00
Tom Foster
81b6b3547c
fix: Resolve Forgejo runner v11 matrix job execution failure
...
Matrix jobs stopped starting after upgrading from runner v9 to v11 due to
changes in job dependency resolution. Remove redundant define-variables job
that computed static image paths and replace with IMAGE_PATH environment
variable.
Also fix timelord action binary caching for compatibility between different
runner images that install cargo binaries in different locations.
2025-09-13 17:12:09 +01:00
Renovate Bot
0bbc3c4e05
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.112.0
2025-09-12 21:11:13 +00:00
Jade
0f09fa3d31
chore(renovate): Specify automerge strategy
2025-09-12 21:02:25 +00:00
Tom Foster
3d5355dfc3
chore(renovate): Add auto-merge for renovatebot and reorganise package rules
...
Enable automatic merging of ghcr.io/renovatebot/renovate docker image updates
to reduce manual maintenance overhead.
Reorganise package rules by manager type (cargo, github-actions, docker) and
add missing description for cargo concurrency limit rule to improve config
maintainability.
2025-09-12 17:50:08 +01:00
Renovate Bot
2547eb3a90
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.109.0
2025-09-12 13:29:47 +00:00
Renovate Bot
51ba41823f
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.106.0
2025-09-12 13:23:28 +00:00
Tom Foster
542dff50bd
ci: Split Docker builds into sequential release and max-perf stages
...
Separate fast release builds from slow max-perf builds to optimise runner
utilisation and provide quicker feedback. Release builds complete first with
standard optimisations, followed by Haswell-optimised dragrace builds once
the safe builds pass successfully.
Extract build logic into focused composite actions for better log visibility
in Forgejo UI. Split monolithic build action into prepare-docker-build,
inline docker build step, and upload-docker-artifacts to ensure each phase
completes independently and shows logs immediately.
Creates separate manifests at each stage to avoid waiting for all builds
before publishing.
2025-09-12 12:43:19 +01:00
Tom Foster
9c147b182f
ci: Fix BuildKit cache invalidation and add Haswell-optimised builds
...
The workflow was rebuilding dependencies unnecessarily despite timelord
restoring timestamps because TARGET_CPU and RUST_PROFILE weren't passed
to Docker, creating inconsistent cache keys. Now passes both arguments
for proper cache reuse.
Adds Haswell-optimised builds alongside baseline builds using -march=haswell
for PCLMUL instruction support. Recent build improvements reducing compile
times from 15-20 minutes to ~5 minutes make this additional CPU variant
feasible. Users can pull optimised images with -haswell suffix.
2025-09-11 13:59:43 +01:00
Renovate Bot
7e76ca45c1
chore(deps): lock file maintenance
2025-09-11 12:28:11 +00:00
Tom Foster
5126cb4554
fix: Use forgejo/upload-artifact@v4 for artifact consistency
...
Follow-on to correct #1009 . The previous fix downgraded upload-artifact
to v3 but kept download-artifact@v4, creating incompatible storage
formats that prevented artifact pattern filtering from working.
Update all upload-artifact actions to v4 and adjust renovate
configuration to disable automatic updates for forgejo artifact
actions to maintain version consistency.
2025-09-11 11:57:04 +01:00
Renovate Bot
4d05d0f677
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.99.9
2025-09-11 09:56:48 +00:00
Tom Foster
0673ac1a6c
fix: Fix artifact action compatibility and add digest debugging
...
Resolve upload-artifact v4 GHES compatibility errors by downgrading to v3.
Switch to standard forgejo/download-artifact@v4 for pattern filtering support.
Update renovate configuration to prevent future incompatible upgrades.
Add diagnostic output to digest export step to troubleshoot zero-byte
artifact uploads preventing manifest creation. Include CI triggers for
Element workflow to test changes in pull requests.
2025-09-11 10:44:11 +01:00
Jade Ellis
ad11417145
chore(deps): Replace serde_yaml with serde_yml
2025-09-10 20:20:45 +01:00
Renovate Bot
0de904ffe4
chore(deps): update rust crate const-str to 0.7.0
2025-09-10 18:05:00 +00:00
Renovate Bot
d74b9de221
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.4
2025-09-10 17:44:44 +00:00
Renovate Bot
e7ac5988cb
chore(deps): update https://github.com/actions/setup-node action to v5
2025-09-10 17:06:45 +00:00
Jade Ellis
571f05017c
chore: Update resolv git hash
2025-09-10 17:50:37 +01:00
Jade Ellis
a339e73eb5
chore: Unify actions versions
2025-09-10 17:39:25 +01:00
Jade Ellis
72b78ed6d4
chore: Fix nightly-only clippy lints
2025-09-10 17:35:17 +01:00
nexy7574
baa89586e2
fix(MSC4277): Undo refuted response changes
2025-09-10 16:25:06 +00:00
nexy7574
7ad8ff2e45
style(MSC4277): Run lints to satisfy checks
2025-09-10 16:25:06 +00:00
nexy7574
2046b1e2f6
feat(MSC4277): Unify reporting endpoint behaviours
...
* reporting rooms now always returns 200 OK
* reporting an event returns OK if we don't know about the reported event
* removed the score parameter (needs a followup ruwuma update)
2025-09-10 16:25:06 +00:00
Renovate Bot
2cb980cd4c
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.99.7
2025-09-10 16:16:34 +00:00
Jade Ellis
27e0ef7b2e
chore: Update renovate CI
...
- Fixes some issues with the action - Enables OSV vuln scanning -
Enables updating the dockerfile tool versions
2025-09-10 16:53:59 +01:00
Jade Ellis
7091882887
chore: Update cargo lockfile
2025-09-10 16:47:20 +01:00
Jade Ellis
a81546374d
ci: Make timelord docker work locally
2025-09-10 16:40:55 +01:00
Tom Foster
7950e2cc7f
ci: Refactor timelord action to use git-warp-time fallback
...
Updates the timelord action to fall back to git-warp-time when the cache
is completely empty, enabling timestamp restoration even on fresh builds.
When git-warp-time is used, performs an unshallow fetch to get full history,
while subsequent runs use normal fetches. Simplifies the interface by making
inputs optional with sensible defaults.
Adds binary caching for timelord-cli and git-warp-time tools to avoid
repeated installations, and updates paths to use /usr/share/rust/.cargo/bin/
for the catthehacker runner image used by the dind profile (may need updating
if/when switching to standard image).
The main timelord restore now happens inside the Dockerfile itself, as Docker
intentionally wipes all file mtimes on COPY/ADD operations.
2025-09-08 08:34:29 +00:00
Renovate Bot
8f186cd770
chore(deps): update https://github.com/renovatebot/github-action action to v43.0.11
2025-09-08 05:02:33 +00:00
Ginger
5d3e10a048
fix: Make RA use the full feature
2025-09-07 18:07:03 -04:00
Ginger
1e541875ad
fix: Nuke src/api/client/utils.rs
2025-09-07 18:06:11 -04:00
nexy7574
90fd92977e
style: Run clippy
2025-09-07 21:20:26 +00:00
Ginger
e27ef7f5ec
feat: Do not persist remote PDUs fetched with admin commands
2025-09-07 21:20:26 +00:00
Ginger
16f4efa708
fix: Fix pagination tokens being corrupted for backfilled PDUs
2025-09-07 21:20:26 +00:00
Ginger
e38dec5864
fix: Put the output of !admin query room-timeline pdus in a codeblock
2025-09-07 21:20:26 +00:00
Ginger
f3824ffc3d
fix: Use handle_incoming_pdu directly to keep remote PDUs as outliers
2025-09-07 21:20:26 +00:00
nexy7574
e3fbf7a143
feat: Ask remote servers for individual unknown events
2025-09-07 21:20:26 +00:00
nexy7574
09de586dc7
feat(PR977): Log more things in the join process
2025-09-07 22:01:07 +01:00
nexy7574
d1fff1d09f
perf(pr977): Remove redundant ACL check in send_join
2025-09-07 22:01:07 +01:00
nexy7574
f47474d12a
fix(PR977): Adjust some log levels
2025-09-07 22:01:07 +01:00
nexy7574
53da294e53
fix(PR977): Omitting redundant entries from the auth_chain caused problems
2025-09-07 22:01:07 +01:00
nexy7574
2cdccbf2fe
feat(PR977): Support omitting members in the send_join response
2025-09-07 22:01:07 +01:00
Tom Foster
6cf3c839e4
ci(release-image): Skip digest upload when not pushing images
...
After #992 , builds without registry credentials skip Docker image output
but still extract binary artifacts. However, we were still trying to
upload digests for images that weren't created. Add conditional check
to only upload digests when actually pushing to registry.
2025-09-07 21:27:56 +01:00
Tom Foster
4a1091dd06
ci(release-image): Unify binary extraction using BuildKit local output
...
Fork PRs currently fail binary extraction with 'invalid reference format'
and 'must specify at least one container source' errors. This replaces the
registry-specific docker create/copy method with BuildKit's local output
feature for all builds.
Uses multiple outputs in single build: image export plus local binary
extraction from /sbin. Speeds up extracting binary artifacts and saves a
couple of extra workflow steps in the process.
2025-09-07 20:46:11 +01:00
Tom Foster
1e9701f379
ci(release-image): Skip setup steps when using persistent BuildKit
...
When BUILDKIT_ENDPOINT is set, builds run on a persistent BuildKit instance,
making runner setup steps unnecessary. Skip Rust toolchain installation,
QEMU setup, caching steps, and timelord to eliminate ~7 operations per job.
Also adds output to git SHA and timestamp steps for visibility.
Cuts at least a minute off average build time through fewer installs,
cache restores, and cache saves.
2025-09-07 18:59:05 +01:00
Tom Foster
2cedf0d2e1
fix(ci): Use image output instead of docker for fork PRs
...
Docker exporter doesn't support manifest lists (multi-platform builds).
For fork PRs without registry credentials, use 'type=image,push=false'
instead of 'type=docker' to build multi-platform images locally without pushing.
2025-09-07 18:32:38 +01:00
Tom Foster
84fdcd326a
fix(ci): Resolve registry push failures for fork PRs
...
Fork PRs now fail during Docker image build with 'tag is needed when
pushing to registry' because BUILTIN_REGISTRY_ENABLED evaluates to false
without proper credentials, leaving the images list empty. This appears
to be due to recent Forgejo permission changes affecting fork access to
repository secrets.
Add fallback to official registry when credentials unavailable, skip
registry login and push operations for forks, and make merge job
conditional since no digests exist without push. This allows forks to
test Docker builds whilst avoiding authentication failures.
2025-09-07 17:39:18 +01:00
Tom Foster
d640853f9d
ci(docs): Optimise build performance with caching and conditional Node.js
...
Skip installing Node.js entirely if v20+ is already available, otherwise
install v22. Add npm dependency caching with OS-specific cache keys using
the custom detect-runner-os action for proper cache isolation between
runners. Dependencies normally take just under 10s, so this should more
than halve the doc build time to free up runner slots.
2025-09-07 14:51:10 +01:00
Tom Foster
fff9629b0f
fix(docker): Resolve liburing.so.2 loading error for non-root users
...
Container failed to start when running as non-root (user 1000:1000) because
copied directories had restrictive 770 permissions, likely due to different
umask in persistent BuildKit. Non-root users couldn't access /usr/lib to
load required dynamic libraries.
Introduces prepper stage using Ubuntu to organize files into layered structure
with explicit 755 directory permissions before copying to scratch image.
Also fixes workflow syntax error and removes docker/** from paths-ignore to
ensure Docker changes trigger CI builds.
2025-09-07 14:13:14 +01:00
Tom Foster
1a3107c20a
fix(ci): Replace Mozilla sccache action with token-free alternative
...
Replace mozilla-actions/sccache-action with a custom Forgejo-specific
implementation that eliminates GitHub token dependencies and rate limiting
issues for all contributors regardless of repository permissions.
The new action mirrors sccache binaries to the Forgejo package registry
and queries that instead of GitHub releases, maintaining identical functionality
including hostedtoolcache support.
2025-09-07 09:29:32 +01:00
aviac
969d7cbb66
feat(nix): remove rocksdb from flake.nix inputs
...
Consuming this flake is pretty annoying since the rocksdb input is
fetched on every build which takes ~ 10 - 20 sec. By removing it and
replacing it with a `pkgs.fetchFromGitea`, we create an intermediate
derivation which is better for caching reasons.
2025-09-06 17:40:31 +00:00
Jade Ellis
cd238b05de
fix: Remove bad colon in workflow
2025-09-06 16:21:21 +01:00
Jade Ellis
c0e3829fed
feat: Replace Jaeger with OTLP
2025-09-06 16:19:56 +01:00
Jade Ellis
1d7dda6cf5
chore: Upgrade ctor, cbor
2025-09-06 16:19:56 +01:00
Jade Ellis
6f19931c5b
chore(deps): Upgrade minor incompatible dependencies
2025-09-06 16:19:56 +01:00
Tom Foster
2516e783ba
ci: Support optional persistent BuildKit endpoints in Docker builds
...
Allows us to use runners with persistent BuildKit containers for improved
caching and faster build times. Falls back to standard docker-container
driver when BUILDKIT_ENDPOINT environment variable is not set.
2025-09-06 16:05:51 +01:00
Jade Ellis
fdf5771387
ci: Fix CI not triggering on external pull requests
2025-09-06 15:21:39 +01:00
Ginger
58bbc0e676
fix: Move packaging files from dist/ to pkg/
2025-09-06 14:03:57 +00:00
Ginger
0d58e660a2
fix: Remove unnecessary user and directory modifications
...
systemd creates a dynamic user for
continuwuity and manages directories for
it automatically, so the debian postinst
script no longer needs to do that.
2025-09-06 14:03:57 +00:00
Ginger
e7124edb73
fix: Update debian systemd unit path
2025-09-06 14:03:57 +00:00
Ginger
d19e0f0d97
feat: Move packaging scripts into dist/ and consolidate the service files
2025-09-06 14:03:57 +00:00
nex
467aed3028
chore: Add Ginger's GH noreply email to mailmap
2025-09-02 16:36:56 +00:00
Ginger
99b44bbf09
Update conduwuit-example.toml
2025-09-01 17:50:09 +00:00
Ginger
95aeff8cdc
Set the DB path as an env var in systemd service files to prevent footgunning
2025-09-01 17:50:09 +00:00
nexy7574
9e62e66ae4
chore(PR956): Update admin docs
2025-09-01 11:27:58 +00:00
nexy7574
76b93e252d
feat: Only inject vias when manual ones aren't provided during join
2025-09-01 11:27:58 +00:00
nexy7574
66d479e2eb
fix: Make remote leave helper a public fn
2025-09-01 11:27:58 +00:00
nexy7574
241371463e
feat: Force leave remote rooms admin command
2025-09-01 11:27:58 +00:00
nexy7574
d970df5fd2
perf(MSC4323): Parallelise some check futs
2025-09-01 12:13:37 +01:00
nexy7574
4e644961f3
perf(MSC4323): Remove redundant authorisation checks
2025-09-01 12:13:37 +01:00
nexy7574
35cf9af5c8
feat(MSC4323): Add versions flag
2025-09-01 12:13:37 +01:00
nexy7574
04e796176a
style(MSC4323): Satisfy our linting overlords
2025-09-01 12:13:37 +01:00
nexy7574
9783940105
feat(MSC4323): Advertise suspension support in capabilities
2025-09-01 12:13:37 +01:00
nexy7574
1e430f9470
feat(MSC4323): Implement agnostic suspension endpoint
2025-09-01 12:13:37 +01:00
Renovate Bot
5cce024841
chore(deps): update https://github.com/reproducible-containers/buildkit-cache-dance action to v3.3.0
2025-08-31 00:44:28 +00:00
Jade Ellis
e87c461b8d
feat: Cache renovate data, RO GitHub token
2025-08-31 01:37:50 +01:00
Jade Ellis
b934898f51
chore: Update renovate config, limit cargo updates
2025-08-31 00:25:41 +01:00
nexy7574
83e3de55a4
fix(sync/v2): Room leaves being omitted incorrectly
...
Partially borrowed from https://github.com/matrix-construct/tuwunel/commit/85a84f93c7ef7184a8eee1bb17116e5f0f0faf5a
2025-08-30 16:18:46 +01:00
Tom Foster
609e239436
fix(fedora): Correct linting issues in RPM spec file
...
The Fedora RPM packaging files added in PR #950 weren't passing pre-commit
checks, causing CI failures for any branches rebased after that merge. This
applies prek linting fixes (typo correction, trailing whitespace removal,
and EOF newline) to ensure CI passes for all contributors.
2025-08-30 16:10:41 +01:00
Ginger
34417c96ae
Update URL to point at the landing page
2025-08-28 21:10:46 +00:00
Ginger
f33f281edb
Update long description to match deb package
2025-08-28 21:10:46 +00:00
Ginger
ddbca59193
Add spec and service files for creating an RPM package
2025-08-28 21:10:46 +00:00
Tom Foster
b5a2e49ae4
fix: Resolve Clippy CI failures from elided lifetime warnings
...
The latest Rust nightly compiler (2025-08-27) introduced the
elided-named-lifetimes lint which causes Clippy CI checks to fail
when an elided lifetime ('_) resolves to a named lifetime that's
already in scope.
This commit fixes the Clippy warnings by:
- Making lifetime relationships explicit where 'a is already in scope
- Keeping elided lifetimes ('_) in functions without explicit
lifetime parameters
- Ensuring proper lifetime handling in the database pool module
Affected files (17 total):
- Database map modules: Handle, Key, and KeyVal references in get,
qry, keys, and stream operations
- Database pool module: into_recv_seek function
This change resolves the CI build failures without changing any
functionality, ensuring the codebase remains compatible with the
latest nightly Clippy checks.
2025-08-28 21:13:19 +01:00
Jade Ellis
37248a4f68
chore: Add reasons for test skips
2025-08-28 20:10:05 +01:00
Tom Foster
dd22325ea2
refactor(ci): Consolidate Rust checks with optimised toolchain setup
...
Merge rust-checks.yml into prek-checks.yml for a unified workflow that
runs formatting and clippy/test checks in parallel jobs.
Add reusable composite actions:
- setup-rust: Smart Rust toolchain management with caching
* Uses cargo-binstall for pre-built binary downloads
* Integrates Mozilla sccache-action for compilation caching
* Workspace-relative paths for better cache control
* GitHub token support for improved rate limits
- setup-llvm-with-apt: LLVM installation with native dependencies
- detect-runner-os: Consistent OS detection for cache keys
Key improvements:
- Install prek via cargo-binstall --git (crates.io outdated at v0.0.1)
- Download timelord-cli from cargo-quickinstall
- Set BINSTALL_MAXIMUM_RESOLUTION_TIMEOUT=10 to avoid rate limit delays
- Default Rust version 1.87.0 with override support
- Remove redundant sccache stats (handled by Mozilla action)
Significantly reduces CI runtime through binary downloads instead of
compilation while maintaining all existing quality checks.
2025-08-28 19:20:14 +01:00
nex
30a56d5cb9
Update renovate.json
2025-08-28 17:15:32 +00:00
nexy7574
3183210459
fix: Post-merge compile issues
2025-08-23 21:28:31 +01:00
RatCornu
57d7743037
feat: add ldap_only config option
2025-08-23 19:59:36 +00:00
Jade Ellis
cb09bfa4e7
fix: Correctly pass ldap feature from the default crate
2025-08-23 19:59:36 +00:00
Jade Ellis
0ed691edef
fix: Make builds without LDAP work correctly
2025-08-23 19:59:36 +00:00
Jade Ellis
c58b9f05ed
chore: Fix default attributes for config
2025-08-23 19:59:36 +00:00
RatCornu
fb7e739b72
chore: remove unused LDAP mail attribute
2025-08-23 19:59:36 +00:00
RatCornu
c7adbae03f
feat: ldap login
2025-08-23 19:59:36 +00:00
Jade Ellis
8b35de6a43
chore: Fix clippy lints with minimal diff
2025-08-22 00:51:54 +01:00
aviac
d191494f18
chore(nix): update fenix input
...
This is required, since now we're installing `rustfmt` from the latest
state of the fenix repo. This wasn't recent enough for the latest rust
version. The input was locked at (2025-07-02). Now it's up to date.
2025-08-22 00:37:16 +01:00
aviac
6d1f12b22d
chore(nix): make rustfmt-nightly available to default dev shell
...
I verified this by running `rustfmt --version` on my system. Note that I
don't have a system-wide install of rust and only rely on dev shells, so
this can't possibly come from somewhere else.
```
$ rustfmt --version
rustfmt 1.8.0-nightly (6677875279 2025-07-02)
```
2025-08-22 00:37:16 +01:00
aviac
ca3ee9224b
chore(rust): drop rustfmt from rust-toolchain.toml
...
This just installs regular rustfmt, which is not needed in this project.
One could say "It doesn't hurt", but in the NixOS dev shell it actually
does since it will shadow nightly rustfmt and we don't have the
`cargo +nightly fmt` synatx on NixOS that is available on other Distros.
Also "It doesn't hurt" to delete it for non NixOS users.
2025-08-22 00:37:16 +01:00
aviac
427b973b67
chore(rust): bump version 1.87 -> 1.89
...
- bump version in rust-toolchain.toml
- update sha in flake.nix
2025-08-22 00:32:04 +01:00
Tom Foster
aacaf5a2a0
fix(ci): Downgrade setup-uv action from v6 to v5
...
The setup-uv@v6 action has deprecated Node 18 support mid-version by
using the File API, causing workflow failures. Temporarily downgrading
to v5 until we migrate to a better runner image with Node 20+ support.
2025-08-21 21:10:15 +01:00
aviac
256bed992e
chore(nix): exec 'use flake' with direnv on NixOS systems
2025-08-21 13:40:11 +02:00
aviac
ecb87ccd1c
chore(nix): bump rocksdb version in flake.nix to 10.4.fb
...
This works without any further changes. Multiple people in the matrix
room (including myself) have reported that the built executable runs
fine with this. Nevertheless, there might be room for improvements (in
future commits)
2025-08-21 13:39:36 +02:00
Tom Foster
14a4b24fc5
fix(ci): Configure Renovate for Forgejo platform
...
- Set platform to 'forgejo' with proper API endpoint
- Use environment variables for all Renovate configuration
- Add git timeout and disable GitHub token warnings
- Move PR limit configuration to workflow
2025-08-17 17:37:24 +01:00
Tom Foster
731761f0fc
Merge branch 'main' into tom/prek-was-prefligit
2025-08-17 15:08:44 +00:00
Tom Foster
4524a00fc6
chore(ci): Remove obsolete prefligit action
...
Now using prek directly via uvx, this custom action is no longer needed.
2025-08-17 16:00:42 +01:00
Tom Foster
9db750e97c
fix(ci): Add full GitHub URL to renovate action
...
Forgejo's runner doesn't automatically assume actions are on github.com,
so we need to specify the full URL.
2025-08-17 15:51:29 +01:00
Tom Foster
b14a4d470b
Merge branch 'main' into tom/prek-was-prefligit
2025-08-17 14:16:35 +00:00
Tom Foster
5d1f141882
ci: Rename prefligit-checks.yml to prek-checks.yml
...
Rename workflow file to match the updated tool name.
2025-08-17 15:13:02 +01:00
Tom Foster
b447cfff56
ci: Update prefligit to prek
...
The prefligit project has been renamed to prek due to typosquatting
concerns. This updates our CI to use the new name and recommended
installation method via uv, which significantly reduces setup time
compared to cargo install and includes automatic caching.
- Replace outdated static prefligit action with direct prek invocation
- Use uv as recommended by upstream: https://github.com/j178/prek
- Update check-byte-order-marker to fix-byte-order-marker (deprecated)
- Simplify workflow by removing unused ref calculations
The same .pre-commit-config.yaml works unchanged. Developers can
install locally with 'uvx prek install' or other methods from the repo.
2025-08-17 15:11:38 +01:00
Tom Foster
283888e788
Merge branch 'main' into tom/renovate
2025-08-17 13:27:33 +00:00
Tom Foster
f54e59a068
ci: Add Renovate for automated dependency management
...
Configures Renovate bot to create PRs for outdated dependencies.
Runs daily at 5am UTC with manual trigger via workflow_dispatch.
Configuration:
- Ignores custom forks (jemalloc, telemetry packages)
- Groups: GHA minor/patch, Rust toolchain, lockfile, Rust patches
- Limits: 3 concurrent PRs, 2 PRs per hour
- Supports: Cargo, GitHub Actions, Nix
2025-08-17 14:20:20 +01:00
Tom Foster
2a183cc5a4
fix(build): Remove hardened_malloc from full feature set
...
The hardened_malloc feature conflicts with jemalloc, preventing successful
builds with the --features full flag. Commenting out hardened_malloc allows
the full profile to build correctly while maintaining all other features.
2025-08-17 13:44:32 +01:00
nexy7574
54acd07555
fix: Drop fake room v2 support
2025-08-16 16:22:24 +01:00
Tom Foster
583cb924f1
refactor: address code review feedback for auth and pagination improvements
...
- Extract duplicated thread/message pagination functions to shared utils module
- Refactor pagination token parsing to use Option combinators instead of defaults
- Split access token generation from assignment for clearer error handling
- Add appservice token collision detection at startup and registration
- Allow appservice re-registration with same token (for config updates)
- Simplify thread relation chunk building using iterator chaining
- Fix saturating_inc edge case in relation queries with explicit filtering
- Add concise comments explaining non-obvious behaviour choices
2025-08-12 05:29:41 +01:00
Tom Foster
9286838d23
fix(relations): improve thread pagination and include root event
...
Replace unreliable PduCount pagination tokens with ShortEventId throughout
the relations and messages endpoints. ShortEventId provides stable, unique
identifiers that persist across server restarts and database operations.
Key improvements:
- Add token parsing helpers that try ShortEventId first, fall back to
PduCount for backwards compatibility
- Include thread root event when paginating backwards to thread start
- Fix off-by-one error in get_relations that was returning the starting
event in results
- Only return next_batch/prev_batch tokens when more events are available,
preventing clients from making unnecessary requests at thread boundaries
- Ensure consistent token format between /relations, /messages, and /sync
endpoints for interoperability
This fixes duplicate events when scrolling at thread boundaries and ensures
the thread root message is visible when viewing a thread, matching expected
client behaviour.
2025-08-10 19:12:56 +01:00
Tom Foster
d1ebcfaf0b
fix(auth): prevent token collisions and optimise lookups
...
Ensures access tokens are unique across both user and appservice tables to
prevent authentication ambiguity and potential security issues.
Changes:
- On startup, automatically logout any user devices using tokens that
conflict with appservice tokens (resolves in favour of appservices)
and log a warning with affected user/device details
- When creating new user tokens, check for conflicts with appservice tokens
and generate a new token if a collision would occur
- When registering new appservices, reject registration if the token is
already in use by a user device
- Use futures::select_ok to race token lookups concurrently for better
performance (adapted from tuwunel commit 066097a8)
This fix-forward approach resolves existing token collisions on startup
whilst preventing new ones from being created, without breaking existing
valid authentications.
The find_token optimisation is adapted from tuwunel (matrix-construct/tuwunel)
commit 066097a8: "Optimize user and appservice token queries" by Jason Volk.
2025-08-10 17:10:06 +01:00
Tom Foster
e820551f62
fix(appservice): create sender_localpart user during appservice startup
...
Fixes #813 : Application services were unable to work because their sender_localpart
user was never created in the database, preventing authentication.
This fix ensures the appservice user account is created when:
- The server starts up and loads existing appservices from the database
- A new appservice is registered via the admin command
Additionally, if an appservice user has been accidentally deactivated, it will be
automatically reactivated when the appservice starts.
The solution centralises all appservice startup logic into a single `start_appservice`
helper method, eliminating code duplication between the registration and startup paths.
2025-08-10 17:10:06 +01:00
Yonatan Sidler
bd3db65cb2
fix(arch): fix config.toml not being loaded from LoadCredentials directory
2025-08-06 20:01:36 +03:00
nexy7574
e4a43b1a5b
fix(policy-server): Call the PS later in the PDU creation process
...
This avoids accidentally sending partially built PDUs to the policy server,
which may cause issues with some implementations
2025-08-02 00:19:33 +01:00
Jade Ellis
5775e0ad9d
docs: Make traefik router names consistent
2025-07-30 19:55:48 +01:00
Jade Ellis
238cc627e3
docs: Set traefik labels
2025-07-30 19:33:53 +01:00
Jade Ellis
b1516209c4
chore: Update funding file
2025-07-30 19:23:38 +01:00
Jade Ellis
0589884109
docs: Fix documentation link in README
...
Closes https://forgejo.ellis.link/continuwuation/continuwuity/issues/913
2025-07-28 19:28:34 +01:00
Jade Ellis
4a83df5b57
chore: Fix link
2025-07-25 17:35:18 +01:00
Jade Ellis
aa08edc55f
chore: Release announcement
2025-07-25 17:30:31 +01:00
Jade Ellis
00c7e220bb
chore: Release
2025-07-25 14:10:06 +01:00
Jade Ellis
87be4d1a52
feat: Almost-functional musl builds on Alpine
...
Lots of fiddling, still can't get stuff to work
Next step is a debian builder copying the static libs from alpine
2025-07-24 23:22:27 +01:00
Jade Ellis
205506f206
chore: Update deps
2025-07-24 22:18:10 +01:00
Jade Ellis
66181c61af
chore: Update rocksdb, feature flag changes
...
Most of the way to static musl builds, just zlib I think
2025-07-24 21:51:52 +01:00
Jade Ellis
b7a0442298
feat: Musl images in docker
...
Not working at the moment, need to upgrade the rust-rocksdb and possibly
zstd to stop them force-enabling dynamic libclang
2025-07-24 19:00:41 +01:00
Jade Ellis
1bc663e1c8
docs: Fix spacing at the top
2025-07-24 13:37:52 +01:00
Jade Ellis
68b0140c42
docs: Add vias to matrix.to links
2025-07-24 13:31:58 +01:00
nexy7574
f32f60d056
fix(policy-server): Return the correct result when an event is marked as spam
2025-07-23 18:01:46 +01:00
nexy7574
fe06d78c8e
fix(policy-server): Update ask_policy_server docstring
2025-07-23 17:58:33 +01:00
nexy7574
99ebe022ed
fix(policy-server): Correctly default to 10 second timeout
2025-07-23 17:56:45 +01:00
nexy7574
f335f45017
feat(policy-server): Add configurable timeout
2025-07-23 17:49:08 +01:00
nexy7574
1726633c0f
fix(policy-server): Fixup refactor
2025-07-23 17:49:08 +01:00
nexy7574
dfda27fadc
feat(policy-server): Don't fail-closed & refactor references
2025-07-23 17:49:08 +01:00
Jade Ellis
9465c5df1f
style: Improve logging and comments
2025-07-23 17:49:07 +01:00
nexy7574
2d475b1220
style(policy-server): Run clippy
2025-07-23 17:49:07 +01:00
nexy7574
d7fa624fd2
feat(policy-server): Optimise policy server lookups
2025-07-23 17:49:07 +01:00
nexy7574
cc9202b0c4
feat(policy-server): Limit policy server request timeout to 10 seconds
2025-07-23 17:49:07 +01:00
nexy7574
a3d62ed0d9
feat(policy-server): Prevent local events that fail the policy check
2025-07-23 17:49:07 +01:00
nexy7574
78b7175677
feat(policy-server): Soft-fail redactions for failed events
2025-07-23 17:49:07 +01:00
nexy7574
74d60f256b
style(policy-server): Restructure logging
2025-07-23 17:49:07 +01:00
nexy7574
732c69f5ca
fix(policy-server): Avoid unnecessary database lookup
2025-07-23 17:49:07 +01:00
nexy7574
8e7801f323
chore: Update ruwuma & fix lints
2025-07-23 17:49:06 +01:00
nexy7574
9017efe45b
feat(policy-server): Policy server following
2025-07-23 17:49:06 +01:00
Jade Ellis
7e2f04a78a
chore: Check all features in CI and docs
2025-07-20 21:25:27 +01:00
Jade Ellis
d74514f305
ci: Fix inverted latest tag
2025-07-20 20:59:29 +01:00
Jade Ellis
95610499c7
chore: Disable direnv's nix flake interfering with cargo cache
2025-07-20 16:36:01 +01:00
Jade Ellis
f593cac58a
feat: Enable hardware-lock-elision and deadlock_detection
2025-07-20 16:35:59 +01:00
Jade Ellis
1c985c59f5
refactor: Allow with_lock to return data and take an async closure
2025-07-20 16:34:48 +01:00
Jade Ellis
b635e825d2
refactor: Implement with_lock for lock_api
2025-07-20 16:34:36 +01:00
Jade Ellis
6d29098d1a
refactor: Replace remaining std RwLocks
2025-07-20 16:33:36 +01:00
Jade Ellis
374fb2745c
refactor: Replace remaining std Mutexes
2025-07-20 16:32:48 +01:00
Jade Ellis
a1d616e3e3
refactor: Replace std RwLock with parking_lot
2025-07-20 16:31:55 +01:00
Jade Ellis
30a8c06fd9
refactor: Replace std Mutex with parking_lot
2025-07-20 16:31:02 +01:00
rooot
0631094350
docs(config): warn about federation key query timeout caveat
...
Signed-off-by: rooot <hey@rooot.gay >
2025-07-20 16:24:56 +01:00
rooot
9051ce63f7
feat(config): introduce federation connection timeout setting
...
fixes #906
Signed-off-by: rooot <hey@rooot.gay >
2025-07-20 16:24:26 +01:00
Jade Ellis
f513cb7598
chore: Remove false positives in typo checks
2025-07-19 20:31:54 +01:00
nexy7574
c639228f4d
style(space-upgrades): Remove unused import left over from 6691b7672b
2025-07-19 18:37:45 +01:00
nexy7574
331832616f
feat(space-upgrades): MSC4168: Override space child vias
2025-07-19 18:37:45 +01:00
nexy7574
b2b18002ea
fix(space-upgrades): Remove unused helper function
2025-07-19 18:37:45 +01:00
nexy7574
57868a008c
feat(space-upgrades): Skip empty state events in room upgrade
2025-07-19 18:37:45 +01:00
nexy7574
f063814d94
fix(space-upgrades): Incorrectly updated parent children events
2025-07-19 18:37:38 +01:00
nexy7574
3b5335630d
feat(space-upgrades): Transfer all state keys during upgrade
...
Before this change, only state events with an
empty state key would be cloned.
This allows m.space.child to be cloned appropriately.
2025-07-19 18:35:59 +01:00
nexy7574
b2883c3d6e
feat(space-upgrades): Update parent spaces in upgrade
...
This relies on the room being upgraded referencing
the space itself, but there isn't an easy way to
do it otherwise.
2025-07-19 18:35:58 +01:00
nexy7574
62bdfe1ce8
feat(space-upgrades): Copy over space child & parent states
2025-07-19 18:35:56 +01:00
Jade Ellis
843e501902
docs: Add section for testing TURN servers
2025-07-16 23:47:41 +01:00
Jade Ellis
0a8c13ffd2
fix: Use boolean where expected in services
...
Fixes https://forgejo.ellis.link/continuwuation/continuwuity/issues/905
2025-07-16 23:27:14 +01:00
Jade Ellis
a89ceb93d8
docs: Update Docker and generic instructions
...
Add instructions for proxying .well-known to Continuwuity in with
Traefik. Clarify and expand build instructions in generic deployment,
separating Rust toolchain and Nix approaches.
2025-07-16 23:27:14 +01:00
Jade Ellis
13de0ac822
docs: Update and improve NixOS documentation
...
Documentation now mentions the official package
2025-07-16 23:27:14 +01:00
Jade Ellis
4a5b122d77
docs: Improve grammar in Debian package
2025-07-16 23:27:14 +01:00
Jade Ellis
2655acf269
docs: Improve grammar in deployment documentation
2025-07-16 23:27:14 +01:00
Jade Ellis
3c320f6d6e
docs: Fix code examples in style guide
2025-07-16 23:27:14 +01:00
Jade Ellis
946449d3e5
docs: Add link to UV docs
2025-07-16 23:27:13 +01:00
Jade Ellis
b17f278803
docs: Add code style guide
2025-07-16 23:27:13 +01:00
Jade Ellis
6a4905271e
refactor: Add with_lock traits
2025-07-16 23:27:13 +01:00
Jade Ellis
cfc64ddb40
docs: Note python requirements
2025-07-16 23:27:13 +01:00
Jade Ellis
6aceac3833
docs: Note policy on large formatting diffs
2025-07-16 23:27:13 +01:00
Nyx
5bf20db8e7
Add /_continuwuity/ paths
2025-07-14 17:49:06 +00:00
nexy7574
1abe8f7835
fix: Creation bug
2025-07-12 22:37:49 +01:00
nexy7574
ce84c46459
style(902): Fix clippy complaining about cast
2025-07-09 15:28:31 +01:00
nexy7574
7b60f5368d
feat(902): Upload files for admin commands that are too long
2025-07-09 15:11:09 +01:00
nexy7574
e61a593932
fix: Implement MSC4307
2025-07-08 22:40:44 +00:00
nexy7574
b71186d958
chore(recaptcha): Update example config file
...
Unsure how this managed to get past the `git commit -S -a`
but sure
2025-07-08 19:47:42 +01:00
nexy7574
c362499cef
docs(recaptcha): Clarify registration when token & captcha are configured
2025-07-08 19:34:47 +01:00
nexy7574
14774fa153
feat(recaptcha): Don't allow pubkey without associated privkey
2025-07-08 19:32:23 +01:00
nexy7574
ff805d8ae1
feat(recaptcha): Fix linting issues after the linter fix lied to me
2025-07-08 19:27:51 +01:00
nexy7574
f0994355d4
feat(recaptcha): Fix linting issues
2025-07-08 19:15:55 +01:00
nexy7574
980774a275
feat(recaptcha): Update example config after previous changes
2025-07-08 19:08:25 +01:00
nexy7574
e4a6abe15e
feat(recaptcha): Disable treating captcha-enabled servers as abuse-prone
2025-07-08 19:07:27 +01:00
nexy7574
df1cb10a8e
feat(recaptcha): Add documentation for new fields
2025-07-08 19:03:35 +01:00
nexy7574
651d07a609
feat: Add ReCaptcha registration flow
2025-07-08 18:58:05 +01:00
Odd E. Ebbesen
13b21b00a9
feat: #821 - Options to disable local typing and read receipts
2025-07-08 14:52:28 +02:00
Odd E. Ebbesen
c3c33f47e2
feat: #821 - Options to disable local typing and read receipts
2025-07-08 14:45:57 +02:00
Odd E. Ebbesen
564e7097e6
feat: #821 - Options to disable local typing and read receipts
2025-07-08 12:43:48 +02:00
Gwendolyn Kornak
925e200d9c
include xtask
2025-07-07 14:18:09 -07:00
Shuroii
b5bf68b8c8
fix: RocksDB build
2025-07-07 20:47:30 +01:00
Shuroii
6289bcaabc
style: Run statix
2025-07-07 20:47:30 +01:00
Shuroii
cb138f5039
ref: Clean up rocksdb build
2025-07-07 20:47:29 +01:00
Shuroii
36a7bd7eb3
chore: Update toolchain hash & flake.lock
2025-07-07 20:47:29 +01:00
Shuroii
520a179bb0
ref: Remove lots of unused Nix assets
...
Also change some links to the new ones, removing reliance on June's github repos in some places
2025-07-07 20:47:29 +01:00
Shuroii
09199b0ea7
style: Format nix
...
nixfmt-rfc-style for flake
nixpkgs-fmt for nix/ directory
2025-07-07 20:47:29 +01:00
transgwender
0e2fdc415c
Update the rust 1.87 hash
2025-07-07 01:42:26 +00:00
Jade Ellis
8fb94f99e9
ci: Upload binaries as artifacts
2025-07-07 01:40:59 +00:00
Jade Ellis
3977ccfcea
ci: Fix docker tags
2025-07-07 01:40:59 +00:00
Jade Ellis
890b8e25fc
ci: Mirror RC tags
2025-07-07 01:40:59 +00:00
Jade Ellis
28a29c3a7b
feat: Generate binary documentation
...
Also refactors main.rs/mod.rs to silence clippy
2025-07-06 22:58:01 +01:00
Jade Ellis
d98ce2c7b9
feat: Generate admin command documentation
...
The first part of getting admin command docs on the website.
There's also the beginnings of manpage generation here, although it's
kinda sus and I'm not sure how it's supposed to work. I'll leave that to
anyone who wants to package it.
We introduce the beginings of the xtask pattern here - we do a lot of
file generation, I thought it would be best to avoid doing that on every
compilation. It also helps avoid lots of runtime deps.
We'll need to document generating this stuff & probably add pre-commit
hooks for it, though.
2025-07-06 22:58:00 +01:00
Jade Ellis
18d12a7756
feat: Support logging to journald with tracing-journald
...
This stubs out on non-unix platforms.
2025-07-06 22:58:00 +01:00
Jade Ellis
928b7c5e4a
fix: Correct vars
2025-07-06 22:57:33 +01:00
Jade Ellis
af8783ee51
ci: Mirror registry images
2025-07-06 22:45:01 +01:00
Nyx
52954c5b75
Even more renaming
2025-07-06 14:00:42 -05:00
Tom Foster
7e406445d4
Element Web build fixes
2025-07-03 22:26:02 +01:00
Jade Ellis
293e7243b3
style: Fix formatting/clippy issues
2025-07-02 19:32:50 +01:00
Jason Volk
143cb55ac8
Fix clippy::unnecessary-unwrap.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:32 +01:00
Jason Volk
3c7c641d2d
Add revoke_admin to service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:32 +01:00
Jason Volk
36e81ba185
Split state_cache service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:31 +01:00
Jason Volk
56420a67ca
Outdent state_compressor service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:31 +01:00
Jason Volk
c5c309ec43
Split timeline service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:28 +01:00
Jason Volk
c06aa49a90
Fix regression 75aadd5c6a
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:17:09 +01:00
Jason Volk
364293608d
Post-formatting aesthetic and spacing corrections
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:17:06 +01:00
Jason Volk
af4f66c768
Cleanup/improve other async queries in some client handlers.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:12:51 +01:00
Jason Volk
116f85360f
Toward abstracting Pdu into trait Event.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:03:26 +01:00
Jason Volk
3d0360bcd6
Dedup and parallelize current key backup count and etag fetching.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:03:26 +01:00
Jason Volk
667afedd24
Macroize various remaining Error constructions.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:03:24 +01:00
Jason Volk
21bbee8e3c
Simplify api to send notices to admin room
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:18 +01:00
Jason Volk
732a77f3a8
Use integrated error instead of panic on some legacy codepaths
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:18 +01:00
Jason Volk
f3dd90df39
Mitigate large futures
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:18 +01:00
Jason Volk
2051c22a28
Support optional device_id's in lazy-loading context.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:17 +01:00
Jason Volk
49f7a2487f
Modernize various sender_user/sender_device lets.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:14 +01:00
nexy7574
d6aa03ea73
style: Remove extraneous import
2025-07-02 00:53:40 +00:00
nexy7574
8e0852e5b5
docs: Add suggestion about auto join room
...
Adds suggestion to suspend_on_register doc that admins
should add a room that contains information to their
auto_join_rooms as to not confuse new users who may be
lost at the fact they can't join any rooms or send any
messages.
2025-07-02 00:53:40 +00:00
nexy7574
6e60918584
feat: Suspend new users on registration
2025-07-02 00:53:40 +00:00
nexy7574
68afb07c27
feat: Stabilise room summary API (MSC3266)
...
# Conflicts:
# Cargo.lock
# Cargo.toml
2025-07-02 00:48:16 +01:00
nexy7574
b44791799c
fix: Room bans preventing federated leaves
...
Fixes the issue where room bans prevent federating leave
events, resulting in local users being stuck in remote
rooms
2025-07-01 23:14:41 +01:00
nexy7574
4f69da47c6
feat: Advertise support for spec v1.8, 1.12, 1.13, and 1.14
2025-07-01 18:38:48 +01:00
nexy7574
24d2a514e2
chore: Resolve linting errors
2025-07-01 18:00:28 +01:00
nexy7574
f49c73c031
feat: Forbid suspended users from sending reports
2025-07-01 15:44:04 +01:00
nexy7574
59912709aa
feat: Send intentional mentions in report messages
2025-07-01 15:42:38 +01:00
nexy7574
97e5cc4e2d
feat: Implement user reporting
2025-07-01 01:55:13 +01:00
Jade Ellis
17930708d8
chore: Add second ko-fi as custom link
2025-06-29 23:06:26 +01:00
Jade Ellis
ec9d3d613e
chore: Add funding
2025-06-29 23:02:15 +01:00
nexy7574
d4862b8ead
style: Remove redundant, unused functions
2025-06-29 15:38:01 +00:00
Jade Ellis
acb74faa07
feat: Pass sender through admin commands
2025-06-29 15:38:01 +00:00
Jade Ellis
ecc6fda98b
feat: Record metadata about user suspensions
2025-06-29 15:38:01 +00:00
nexy7574
13e17d52e0
style: Remove unnecessary imports (clippy)
2025-06-29 15:38:01 +00:00
nexy7574
d8a27eeb54
fix: Failing open on database errors
...
oops
2025-06-29 15:38:01 +00:00
nexy7574
eb2e3b3bb7
fix: Missing suspensions shouldn't error
...
Turns out copying and pasting the function
above verbatim actually introduces more
problems than it solves!
2025-06-29 15:38:01 +00:00
nexy7574
72f8cb3038
feat: Do not allow suspended users to send typing statuses
2025-06-29 15:38:01 +00:00
nexy7574
1124097bd1
feat: Only allow private read receipts when suspended
2025-06-29 15:38:01 +00:00
nexy7574
08527a2880
feat: Prevent suspended users upgrading rooms
2025-06-29 15:38:01 +00:00
nexy7574
8e06571e7c
feat: Prevent suspended users uploading media
2025-06-29 15:38:01 +00:00
nexy7574
90180916eb
feat: Prevent suspended users performing room changes
...
Prevents kicks, bans, unbans, and alias modification
2025-06-29 15:38:01 +00:00
nexy7574
d0548ec064
feat: Forbid suspended users from sending state events
2025-06-29 15:38:01 +00:00
nexy7574
1ff8af8e9e
style: Remove unneeded statements (clippy)
2025-06-29 15:38:01 +00:00
nexy7574
cc864dc8bb
feat: Do not allow suspending admin users
2025-06-29 15:38:01 +00:00
nexy7574
8791a9b851
fix: Inappropriate empty check
...
I once again, assumed `true` is actually `false`.
2025-06-29 15:38:01 +00:00
nexy7574
968c0e236c
fix: Create the column appropriately
2025-06-29 15:38:01 +00:00
nexy7574
5d5350a9fe
feat: Prevent suspended users creating new rooms
2025-06-29 15:38:01 +00:00
nexy7574
e127c4e5a2
feat: Add un/suspend admin commands
2025-06-29 15:38:01 +00:00
nexy7574
a94128e698
feat: Prevent suspended users joining/knocking on rooms
2025-06-29 15:38:01 +00:00
nexy7574
a6ba9e3045
feat: Prevent suspended users changing their profile
2025-06-29 15:38:01 +00:00
nexy7574
286974cb9a
feat: Prevent suspended users redacting events
2025-06-29 15:38:01 +00:00
nexy7574
accfda2586
feat: Prevent suspended users sending events
2025-06-29 15:38:01 +00:00
nexy7574
fac9e090cd
feat: Add suspension helper to user service
2025-06-29 15:38:01 +00:00
nexy7574
b4bdd1ee65
chore: Update ruwuma
...
Fixes the wrong field name being serialised
2025-06-29 13:43:27 +01:00
nexy7574
4b5e8df95c
fix: Add missing init fields
2025-06-29 13:29:27 +01:00
nexy7574
d63c8b9fca
feat: Support passing through MSC4293 redact_events
2025-06-29 13:16:31 +01:00
nexy7574
9b6ac6c45f
fix: Ignore existing membership when room is disconnected
2025-06-29 12:14:20 +00:00
nexy7574
52e042cb06
Always calculate state diff IDs in syncv3
...
seemingly fixes #779
2025-06-28 20:37:40 +00:00
Jason Volk
f508e7654c
fix: off by one.
2025-06-28 00:38:45 +00:00
nexy7574
543ab27747
fix: Additional sanity checks when creating a PDU
...
Prevents creating events that are most likely catastrophically invalid
2025-06-27 20:58:52 +01:00
Jade Ellis
c82ea24069
docs: Add Matrix chat and space badges to README
2025-06-27 18:44:46 +01:00
Jacob Taylor
db58d841aa
fix: Only load children of nested spaces
2025-06-25 18:17:06 +01:00
Jade Ellis
f1ca84fcaf
fix: Correct project brand in admin & OTEL
2025-06-24 23:16:48 +01:00
Jade Ellis
63962fc040
docs: Remove completed items from the README
2025-06-24 23:13:28 +01:00
Jade Ellis
a24278dc1b
docs: Update mirror badges
2025-06-24 23:12:09 +01:00
Jade Ellis
b787e97dc1
chore: Document & enforce conventional commit messages
2025-06-24 22:43:44 +01:00
Jade Ellis
eb75c4ecb0
chore: Fix typos in commit messages automatically
2025-06-24 22:43:44 +01:00
Jade Ellis
9bbe333082
ci: Don't run docs flow when the secret is inaccessible
2025-06-24 22:43:43 +01:00
Jade Ellis
3177545a6f
chore: Remove clippy pre-commit hook
...
It's too slow for a good git experience
2025-06-24 21:45:54 +01:00
Kimiblock Moe
4a289a9fee
arch systemd: use credentials to load config
2025-06-24 11:07:11 +00:00
Jade Ellis
4d69a1ad51
docs: Deduplicate sections
2025-06-23 01:25:38 +01:00
Jade Ellis
4f174324ba
docs: Update contributing guide
2025-06-23 01:04:27 +01:00
Jade Ellis
2ecbd75d64
ci: fixes
...
- Install UV
- Verbose run
- Set permissions explicitly
- Check all files
2025-06-21 19:17:21 +01:00
Jade Ellis
a682e9dbb8
chore: Add commit to ignored revs
2025-06-21 18:03:38 +01:00
Jade Ellis
46c193e74b
chore: fix end of files & trailing whitespace
2025-06-21 17:59:01 +01:00
Jade Ellis
93719018a8
ci: Run additional sanity checks on repository
2025-06-21 17:58:28 +01:00
Jade Ellis
70df8364b3
chore: Bump rustyline-async from 0.4.3 to 0.4.6
2025-06-21 00:50:02 +01:00
Jade Ellis
bae8192fb3
chore: Bump resolv-conf from 0.7.1 to 0.7.4
2025-06-20 23:39:20 +01:00
Jade Ellis
add5c7052c
chore: Update lockfile
2025-06-20 21:51:53 +01:00
Jade Ellis
01200d9b54
build: Allow specifying build profile
...
Additionally splits caches by target CPU
2025-06-20 21:48:37 +01:00
Jade Ellis
0ba4a265be
build: Upgrade to Rust 1.87
2025-06-20 21:45:29 +01:00
Jade Ellis
08fbcbba69
build: Use newer LLVM for rust 1.87
2025-06-20 21:35:48 +01:00
Jade Ellis
b526935d45
build: Specify debian version
2025-06-20 21:35:03 +01:00
Jade Ellis
a737d845a4
chore: Don't specify targets in rust-toolchain
2025-06-20 21:25:34 +01:00
nex
e508b1197f
feat: allow overriding the "most recent event" when forcing a state download ( #853 )
...
Add option to select which event to set the state at to, for the force-set-room-state admin command.
This allows us to work around issues where the latest PDU is one that remote servers don't know about (i.e. failed federation for whatever reason)
Closes #852
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/853
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: nex <nex@noreply.forgejo.ellis.link >
Co-committed-by: nex <nex@noreply.forgejo.ellis.link >
2025-06-19 21:27:50 +00:00
Kimiblock
d6fd30393c
Update docs/deploying/arch-linux.md
2025-06-19 12:36:49 +00:00
Jade Ellis
6e16a6ef8f
chore: Release announcement
2025-06-14 22:34:24 +01:00
Jade Ellis
0870c8d647
chore: Release
2025-06-14 20:53:00 +01:00
Jade Ellis
d0f00e6f5c
feat: Allow mentioning @room in an admin announcement
2025-06-14 19:09:54 +01:00
Jade Ellis
5d44653e3a
fix: Incorrect command descriptions
2025-06-14 16:51:24 +01:00
Jade Ellis
44e60d0ea6
docs: Tiny phrasing changes to the security policy
2025-06-14 16:34:58 +01:00
Jade Ellis
d7514178ab
ci: Fix extra bracket in commit shorthash
2025-06-13 14:30:26 +01:00
Jade Ellis
1d45e0b68c
feat: Add warning when admin users will be exposed as support contacts
2025-06-13 13:39:50 +01:00
Jade Ellis
3c44dccd65
ci: HACK, disable saving to actions cache
2025-05-26 19:16:50 +01:00
Jade Ellis
b57be072c7
build: Don't rerun on git changes
2025-05-26 19:16:05 +01:00
Jade Ellis
ea5dc8e09d
fix: Use correct brand in clap version string
2025-05-26 19:16:05 +01:00
Jade Ellis
b9d60c64e5
ci: Don't specify container for image builder
2025-05-26 19:16:04 +01:00
Jade Ellis
94ae824149
ci: Don't install rustup if it's already there
2025-05-26 19:16:03 +01:00
Jade Ellis
640714922b
feat: For knock_restricted rooms, automatically join rooms we meet
...
restrictions for rather than knocking
2025-05-26 19:16:03 +01:00
Jade Ellis
2b268fdaf3
fix: Allow joining via invite for knock_restricted rooms
2025-05-26 19:16:01 +01:00
Jade Ellis
e8d823a653
docs: Apply feedback on security policy
2025-05-26 15:01:58 +01:00
Jade Ellis
0ba77674c7
docs: Security policy
2025-05-25 00:36:28 +01:00
Jade Ellis
2ccbd7d60b
fix: Reference config directly
2025-05-21 21:06:44 +01:00
Jade Ellis
60960c6e09
feat: Automatically set well-known support contacts
2025-05-21 20:32:53 +01:00
Jade Ellis
ce40304667
chore: Upgrade deps
2025-05-21 15:28:46 +01:00
Jade Ellis
dcbc4b54c5
ci: Always show sccache stats
2025-05-21 12:45:25 +01:00
Jade Ellis
fce024b30b
chore: Add must_use annotation
2025-05-21 12:45:14 +01:00
Jade Ellis
3e4e696761
fix: Make sure empty VERSION_EXTRA strings are ignored
...
Also updates built & removes unused optional features
2025-05-21 12:35:36 +01:00
Jason Volk
f605913ea9
Eliminate associated Id type from trait Event.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:15 +01:00
Jason Volk
44302ce732
Eliminate explicit parallel_fetches argument.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:15 +01:00
Jason Volk
bfb0a2b76a
Remove unused Pdu::into_any_event().
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:14 +01:00
Jason Volk
fcd5669aa1
Join jemalloc background threads prior to exit.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:13 +01:00
Jade Ellis
9b8b37f162
docs: Badges for mirrors
2025-05-21 02:51:09 +01:00
Jade Ellis
7a46563f23
ci: Cache docker image build mounts
2025-05-21 01:48:25 +01:00
Jade Ellis
1bf6537319
build: Split docker target cache by target platform
2025-05-20 22:47:55 +01:00
Jade Ellis
4ed04b343a
build: Use xtrace in bash scripts in Dockerfile
2025-05-20 22:13:13 +01:00
Jade Ellis
a4ad72e11d
ci: Run cargo test
2025-05-20 21:48:40 +01:00
Jade Ellis
1f57508879
ci: Don't clippy check dependancies
2025-05-20 21:47:35 +01:00
Jade Ellis
a325dfa56a
ci: Use timelord in clippy check
2025-05-20 21:47:27 +01:00
Jade Ellis
b5d2ef9a4a
ci: Refactor timelord to its own action
2025-05-20 21:36:01 +01:00
Jade Ellis
e200a7d991
ci: Cache Rust registry
2025-05-20 21:36:01 +01:00
Jade Ellis
034762c619
chore: Allow raw string hashes for metadata crate
2025-05-20 21:36:00 +01:00
Jade Ellis
e31d261e66
ci: Run clippy check
2025-05-20 21:36:00 +01:00
Jade Ellis
c5db43ba9a
chore: Docker ignore forgejo files
2025-05-20 21:31:41 +01:00
Jade Ellis
ec08e16b9f
build: Allow builder to decide on incremental or not
2025-05-20 21:31:41 +01:00
Jade Ellis
f14725a51b
ci: Check formatting
...
Also moves rustup installation to a seperate workflow and
enables caching.
The sccache action required a github.com api token, so we set
all that up too.
2025-05-20 21:31:41 +01:00
Jade Ellis
d03325c65a
chore: Set editorconfig for workflows
2025-05-20 21:31:40 +01:00
Jade Ellis
066794fe90
ci: Don't try build images on PR
2025-05-20 21:31:40 +01:00
Jade Ellis
beee996f72
docs: Rename conduwuit to continuwuity in more places
2025-05-10 20:37:08 +01:00
Jade Ellis
7c58e40c96
chore(typos): Ignore certificate files
2025-05-10 19:42:40 +01:00
Jade Ellis
5577ddca27
chore: Add CONTINUWUITY_ environment variables
...
Also updates some examples to match
2025-05-10 12:54:33 +01:00
Jade
c0f46269b5
docs: Fix name in README
2025-05-08 09:38:47 +00:00
Jade Ellis
01594a6243
chore: Fix typos across the codebase
2025-05-06 20:51:12 +01:00
Jade Ellis
d78fc53577
ci: Fix bad comparison
2025-05-01 21:27:12 +01:00
Jade Ellis
e3ae024ed3
chore: Link to Matrix rooms directly
2025-05-01 21:23:37 +01:00
Jade Ellis
fb9d4c30f4
feat: Prefill server name in federation test
2025-05-01 21:23:37 +01:00
Jade Ellis
cbcf4300df
ci: Cache timelord-cli to avoid unnecesary compilation
2025-05-01 21:23:37 +01:00
Jade Ellis
a98da7d942
refactor: Move git version info gather in into a build script
2025-05-01 00:38:35 +01:00
Jade Ellis
e1655edd83
feat: HTML default page
2025-04-30 22:31:25 +01:00
Jade Ellis
4158c1cf62
fix: Hack around software treating empty join rule incorrectly
2025-04-28 20:45:08 +01:00
Glandos
edd5fc6c7e
Actualiser debian/conduwuit.service
2025-04-27 18:52:20 +00:00
Kokomo
6b0288dd4c
Update Contributing.md file ( #807 )
...
Cleaned up wording and adjusted the links
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/807
Reviewed-by: nex <nex@noreply.localhost >
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: Kokomo <git@kokomo.cloud >
Co-committed-by: Kokomo <git@kokomo.cloud >
2025-04-27 18:42:02 +00:00
Kokomo
90f1a193e3
Add maintainer emails
2025-04-27 18:36:57 +00:00
Kokomo
a9a478f077
Add back space oops
2025-04-27 18:36:57 +00:00
Kokomo
b2620e6922
Remove email and add reference to matrix space
2025-04-27 18:36:57 +00:00
Tom Foster
60caa448b0
Tidy up publishing restriction check
2025-04-27 18:13:10 +00:00
Tom Foster
eb886b6760
Element Web client build
2025-04-27 18:13:10 +00:00
Tom Foster
73c991edd0
Ignore all markdown for auto image builds
2025-04-27 18:13:10 +00:00
Tom Foster
c698d65a92
Make Cloudflare Pages optional in CI
2025-04-27 18:13:10 +00:00
Jade Ellis
1a5ab33852
chore: Error on missing ID in messages
2025-04-27 16:35:38 +00:00
Jade Ellis
77c4f9ff2f
fix: Do not panic on invalid membership event content
2025-04-26 22:00:52 +01:00
Jade Ellis
dcbacb5b78
feat: Allow controlling client message filtering
2025-04-26 21:59:25 +01:00
Jade Ellis
c203c1fead
chore: Enable blurhashing by default
2025-04-26 21:56:39 +01:00
nexy7574
cdf105a24e
Don't serialize the x-key before storing it
...
Co-authored-by: dasha <admin@dimensionproject.net >
2025-04-25 02:18:00 +01:00
Jade Ellis
859ec56b4f
docs: Fix configuration examples and defaults
2025-04-24 00:48:20 +01:00
Jade Ellis
45872ede7a
chore: Fix formatting
2025-04-24 00:48:20 +01:00
Jade Ellis
f83238df78
refactor: Use config service
2025-04-24 00:48:20 +01:00
Tom Foster
4c8dfc4c2c
Suggested community guidelines changes
2025-04-24 00:41:16 +01:00
nexy7574
bfd7ab5a22
Bump ruwuma to 652cc48
2025-04-24 00:41:16 +01:00
nexy7574
ee11afb460
Inject reason into federated leave request membership
2025-04-24 00:41:16 +01:00
Jade Ellis
1d840950b3
docs: Mention Helm chart is for conduwuit
2025-04-23 22:20:08 +01:00
Nyx Tutt
f791dc6918
docs: Rename in more places
2025-04-23 22:18:16 +01:00
nexy7574
3eb4ee7af1
Change tom's email address
2025-04-23 19:30:20 +01:00
nexy7574
8f21403796
Use any runner for docs
2025-04-23 17:39:36 +01:00
nexy7574
4fbecca2d3
Add well-known/matrix/support
2025-04-23 17:39:26 +01:00
Jade Ellis
0307238bf8
docs: Work around DNS issues in example compose files
2025-04-22 14:29:25 +01:00
Jade Ellis
1d42b88f50
docs: Update Docker DNS troubleshooting section
2025-04-22 14:29:25 +01:00
Jade Ellis
81f8151aca
docs: Add matrix rooms to README
2025-04-22 14:29:25 +01:00
Jade Ellis
66e8cd8908
docs: Tone down the docker warning
2025-04-22 14:29:24 +01:00
Nyx Tutt
7beff25d3d
Update welcome message
2025-04-22 01:49:48 +00:00
nex
0c302f3137
Don't re-build images for docs changes
...
Ironically, this will trigger a rebuild anyway
2025-04-22 01:33:09 +00:00
n
c7ac2483a9
Fix offtopic room link
...
Signed-off-by: n <me@everypizza.im >
2025-04-22 01:27:50 +00:00
Jade Ellis
c68378ffe3
docs: Update 'Try it out' section
2025-04-21 00:38:47 +01:00
Jade Ellis
fbd404fa84
docs: Update docker documentation
2025-04-21 00:19:08 +01:00
nexy7574
ff93cfdc64
Fix up the docs, replace a lot of conduwuit references
2025-04-20 23:50:48 +01:00
Jade Ellis
22e7617362
chore: Release
2025-04-20 23:07:20 +01:00
Jade Ellis
b7b7d3a9e7
chore: Add the current prerelease to cargo.toml
2025-04-20 23:07:01 +01:00
nex
1c59b41ff1
Merge pull request 'Support fi.mau.room_id, and fully qualified room_id in /createRoom' ( #777 ) from nex/custom-room-id into main
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/777
Reviewed-by: Jade Ellis <jade@ellis.link >
2025-04-20 20:29:18 +00:00
Jade Ellis
2d9bdc0979
refactor: The update checker has become the announcements checker
...
Replaces June's endpoint with a continuwuity endpoint.
Adds a JSON schema.
Closes #89
Closes #760
2025-04-20 21:01:29 +01:00
Peter Gervai
5486dbda24
config: rocksdb_compaction help was inverted :-)
...
You seem to have replaced `disable_rocksdb_compaction` with `rocksdb_compaction`, since the help is blackmailing me never to set it to `true`, except **true is the default**.
I have tried to make it say what you possibly meant.
2025-04-20 19:48:09 +01:00
nexy7574
41581c9ae8
Fix invalid room ID check & prevent room IDs being prefixed with !
2025-04-20 15:41:19 +01:00
nexy7574
d3022b4112
Prevent creating custom room IDs belonging to other servers
2025-04-20 02:46:16 +01:00
nexy7574
6920814da9
Support fi.mau.room_id, and fully qualified room_id in /createRoom
2025-04-20 02:31:58 +01:00
Jade Ellis
fe7963d306
docs: Clarify
2025-04-20 00:31:08 +01:00
Jade Ellis
84445b8458
docs: Document backfill bypassing federation restrictions
2025-04-20 00:16:29 +01:00
Jade Ellis
9e62076baa
feat: Add allowed_remote_server_names
...
This allows explicitly allowing servers. Can be
combined with the opposite to create allowlist-only
federation.
See also #31
Closes #673
2025-04-19 23:37:55 +01:00
Jade Ellis
0eb9e4f3d2
refactor: Centralize server forbidden checks into moderation module
...
This moves all checks related to `forbidden_remote_server_names`,
`forbidden_remote_room_directory_server_names` and
`prevent_media_downloads_from` to a new `moderation` module.
This is useful for implementing more complicated logic globally.
Mostly the changes from #673 , but is also relevant for #750
2025-04-19 23:37:54 +01:00
Jason Volk
e71138ab6f
reduce large stack frames
2025-04-19 23:33:53 +01:00
Jason Volk
8e7373c027
mitigate additional debuginfo expansions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:53 +01:00
Jason Volk
576a783a6f
add missing feature-projections between intra-workspace crates
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:53 +01:00
Jason Volk
21ec255159
eliminate Arc impl for trait Event
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:53 +01:00
Jason Volk
3c5bbd4f05
simplify database backup interface related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
4f8fec7e5a
replace admin command branches returning RoomMessageEventContent
...
rename admin Command back to Context
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
fb3020d8da
misc async optimizations; macro reformatting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
ecf20f7ebb
improve appservice service async interfaces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
b3e5d2f683
remove box ids from admin room command arguments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
83126cc667
propagate better message from RustlsConfig load error. ( #734 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
eac713a2a9
slightly optimize user directory search loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
e8a64bb59d
increase snake sync asynchronicity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
05e65936fa
modest cleanup of snake sync service related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
e7c3f78377
modernize state_res w/ stream extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
d8b56c9c35
add ReadyEq future extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
75fb19a5ca
add ready_find() stream extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
d98ec6bf46
relax Send requirement on some drier stream extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jade Ellis
1b1198771f
ci: Move timelord to actions to avoid bad cache invalidations from cargo
2025-04-19 20:25:55 +01:00
Jade Ellis
d4561e950b
ci: Run builtin registry whenever secret is available
2025-04-18 22:25:10 +01:00
Jade Ellis
298e2af3d7
ci: Try invert condition for branch prefix
2025-04-18 22:24:35 +01:00
Jade Ellis
c5b99fbccd
ci: Enable buildx caching
2025-04-18 21:05:17 +01:00
Jade Ellis
2e6ec2f89c
chore: Update git links
2025-04-18 17:59:20 +01:00
Jade Ellis
b16e26952a
ci: Use dind label
2025-04-18 14:09:20 +01:00
Jade Ellis
9e0530839d
ci: Remove non-functional cache steps
2025-04-18 14:09:19 +01:00
Jade Ellis
d85aaabe9e
fix: Disable buildkit caching
...
This is for tom's runners, whilst they're having network issues
2025-04-18 14:09:19 +01:00
Jade Ellis
71d2421f55
ci: Only prefix non-default branches
...
AKA, tag image:main as the latest commit
2025-04-18 14:09:19 +01:00
Jade Ellis
fb793e8315
ci: Limit concurrency
...
Mainly to prevent runners from getting bogged down
2025-04-18 14:09:19 +01:00
Jade Ellis
10947f6f1a
fix: Replace rust cache with direct cache use, as Rust is not installed on CI image
2025-04-18 14:09:19 +01:00
Jade Ellis
93253237e9
ci: Prefix branch builds with branch-
2025-04-18 14:09:19 +01:00
Jade Ellis
0ac1ce9996
fix: Hardcode matrix
2025-04-18 14:09:19 +01:00
Jade Ellis
3ced2e2f90
fix: Use forgejo patched artifact actions
2025-04-18 14:09:18 +01:00
Jade Ellis
70cee36041
fix: Allow specifying user & password for builtin registry
2025-04-18 14:09:18 +01:00
Jade Ellis
cacaa6c512
build: Use hacks for a cached actions build
...
- Use cache dance for github actions caching
- Use timelord hack to avoid bad cache invalidation
2025-04-18 14:09:18 +01:00
Jade Ellis
6b92e96582
feat: Docker images built with Forgejo Actions
2025-04-18 14:09:18 +01:00
Jade Ellis
dc599db19c
chore: Change branding string to continuwuity
2025-04-18 14:00:31 +01:00
Jade Ellis
3a95585f0e
fix: Disambiguate appservices in lazy loading context
...
In the previous commit, app services would all appear to be the same
device when accessing the same user. This sets the device ID to be the
appservice ID when available to avoid possible clobbering.
2025-04-18 14:00:31 +01:00
nexy7574
68d68a0645
fix: Do not panic when sender_device is None in /messages route
...
The device ID is not always present when the appservice is the client.
This was causing 500 errors for some users, as appservices can lazy
load from `/messages`.
Fixes #738
Co-authored-by: Jade Ellis <jade@ellis.link >
2025-04-18 14:00:30 +01:00
Jacob Taylor
773c3d457b
fix space hierarchy pagination not respecting client-specified limit.
2025-04-17 07:48:54 -07:00
Tom Foster
b91af70e0b
Add Forgejo CI workflow for Cloudflare Pages
2025-04-16 15:49:46 +01:00
Tom Foster
538347204f
Add Matrix .well-known files
2025-04-16 15:49:46 +01:00
Tom Foster
90880e2689
Update mdBook config for continuwuity
2025-04-16 15:49:46 +01:00
Jade Ellis
f76f669d16
chore: Remove the default sentry endpoint
2025-04-15 22:35:54 +00:00
Jade Ellis
dad407fb22
chore: Add words to cspell dictionary
2025-04-15 22:35:39 +00:00
Jade Ellis
17a04940fc
chore: Update Olivia Lee in mailmap
2025-04-15 21:58:39 +01:00
Jade Ellis
6e5392c2f5
chore: Add Timo Kösters to the mailmap
2025-04-15 14:48:09 +00:00
Jade Ellis
57779df66a
chore: Add mailmap
2025-04-15 14:48:09 +00:00
Jade Ellis
35bffa5970
ci: Delete all old CI files
...
Part of #753
2025-04-15 10:25:49 +01:00
Jade Ellis
4f9e9174e2
docs: Mention future migration guide
2025-04-15 10:11:47 +01:00
Jade Ellis
3e54c7e691
docs: Phrasing
2025-04-15 10:11:47 +01:00
Jade Ellis
57d26dae0d
docs: Remove hidden conduwuit badges
2025-04-15 10:11:47 +01:00
Jade Ellis
e054a56b32
docs: New readme
...
It's a continuwuation!
2025-04-15 10:10:21 +01:00
June Clementine Strawberry
d8311a5ff6
bump crossbeam-channel bc yanked crate with potential double free
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-08 23:38:54 -04:00
June Clementine Strawberry
47f8345457
bump tokio because of RUSTSEC-2025-0023
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-08 09:05:49 -04:00
June Clementine Strawberry
99868b1661
update new complement flakes
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 16:11:35 -04:00
June Clementine Strawberry
d5ad973464
change forbidden_server_names and etc to allow regex patterns for wildcards
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 15:25:19 -04:00
June Clementine Strawberry
ff276a42a3
drop unnecessary info log to debug
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 13:19:09 -04:00
June Clementine Strawberry
5f8c68ab84
add trace logging for room summaries, use server_in_room instead of exists
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 13:17:13 -04:00
June Clementine Strawberry
6578b83bce
parallelise IO of user searching, improve perf, raise max limit to 500
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 20:09:22 -04:00
June Clementine Strawberry
3cc92b32ec
bump rust toolchain to 1.86.0
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 18:37:13 -04:00
June Clementine Strawberry
9678948daf
use patch of resolv-conf crate to allow no-aaaa resolv.conf option
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 18:33:43 -04:00
Jason Volk
500faa8d7f
simplify space join rules related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 22:12:33 +00:00
Jason Volk
d6cc447add
simplify acl brick-check conditions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 22:12:33 +00:00
June Clementine Strawberry
e28ae8fb4d
downgrade deranged crate
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 14:26:00 -04:00
June Clementine Strawberry
c7246662f4
try partially reverting 94b107b42b
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 14:07:37 -04:00
June Clementine Strawberry
a212bf7cfc
update default room version to v11
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 14:00:40 -04:00
Jason Volk
58b8c7516a
extend extract_variant to multiple variants
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
Jason Volk
bb8320a691
abstract and encapsulate the awkward OptionFuture into Stream pattern
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
Jason Volk
532dfd004d
move core::pdu and core::state_res into core::matrix::
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
June Clementine Strawberry
4e5b87d0cd
add missing condition for signatures upload failures
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-04 11:34:31 -04:00
Jason Volk
00f7745ec4
remove the db pool queue full warning
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-04 02:59:54 +00:00
Jason Volk
d036394ec7
refactor incoming prev events loop; mitigate large future
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 22:40:40 +00:00
Jason Volk
6a073b4fa4
remove additional unnecessary Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 22:40:40 +00:00
Jason Volk
b7109131e2
further simplify get_missing_events; various log calls
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 22:40:40 +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
Jason Volk
29d55b8036
move systemd stopping notification point
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
45fd3875c8
move runtime shutdown out of main; gather final stats
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
f9529937ce
patch hyper-util due to conflicts with federation resolver hooks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
0b56204f89
bump additional dependencies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
58adb6fead
upgrade hickory and hyper-util dependencies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
5d1404e9df
fix well-known using the hooked resolver
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
June Clementine Strawberry
f14756fb76
leave room locally if room is banned, rescind knocks on deactivation too
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 12:21:16 -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
0e0b8cc403
fixup+update msc3266, add fed support, parallelise IO
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 00:56:37 -04:00
June Clementine Strawberry
1036f8dfa8
default shared history vis on unknown visibilities, drop needless error log
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:46:01 -04:00
June Clementine Strawberry
74012c5289
significantly improve get_missing_events fed code
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:44:44 -04:00
June Clementine Strawberry
ea246d91d9
remove pointless and buggy *_visibility in-memory caches
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:38:47 -04:00
June Clementine Strawberry
1b71b99c51
fix weird issue with acl c2s check
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 10:49:38 -04:00
Jason Volk
0f81c1e1cc
revert hyper-util upgrade due to continued DNS issues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 22:17:08 -04:00
Jason Volk
bee1f89624
bump dependencies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 05:03:52 +00:00
Jason Volk
5768ca8442
upgrade dependency ByteSize
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 04:27:20 +00:00
Jason Volk
3f0f89cddb
use async_trait without axum re-export
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 04:27:20 +00:00
Jason Volk
d3b65af616
remove several services.globals config wrappers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 03:00:53 +00:00
Jason Volk
d60920c728
workaround some large type name length issues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 03:00:53 +00:00
Jason Volk
db99d3a001
remove recently-made-unnecessary unsafe block
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 02:30:32 +00:00
Jason Volk
bee4c6255a
reorg PduEvent strip tools and callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
dc6e9e74d9
add spans for for jemalloc mallctl points
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
5bf5afaec8
instrument tokio before/after poll hooks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
095734a8e7
bump tokio to 1.44.1
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
a93cb34dd6
disambiguate UInt/u64 type related in client/api/directory; use err macros.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
b03c493bf9
add stub for database benches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-29 01:06:39 +00:00
Jason Volk
d0132706cd
add --read-only and --maintenance program option
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-29 01:06:39 +00:00
Jason Volk
0e2009dbf5
fix client hierarchy loop condition
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-28 22:47:51 +00:00
Ginger
3e57b7d35d
Update expected test results
2025-03-28 14:30:14 -04:00
Ginger
75b6daa67f
Fix off-by-one error when fetching room hierarchy
2025-03-28 14:30:14 -04:00
June Clementine Strawberry
6365f1a887
remove sccache from ci for now
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-28 14:26:12 -04:00
Jason Volk
b2bf35cfab
fix benches from state-res
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-28 09:01:46 +00:00
Jason Volk
7f448d88a4
use qualified crate names from within workspace
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-27 07:08:41 +00:00
Jason Volk
c99f5770a0
mark get_summary_and_children_federation Send
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-27 07:08:41 +00:00
Jason Volk
dfe058a244
default config item to 'none' when zstd_compression not featured
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-27 01:09:27 +00:00
Jason Volk
07ba00f74e
abstract raw query command iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 04:43:05 +00:00
Jason Volk
9d0ce3965e
fix lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 02:25:54 +00:00
Jason Volk
d1b82ea225
use #[ignore] for todo'ed tests
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
23e3f6526f
split well_known resolver into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
8010505853
implement clear_cache() for resolver service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
9ce95a7030
make service memory_usage()/clear_cache() async trait
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
d8ea8b378c
add Map::clear() to db interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
17003ba773
add FIFO compaction for persistent-cache descriptor; comments/cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
a57336ec13
assume canonical order in db serialization test
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
7294368015
parallelize IO for PublicRoomsChunk vector
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
aa4d2e2363
fix unused import without feature jemalloc_conf
...
fix span passed by value
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
07ec9d6d85
re-sort pushkey_deviceid ( 33c5afe050)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
cy
33c5afe050
delete pushers created with different access token on password change
2025-03-21 10:34:17 -04:00
June Clementine Strawberry
7bf92c8a37
replace unnecessary check when updating device keys
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-17 23:02:34 -04:00
cy
658c19d55e
check if we already have a more preferable key backup before adding
2025-03-16 18:23:19 -04:00
cy
4518f55408
guard against using someone else's access token in UIAA
2025-03-15 19:35:09 -04:00
June Clementine Strawberry
ee3c585555
skip a few flakey complement tests
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-15 19:14:45 -04:00
June Clementine Strawberry
6c29792b3d
respect include_leave syncv3 filter
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 15:49:40 -04:00
June Clementine Strawberry
258b399de9
bump ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 15:23:10 -04:00
June Clementine Strawberry
5dea52f0f8
stop doing complement cert gen and just use self-signed cert
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 10:50:43 -04:00
June Clementine Strawberry
1d1ccec532
fix some nightly clippy lints
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 08:37:34 -04:00
June Clementine Strawberry
0877f29439
respect membership filters on /members
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 08:37:34 -04:00
June Clementine Strawberry
e920c44cb4
ignore humantime dep as tracing console-subscriber uses it (somewhere)
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 21:15:11 -04:00
June Clementine Strawberry
ae818d5b25
remove most of cargo test from engage as crane does that but with more caching
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 21:09:24 -04:00
June Clementine Strawberry
7f95eef9ab
bump ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 21:09:19 -04:00
June Clementine Strawberry
3104586884
bump tracing-subscriber, allowlist cargo-doc lint in admin room
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 18:05:36 -04:00
Odd Eivind Ebbesen
c4b05e77f3
Fix up wording in the doc comments for admin media deletion ( #694 )
2025-03-10 17:28:29 -04:00
Ginger
1366a3092f
Check the room_types filter when searching for local public rooms ( #698 )
2025-03-10 17:28:19 -04:00
Tamara Schmitz
1e23c95ec6
docs: refactor reverse proxy setup sections ( #701 )
2025-03-10 17:27:53 -04:00
June Clementine Strawberry
56dba8acb7
misc docs updates
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 17:27:06 -04:00
June Clementine Strawberry
889fb3cf26
add download-artifact pattern for OCI images only
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 13:55:11 -04:00
June Clementine Strawberry
e704bbaf11
update complement test results
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 12:59:18 -04:00
June Clementine Strawberry
5ba0c02d52
bump ruwuma to fix a threads issue, fix more error codes, delete legacy sytest cruft
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 12:29:54 -04:00
June Clementine Strawberry
df1edcf498
adjust complement cert generation
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 10:40:44 -04:00
June Clementine Strawberry
0e2ca7d719
implement disable TLS validation config option
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 21:55:07 -04:00
June Clementine Strawberry
0e342aab7f
fix a few error codes
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 14:20:24 -04:00
June Clementine Strawberry
47ff91243d
update complement results
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 03:33:29 -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
06f2039eee
bump ruwuma to maybe fix rare device key upload issues
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 00:44:56 -05:00
June Clementine Strawberry
0b012b529f
comment gotestfmt for now
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-08 19:32:16 -05:00
June Clementine Strawberry
5efe804a20
always disable fed, evict admins, and forget the room when banning a room
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-08 18:29:19 -05:00
strawberry
ef96e7afac
add cargo auditable for future use, ignore paste dependency being unmaintained for now
...
Signed-off-by: strawberry <june@girlboss.ceo >
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-08 14:05:52 -05:00
strawberry
c8a730c29e
implement MSC4267 automatically forgetting room on leave
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 03:07:42 -05:00
strawberry
bb0b57efb8
bump rust-rocksdb
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 02:30:58 -05:00
strawberry
5a3264980a
adjust complement script to allow using your own hs OCI image without nix
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 01:35:26 -05:00
strawberry
90fee4f50e
add gotestfmt log output to complement script and CI output
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 00:15:13 -05:00
strawberry
51d29bc1cb
bump complement
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-07 21:44:52 -05:00
strawberry
298b58c069
set file_shape for roomsynctoken_shortstatehash to 3, remove rust-rocksdb package spec
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-07 21:44:33 -05:00
June Clementine Strawberry
6052c0c8a2
ci: allow ourselves to write to the public docs directory
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 01:25:43 -05:00
June Clementine Strawberry
8b3f629198
bump rust-rocksdb
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 00:57:47 -05:00
June Clementine Strawberry
4f882c3bd8
add some ACL paw-gun checks, better PUT state event validation
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 00:57:39 -05:00
June Clementine Strawberry
2c58a6efda
allow broken no-op deny+allow room server ACL keys
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 00:54:30 -05:00
June Clementine Strawberry
fe65648296
remove unnecessary map_err
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 20:10:32 -05:00
June Clementine Strawberry
5ad1100e0f
bump our rocksdb fork
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 19:49:21 -05:00
June Clementine Strawberry
20dd1d148d
add new complement test results
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 18:55:13 -05:00
June Clementine Strawberry
fa71162c7d
bump rocksdb to v9.11.1
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 18:55:10 -05:00
June Clementine Strawberry
f34e0b21a3
remove rust-rocksdb dylib wrapper as we have a fork already
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 18:12:54 -05:00
June Clementine Strawberry
d80e61cbee
bump ring to 0.17.12
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 17:53:23 -05:00
June Clementine Strawberry
c92678ecbe
dont build with zlib in the nix flake
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 14:07:38 -05:00
June Clementine Strawberry
ecea0cff69
fix TestFetchMessagesFromNonExistentRoom complement test
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 13:44:44 -05:00
June Clementine Strawberry
931fd4c802
add missing target
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 13:44:44 -05:00
June Clementine Strawberry
657e91fd42
dont send push notifications from ignored users PDUs
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 13:44:42 -05:00
June Clementine Strawberry
f4c51cd405
remove zlib as a default rocksdb compression option
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 00:18:28 -05:00
June Clementine Strawberry
17b625a85b
reject device keys if they dont match user ID or device ID or are missing fields
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 00:14:49 -05:00
June Clementine Strawberry
c10500f8ae
bump rust-rocksdb and ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 00:14:24 -05:00
June Clementine Strawberry
2c1ec3fb02
allow both lowercase and uppercase usernames to login
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 21:31:49 -05:00
June Clementine Strawberry
408f5bd30c
add val_size_hints on membership cfs (todo remove these anyways)
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 19:34:27 -05:00
June Clementine Strawberry
97208d6081
add more safety checks before allowing a room marked as forgotten
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 19:34:27 -05:00
June Clementine Strawberry
35981d5aef
automatically forget rooms on leaving
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 19:34:22 -05:00
June Clementine Strawberry
7c17163730
switch to self-hosted ci runner, remove sudo usages
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 17:39:59 -05:00
June Clementine Strawberry
1ecd027389
always run checks when building in nix (doCheck true)
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-03 01:06:04 -05:00
June Clementine Strawberry
df72384c16
delete snappy, bump rust-rocksdb, bump rocksdb to v9.10.0 again
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-03 01:05:43 -05:00
June Clementine Strawberry
0d741bbd46
remove nix run ci test as its covered by complement
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-03 00:15:12 -05:00
June Clementine Strawberry
af714d5778
refactor+fix various issues with regs/logins and admin user commands
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:16:30 -05:00
June Clementine Strawberry
00cc23b649
bump nix lockfile, bump cargo.lock, bump ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:15:30 -05:00
June Clementine Strawberry
de53ad83b2
run nightly cargo fmt again
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:15:05 -05:00
June Clementine Strawberry
17e0384eeb
ignore errors instead of expecting for state gathering
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:11:43 -05:00
June Clementine Strawberry
dca7bf9635
try bumping cache-nix-action to v6
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-02-27 10:45:04 -05:00
Jason Volk
a67ab75417
fix edition 2024 lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-27 10:26:45 -05:00
June Clementine Strawberry
cbf207bd1f
try adding back some skipped complement tests
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 03:11:34 -05:00
June Clementine Strawberry
4bdd0d77db
bump complement, actually run all tests
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 02:52:19 -05:00
June Clementine Strawberry
045e8a2937
stop building mac binaries for now because of linker issues
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 02:51:55 -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
June Clementine Strawberry
e97952b7f6
bump nix lock, update to rust 2024 and 1.85.0 toolchain
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 01:17:30 -05:00
morguldir
bec19df275
increase compression levels for some column families again
2025-02-22 17:12:31 +01: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
morguldir
1061f68f0e
bump ruwuma
2025-02-21 21:13:06 +01:00
Jason Volk
01155fa649
fix unsafe precondition violation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-22 16:44:39 -05:00
strawberry
c614d5bf44
bump ruwuma
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-02-17 17:35:03 -05:00
Jason Volk
f47677c995
refactor spaces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
6113803038
better error logging on send_join response failure
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
4de0dafdf1
bump ruma
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
f2ca670c3b
optimize further into state-res with SmallString
...
triage and de-lints for state-res.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
0a9a9b3c92
larcen state-res from ruma
2025-02-16 17:40:21 -05:00
Jason Volk
b872f8e593
optimize with SmallString; consolidate related re-exports
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
ecc9099127
add conf item to re-disable atomic flush
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
e123a5b660
add state accessories for iterating state_keys of a type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
59c073d0d8
add unconstrained feature to service worker
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
5428526120
add tail-efficient logic extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
d8e94ee965
split spaces service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
31ab84e928
simplify client event endpoint
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
565837ad75
request auth media first
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
2d71d5590a
fix pdu add_relation() helper
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
3ec43be959
join initial fetches in get_relations()
...
skip recursion for max_depth=0
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Dzming Li
e3b81f7b64
Fix in caddyfile guide
...
If the reverse_proxy directive is omitted before 127.0.0.1:6167 in your Caddyfile, enabling the service with systemctl enable will result in an error.
2025-02-10 10:55:16 -05:00
strawberry
b6e9dc3d98
comment out borked ci thing for now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-09 10:17:28 -05:00
strawberry
cfcd6eb1a6
bump ruwuma to stop erroring on empty push response body
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-07 18:00:58 -05:00
strawberry
88e7e50daf
add missing source OCI image label metadata
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-07 11:49:00 -05:00
strawberry
8345ea2cd3
add --locked and --no-fail-fast to cargo test, add other feature test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 19:02:14 -05:00
strawberry
add2e0e9ee
bump rust-rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:36 -05:00
strawberry
43e6c27bb7
misc nix tweaks to maybe speedup ci
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:36 -05:00
strawberry
c7c9f0e4a6
catch clippy lints for --no-default-features builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:36 -05:00
strawberry
ef2d307c15
fix warnings and errors when building with no features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:32 -05:00
strawberry
f761d4d5c9
bump db version to 17, cleanup, rerun old migrations for users who downgraded
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 16:48:19 -05:00
strawberry
16b07ae3ec
add default systemd support for a TTY to use console mode from
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 16:47:10 -05:00
Jason Volk
62d80b97e6
add systemd unit logging mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-06 03:16:56 +00:00
strawberry
fda8b36809
add more systemd notify integration with stopping/reloading/ready states
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-05 07:32:00 +00:00
strawberry
f6dfc9538f
bump ruwuma to stop erroring on duplicate yaml values on appservice EDUs (we dont implement this atm anyways)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-05 07:32:00 +00:00
strawberry
f80d85e107
add SIGUSR1 systemctl reload config support to systemd units
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-05 07:32:00 +00:00
Jason Volk
9158edfb7c
fix empty join timeline bug
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-05 07:32:00 +00:00
Jason Volk
04656a7886
fix spaces pagination bug
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-05 07:32:00 +00:00
Jason Volk
442bb9889c
improvements on blurhashing feature
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 21:47:03 +00:00
Niko
62180897c0
Added blurhash.rs to fascilitate blurhashing.
...
Signed-off-by: Niko <cnotsomark@gmail.com >
2025-02-04 21:47:03 +00:00
Nineko
80277f6aa2
Adds .gitattributes to the projects to prevent LN and CLRF conflicts. ( #681 )
2025-02-04 16:46:00 -05:00
Jason Volk
d32534164c
fix soft-failed redaction regression ( ff8bbd4cfa)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 21:00:12 +00:00
Jason Volk
b3271e0d65
split state_accessor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
106bcd30b7
optimize incremental sync state diff
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
da4b94d80d
trap panics when running in gdb
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
32f990fc72
fix the panic counter in the tower layer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-03 01:16:09 +00: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
Jason Volk
ffe3b0faf2
make shutdown grace periods configurable
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
bd6d4bc58f
enforce timeout on request layers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
b4d22bd05e
remove unnecessary cf arc refcnt workaround
...
log errors and panics propagating through the request task join
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 10:08:30 +00:00
Jason Volk
7ce782ddf4
fix jemalloc cfgs lacking msvc conditions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 10:08:30 +00:00
Jason Volk
4add39d0fe
cache compressed state in a sorted structure for logarithmic queries with partial keys
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 10:08:30 +00:00
Jason Volk
ea49b60273
add Option support to database deserializer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 00:09:18 +00:00
Jason Volk
2fa9621f3a
flatten state_full_shortids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
09bc71caab
fix missed concurrent fetch opportunities in sender ( ffd0fd4242)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
6983798487
implement lazy-loading for incremental sync
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
a4ef04cd14
fix room join completion taking wrong sync branch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
4e0cedbe51
simplify v3 sync presence collecting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
4ff1155bf0
reroll encrypted_room branch in incremental sync state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
e161e5dd61
add pair_of! macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:45:37 +00:00
morguldir
f698254c41
make registration tokens reloadable, and allow configuring multiple
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2025-01-31 03:09:02 +01:00
Jason Volk
69837671bb
simplify request handler task base
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-30 18:58:32 +00:00
Jason Volk
ff8bbd4cfa
untwist the redaction check stanza
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-30 05:26:30 +00:00
Jason Volk
1a8482b3b4
refactor incoming extremities retention; broad filter, single pass
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-30 05:26:30 +00:00
Jason Volk
31c2968bb2
move db files command w/ filter args; misc related cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 23:21:08 +00:00
Jason Volk
3c8376d897
parallelize state-res pre-gathering
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 23:21:07 +00:00
Jason Volk
50acfe7832
flatten auth chain iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 21:28:26 +00:00
Jason Volk
eb7d893c86
fix malloc_conf feature-awareness
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 06:37:30 +00:00
Jason Volk
936161d89e
reduce bottommost compression underrides
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 03:09:13 +00:00
Jason Volk
329925c661
additional info level span adjustments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 03:09:13 +00:00
Jason Volk
af399fd517
flatten state accessor iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
ad0b0af955
combine state_accessor data into mod
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
2c5af902a3
support executing configurable admin commands via SIGUSR2
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
2f449ba47d
support reloading config via SIGUSR1
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
a567e314e9
simplify shutdown signal handlers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
ed3cd99781
abstract the config reload checks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
99fe88c21e
use smallvec for the edu sending event buffer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
ffd0fd4242
pipeline pdu fetch for federation sending destination
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
b2a565b0b4
propagate better error from server.check_running()
2025-01-29 01:18:08 +00:00
Jason Volk
c516a8df3e
fanout edu processing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
94d786ac12
process rooms and edus concurrently
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
677316631a
pipeline prologue of handle_incoming_pdu
...
simplify room_version/first_pdu_in_room argument passing
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
2b730a30ad
add broad_flat_map
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
98f9570547
add option to disable rocksdb checksums
...
reference runtime state for default option initialization
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:38:47 +00:00
Jason Volk
13335042b7
enable the paranoid-checks options in debug mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
6db8df5e23
skip redundant acl check when sender is origin
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
d0b4a619af
furnish batch interface with trait
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
4a2d0d35bc
split federation request from sending service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
3e0ff2dc84
simplify references to server_name
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
June Clementine Strawberry
71a3855af6
fix couple more docker manifest typos
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 21:30:15 -05:00
Jade Ellis
db7d23e780
fix creating manifest on wrong repo
2025-01-26 20:38:26 -05:00
Jade Ellis
1c585ab1b6
create manifests for unique docker tags
2025-01-26 20:38:26 -05:00
Jade Ellis
24e6086f12
load correct image file
2025-01-26 20:38:26 -05:00
Jade Ellis
ee63f720c9
revert incorrect tags
2025-01-26 20:38:26 -05:00
June Clementine Strawberry
4b3c54bbfa
check if DOCKER_USERNAME is empty as well in dockerhub desc publish
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 13:11:47 -05:00
Jason Volk
68856645ee
refactor lazy-loading
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
Jason Volk
9ad4f20da4
propagate underflow as error result, not index bounds panic
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
Jason Volk
186c459584
use scalar for file shape; increase shape for small-type columns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
Jason Volk
29a19ba437
add write_to_cache to descriptor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
June Clementine Strawberry
3b0195e6b3
misc various github actions ci fixes
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 01:10:25 -05:00
June Clementine Strawberry
4b331fe50e
update README.md, crate metadata, and OCI image metadata
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 01:08:39 -05:00
June Clementine Strawberry
c323894497
use test in postrm deb script before deleting
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 21:27:21 -05:00
June Clementine Strawberry
5b5ccba64e
make conduwuit lowercase in the user-agent again
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 21:20:55 -05:00
bumpsoo
9dcf289c7a
(doc): Update docker-compose.yml and conduwuit-example.toml
...
The server cannot start without a registration token when registration is configured
Signed-off-by: bumpsoo <bumpsoo063@protonmail.ch >
2025-01-25 20:08:46 -05:00
Jade Ellis
d86061084c
Publish haswell images to image registries ( #674 )
...
* push haswell images to docker repos
* Add OCI labels to image
* fixup! Add OCI labels to image
* fixup! push haswell images to docker repos
* fixup! Add OCI labels to image
* fixup! Add OCI labels to image
* fixup! Add OCI labels to image
2025-01-25 20:05:41 -05:00
Jade Ellis
1d26eec82d
publish README to docker hub
2025-01-25 19:34:10 -05:00
June Clementine Strawberry
9514064c1c
use --locked for macOS builds
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 13:40:31 -05:00
June Clementine Strawberry
2abf15b9e9
revert back to v9.9.3 due to upstream build issue with macos
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 13:35:22 -05:00
June Clementine Strawberry
cd5d4f48be
add mau.dev mirror of conduwuit
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 03:08:35 -05:00
morguldir
eed3291625
ci: set variable after ssh has been configured, mainly for draft pull requests
2025-01-25 02:01:55 -05:00
morguldir
6a7fe3ab7c
limit wal archive size to 1gb
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2025-01-25 02:01:36 -05:00
June Clementine Strawberry
72daf7ea68
bump rocksdb to v9.10.0, reverts upstream rocksdb regression causing deadlocks on corrupt WAL files
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 02:01:20 -05:00
Jason Volk
94f2384fb0
fix missing iteration-optimized read options on several stream types
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
d59f68a51a
add sensitive-field directives to config display
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
b1b6dc0479
reloadable configuration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
184a3b0f0c
reduce some tracing span levels; bump ruma
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
b5c167de12
call decay prior to purge for trim-memory
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
5be07ebc0f
eliminate references to services.globals.config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
7c6b8b132a
add config reloading indirector
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
1351d07735
improve path argument to Config::load and constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
6e7c73336c
move room version config check out of services.globals
...
make available_room_versions() non-member associated
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
52adae7553
add sequence method to db engine; improve engine interface/tracing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
a5520e8b1b
fix SRV override loss on cache expiration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-23 01:48:53 +00:00
Jason Volk
265802d546
additional prof/stats jemalloc related interface tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-23 01:48:53 +00:00
Jason Volk
da9f1ae5d7
expire resolver cache entries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 08:51:56 +00:00
Jason Volk
607e338ac2
cache result of resolution at completion of resolution
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 07:56:24 +00:00
Jason Volk
f75d9fa79e
deduplicate name resolutions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 06:57:18 +00:00
Jason Volk
7c0c029a4a
add try_lock to MutexMap; allow TryFrom constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 06:40:07 +00:00
Jason Volk
49023aa295
use database for resolver caches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 02:16:51 +00:00
Jason Volk
0c96891008
add CBOR support to database schema
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 00:52:48 +00:00
Jason Volk
1f31e74024
add del to raw suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 03:50:51 +00:00
Jason Volk
9ab381e4eb
generate fmt::Display for Config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 07:12:20 +00:00
Jason Volk
dda27ffcb1
add some compaction related interfaces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 12:05:07 +00:00
Jason Volk
8ab825b12c
add stream parallelism extension combinators
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-21 20:43:38 +00:00
Jason Volk
19f6d9d0e1
add index-compression and auto-readahead to descriptor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 12:12:44 +00:00
Jason Volk
277b4951e8
add compression-shaping; tweak default compression levels
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 11:50:17 +00:00
Jason Volk
610129d162
outdent auth_chain Service impl
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 09:05:49 +00:00
Jason Volk
4c0ae8c2f7
parallelize get_auth_chain outer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 09:02:50 +00:00
Jason Volk
ea25dc04b2
parallelize current and incoming fork-state fetch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 07:38:32 +00:00
Jason Volk
388730d6dd
add TryWideband trait to similar to TryBroadband
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 07:38:19 +00:00
Jason Volk
ac944496c1
optimize statekey-from-short loopsite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-14 19:17:45 +00:00
Jason Volk
3dae02b886
add preferred jemalloc config
...
add muzzy/dirty configuration mallctl interface
add program argument for --gc-muzzy=false
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:30:41 +00:00
Jason Volk
3eed408b29
additional util macros and reorg
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
4fbbfe5d30
add alt argument format for detecting cargo build phase
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
df3eb95d4f
additional affinity utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
7045481fae
add from_errno construction to Error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
c6ae6adc80
pre-allocate some amount of media read buffer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
afdf5a07b5
abstract hidden line related in config generator macro
2025-01-20 04:48:47 +00:00
Jason Volk
f9e76d6239
improve debug memory-stats options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
8141ca3444
refactor admin outputs to asyncwrite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
abf33013e3
check-in additional database test related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
96e85adc32
use cache builder for row and table cache options
...
add cache check using multi-get path
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
fc1170e12a
additional tracing span tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
819e35f81f
remove mutex lock/unlock during sync iteration.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
bab40a3747
enable hashing on large-block indexes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
aad42bdaa0
reduce block size on small tables
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
3759d1be6c
tweak per-column write_buffer down from default
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
77d8e26efe
integrate trim-on-park memory reclamation to runtime
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
7a8ca8842a
add jemallctl base; add trim to interface w/ console cmd
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:02 +00:00
Jason Volk
80832cb0bb
add checked math wrapper
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:16:17 +00:00
Jason Volk
98d8e5c63c
add standard error trait and thread access error conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:16:17 +00:00
Jason Volk
5167e1f06d
add option to disable listeners
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:43:58 +00:00
Jason Volk
e56d3c6cb3
add multi_get_statekey_from_short
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:43:58 +00:00
Jason Volk
afcd0bfeef
add deref_at macro util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:43:58 +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
Jade Ellis
afe9e5536b
remove undocumented jwt token login
2025-01-17 17:40:53 -05:00
Jason Volk
9ebb39ca4f
add missing cfg_attr on deserialisation db test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-15 14:34:50 -05:00
June Clementine Strawberry
f59e3d8850
bump nix lockfile, cargo.lock, rust to 1.84, and fix tracing fork
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-14 13:05:25 -05:00
morguldir
6cb3275be0
Add initial MSC4186 (Simplified Sliding Sync) implementation
...
Signed-off-by: morguldir <morguldir@protonmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-14 15:09:51 +01:00
morguldir
be16f84410
syncv3: use a function for repeated pattern of fetching sticky params
2025-01-13 22:31:21 -05:00
strawberry
9dd058de60
update complement results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
5a1c41e66b
knocking implementation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
add sync bit of knocking
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
fabd3cf567
ci: set binary as executable before uploading to webserver
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
5e21b43f25
run direnv exec in engage default steps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
9bda5a43e5
fix /kick endpoint unbanning banned users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
8c18481d1d
optimise resetting all user presences
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:09:53 -05:00
Holger Huo
fde1b94e26
fix: logic mistake
2025-01-11 21:43:58 -05:00
Holger Huo
b71201cf19
add: clear online status on server boot
2025-01-11 21:43:57 -05:00
Holger Huo
8451ea3bc3
update: refresh timeout greater than idle timeout
2025-01-11 21:43:57 -05:00
Holger Huo
6f15c9b3f4
fix: presence timer not working
2025-01-11 21:43:57 -05:00
strawberry
0074f903d8
delete lix binary cache because it has terrible reliability
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 21:43:57 -05:00
strawberry
1852eeebf2
disable more unnecessary features in various build outputs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 20:48:36 -05:00
strawberry
5b6279b1c5
ci: require docker publishing to pass tests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 20:48:36 -05:00
strawberry
4c2999ccd1
gate libloading to conduwuit_mods feature and cfg only
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 20:48:36 -05:00
strawberry
53d03bbb1f
gate sd_notify to linux target_os only
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 19:37:44 -05:00
Jason Volk
66231676f1
gracefully ignore unknown columns; add dropped flag in descriptor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 22:29:05 +00:00
Jason Volk
16fa2eca87
add conf item for write buffer size
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
6a0f9add0c
refactor database engine/options; add column descriptors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
02f19cf951
tweak tracing spans; inlines
...
db deserializer tracing instrument cover
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
685b127f99
simplify iterator state constructor arguments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
cc1889d135
Add default-enabled feature-gates for url_preview and media_thumbnail
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
0238f27605
prevent example-config generating in test builds
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
5dae086197
exclude config item from doctest
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 06:53:15 +00:00
Jason Volk
44e6b1af3c
fixes for tests to be run in release-mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 19:56:42 +00:00
Jason Volk
94c8683836
improve db pool topology configuration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
d36167ab64
partially revert 9a9c071e82; use std threads for db pool.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
925061b92d
flatten timeline pdus iterations; increase concurrency
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
27328cbc01
additional futures extension utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
a3f9432da8
eliminate the state-res mutex hazard
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
82168b972a
fix heroes calculation regression
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Neil Svedberg
7526ba9d6f
Add header to console
...
When the console is launched, it now prints this message:
conduwuit VERSION admin console
"help" for help, ^D to exit the console, ^\ to stop the server
2025-01-09 10:18:49 -05:00
Jade Ellis
8c74e35e76
automatically retry returning data in syncv3 ( #652 )
...
* automatically retry returning data in syncv3
* reference service
* clippy fixes
2025-01-03 22:15:48 -05:00
June Clementine Strawberry
e5049cae4a
update complement test results
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-02 22:02:11 -05:00
Jason Volk
f1af7ec08c
fix unused import in release mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-03 02:36:24 +00:00
June Clementine Strawberry
3b8a90ad13
delete more stuff to free up runner space
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-02 20:56:27 -05:00
strawberry
7a349fdc58
use latest sccache, bump nix flake lock, cache everything in rust-cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-02 19:13:27 -05:00
strawberry
6c8a1b5e9b
bump ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-02 18:48:04 -05:00
strawberry
a5d70f7356
add some m.room.member checks on putting direct state events
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-02 18:16:00 -05:00
Jason Volk
50cadbee96
add faster shutdown point in unix socket listener
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-02 08:20:02 +00:00
Jason Volk
b1182fe8a4
improve some router tracing spans
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-02 08:20:02 +00: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
b4ef646485
translate 5xx to 404 on remote media request
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
b8f8f68634
improve memory-usage output w/ more byte-sizes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
33635e11d1
bump ruma
...
tweak tracing instrument
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
1a71798859
add Expected trait to utils; use (already transitive) num-traits.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
7e4453620e
move exponential backoff util to different submod
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
2259e2c82f
batch queries to maximize throughput
...
query-side streams for first level of callsites
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
1792711d09
support core affinity mask
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
0b2fca5ad9
add complement diff from e2f6753a3280
2025-01-01 23:28:01 -05:00
June Clementine Strawberry
0e110bb48b
fix flipped room ver check on send_join
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-01 23:28:01 -05:00
Jason Volk
3ffe2cd56e
reduce backoff warning from infolog
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
c5b94be5b8
remove dev_release_log_level cfg
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
2bbb28bb88
get device info with libc using major/minor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
203cf57fdf
add console log event format hook
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
9c6b5b4407
add faster interruption to resolver ( #649 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
a1fc4d49ac
reduce non-debug startup warnings
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
b56e480b3c
integrate some std io error kinds with our status code abstraction
...
associate rocksdb error kinds with std io error kinds
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
7c8eeaf4ea
simplify multi_get_or_create/related stream implementations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
9eb99f8070
abstract async shutdown waiting loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
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
Jason Volk
d91570d0e6
add Error variant for FeatureDisabled
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
3a2c5be4f4
reduce exponential backoff for prev fetch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
e21403a4d4
use VecDeque for todo queues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
74eb30c106
add LIFO scheduling for database frontend pool workers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
6458f4b195
refactor various Arc<EventId> to OwnedEventId
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
5a335933b8
pass stream width to ruma state res
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
3b95af9a18
move stream width related into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
a407909d09
reduce unnecessary info-level spans to debug
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
7a6d657558
configurable dynamic stream concurrency scalar
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
b195107053
optimize for multi-queue storage topologies with affinity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
e5a1309583
additional interruption points to hasten shutdown
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
03f2ac9caf
simplify usage of mpmc channels which don't require receiver lock
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
5fdb8895b1
add utils to detect device io characteristics
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
749f29aaab
add and/and_then to BoolExt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
a3d87be22f
enable atomic_flush for database columns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
aefc4b4e69
add more program options for tokio
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
503210c3bf
toggle worker_affinity feature from program argument
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
674acc8657
add program options for tokio histogram settings
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
af3d6a2e37
shard sender into multiple task workers by destination hash
...
rename Destination::Normal variant
tracing instruments
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
98e6c81e49
offload remaining db iterator initial seeks on cache miss
...
consume task budget on cache hit
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
14341bb906
simplify and improve db iter State init interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Neil Svedberg
5bce0a3a46
Improve documentation for configuration
...
Although the configuration file was mostly wrapped to a line-width of
80, some lines were wrapped slightly shorter. I fixed this.
In general, all sentences were changed to start with a capital letter
and end with a period or other punctuation mark.
Many of the documentation commets read as, "config option to do XYZ". I
shortened these to simply "do XYZ".
2025-01-01 16:31:30 -05:00
Neek
c53e9e07f2
update cohost link
...
added an archive.org link to the cohost post as it will fully shut down at the end of the year
2024-12-27 13:57:18 -05:00
nexy7574
7f645ff0e9
Make some doc changes to admin media delete-past-remote-media
...
Adjust before/after doc to clarify internationally
Courtesy of @Aranjedeath
Run `cargo fmt`, properly
Fix stupid doc command issue
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-20 13:56:40 -05:00
Jade Ellis
5b5735f653
update ruwuma
2024-12-19 21:03:12 -05:00
Jade Ellis
025950139e
do not try to push to GHCR on pull requests from forks
2024-12-19 21:02:34 -05:00
Jade Ellis
0602e38ada
remove logging
2024-12-19 21:02:34 -05:00
Jade Ellis
8f73caae0b
fix github actions runs on forks
...
This commit contains two separate fixes:
1) use lowercased github username/repository for the docker
repository name.
This is because image registries only accept
lowercase in image repository names, but github stores the
repository and username in a case-sensitive manner. This broke
image uploads for me, as my username has uppercase chars.
2) change run conditions for some steps.
It will no longer attempt to set up SSH web publishing if the SSH
private key is not set.
It will also run the image registry upload steps if registry
usernames are missing, instead skipping individual uploads where
the token for that registry is missing.
Finally, it simplifies the sccache run conditions to use the
`SCCACHE_GHA_ENABLED` env variable, rather than duplicating that
logic.
Signed-off-by: Jade Ellis <jade@ellis.link >
2024-12-19 21:02:34 -05:00
admin@dimensionproject.net
802395bdb7
add password argument to reset-password admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-18 20:46:01 -05:00
Jason Volk
60a952508e
use macro for error constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 14:16:29 -05:00
Jason Volk
4d46df2af5
abort tasks for non-async pool shudown
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 14:16:23 -05:00
strawberry
7b8320e0eb
bump rocksdb to v9.9.3
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-18 13:41:30 -05:00
Jason Volk
6c42ac2726
add num_workers() convenience to core metrics
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:32:13 -05:00
Jason Volk
71673b2a88
add worker_affinity feature
...
split runtime init from main.rs
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:31:58 -05:00
Jason Volk
5f7636f177
set dbpool thread name (gated by tokio_unstable)
...
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-18 13:31:41 -05:00
Jason Volk
f78104a959
relax Send on input iterator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:29:51 -05:00
Jason Volk
ad8cbcaac1
check cache prior to offloading iterator seek
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:29:43 -05:00
strawberry
f54a62dda0
Revert "Send read reciept and typing indicator EDUs to appservices with receive_ephemeral"
...
This reverts commit 3675c941f8 .
2024-12-18 11:26:18 -05:00
strawberry
9040ad054e
Revert "misc typing cleanup"
...
This reverts commit 4dd809fdc4 .
2024-12-18 11:26:04 -05:00
strawberry
4dd809fdc4
misc typing cleanup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-17 23:13:35 -05:00
Jade Ellis
3675c941f8
Send read reciept and typing indicator EDUs to appservices with receive_ephemeral
2024-12-17 22:49:45 -05:00
Jade Ellis
5b6ff3869c
Fix typo in test from rename
2024-12-17 19:29:46 +00:00
AsenHu
9ec35cf684
skip uploading JSON files in release workflow
2024-12-17 03:01:40 +00:00
AsenHu
63c4975483
fix bug
2024-12-17 02:08:52 +00:00
strawberry
5813419f4b
free up ci runner space on both jobs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 22:49:34 -05:00
strawberry
8dcdb4b09a
update some more docs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 22:48:22 -05:00
strawberry
7ad710d96a
bump complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 18:00:49 -05:00
strawberry
c8c9d73b20
enable edns0 on hickory resolver config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 17:24:45 -05:00
strawberry
004671b437
dont copy join_authorized_via_users_server on leaving rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 15:58:53 -05:00
strawberry
aeae67a7ee
bump ruwuma to stop sending empty content rulesets
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 15:20:28 -05:00
strawberry
74c5bfd311
dont allow m.room.server_acl to be redacted
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:31:11 -05:00
strawberry
2ba0400758
return proper error for attempting to update m.room.create
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:23:13 -05:00
strawberry
468071336b
ping online presence on read updates like synapse
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:13:51 -05:00
strawberry
9c6908b8c1
bump ruwuma, implement MSC4076, add more pusher HTTP URL validation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:05:28 -05:00
strawberry
c8349988aa
ping online presence on typing updates like synapse
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 02:53:32 -05:00
strawberry
6c96acc482
use fast binary_search for some const slices
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:41:50 -05:00
strawberry
52693db477
hide messages from users servers on the forbidden_remote_server_names list
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:02:52 -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
c6bf8f5ea1
improve gh actions security using zizmor
...
https://github.com/woodruffw/zizmor
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-14 21:00:33 -05:00
strawberry
e4489a5d20
bump rust-rocksdb fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 21:59:37 -05:00
strawberry
a9f6bb6169
remove jemalloc_prof and jemalloc_stats from all-features builds (exc. debug)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 13:35:36 -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
17273b1cea
upload CI binaries to webserver for easy direct download
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 11:09:29 -05:00
Asen
c5aca8036d
add auto upload assets, upload binary to webserver
...
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 01:57:49 -05:00
strawberry
b73d558cba
start producing haswell target optimised x86 binaries for rocksdb fast CRC32 support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 01:57:45 -05:00
strawberry
76a5a67b6f
fix a couple rust 2024 lints introduced in rust 1.82.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-12 10:22:30 -05:00
strawberry
e0446181c5
remove unnecessary args in pack_receipts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 22:07:53 -05:00
strawberry
a26b1c5722
send private read receipt on sliding stink (sync)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 22:02:48 -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
strawberry
353dc17af4
construct private read receipt properly
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 21:25:07 -05:00
strawberry
66a82447da
log hostname in DNS error tracing spans
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 21:24:53 -05:00
strawberry
3e64a5c907
delete pointless bad_query_ratelimiter harming e2ee performance
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 19:46:34 -05:00
strawberry
5d51adc29d
update complement test results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 19:17:23 -05:00
strawberry
0740d7259a
document modifying systemd unit if changing database path
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 18:22:51 -05:00
strawberry
af08d3f7bd
document 'DNS No connections available' troubleshooting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 18:12:27 -05:00
strawberry
9ca964a97e
update stored default push rules when removing legacy mentions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 17:36:51 -05:00
strawberry
39abd9a827
(temp) drop sccache version down in CI to 0.8.2
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:29 -05:00
strawberry
ac0545f773
always set limited true on left timeline events in sync (for now)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:29 -05:00
strawberry
80f9536d21
rename config.rs to account_data.rs, refactor, add some missing checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:29 -05:00
strawberry
ef8392cbbe
allow empty POST request bodies (synapse behaviour) to improve compatibility
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:25 -05:00
strawberry
1e3bb02ced
bump cargo.lock, bump some deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 14:26:15 -05:00
strawberry
badb83484f
fix private read receipt support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 14:25:32 -05:00
Jason Volk
34f9e3260f
additional sync v3 refactoring/optimizations and tracing instruments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 06:20:30 +00:00
Jason Volk
aba88ccead
misc tracing span tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 06:20:30 +00:00
Jason Volk
5fc8e90e02
fix runtime metrics command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 05:40:45 +00:00
Jason Volk
cd67ca6c57
fix .gitignore to allow /target to be a symlink
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 05:40:45 +00:00
strawberry
9cb71e212a
nix: bump flake.lock finally after 3 months
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 17:03:54 -05:00
strawberry
0ff37b829c
update default systemd units to use network-online.target fully
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 13:33:24 -05:00
strawberry
b6ac3649ee
use fork of complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 13:04:13 -05:00
strawberry
e1bd6a7c2d
nix: try bumping to latest complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:52:06 -05:00
strawberry
faf48405aa
bump rocksdb to v9.8.4, enable track_and_verify_wals_in_manifest by default
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:52:06 -05:00
strawberry
ab4a283870
update complement config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
9d59f777d2
refactor fed membership endpoints, add missing checks, some cleanup, reduce line width
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
61670370ed
add rocksdb paranoid_file_checks config option, add some more config checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
1606441d09
disable admin_room_notices for complement, update welcome text
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
cf71aeef0b
fix+improve membership endpoint UX, dont reuse old membership reasons, small parallelisation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
a1b0369033
reduce line width on banned_room_check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
c070edc189
fix profile updates reusing old membership content + small parallelise + remove unnecessary Result
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
35e9d9b02e
fix duplicate timezone keys being sent on profile lookup requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
Jason Volk
a752fb9943
rename mod with tracing inits due to macro issues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 20:33:25 +00:00
Jason Volk
f70fdca828
remove jemalloc_stats from main default features
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 20:33:25 +00:00
Jason Volk
82133ee2ea
bump rust-rocksdb
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
ff56ee7413
add back the consume_budget on cache hits
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
6aa35260e6
misc database options tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
139a1ac504
configure the tokio runtime tunables
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
65a370836c
derive specific ReadOptions for iterators
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
aa6d0fcaa7
add unwrap_or_default() to future TryExt extension
...
start an OptionFuture extension
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
d921b82376
add options for console tracing EnvFilter details
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:26 +00:00
Jason Volk
da984d49cf
remove unnecessary tracing of pdu conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:26 +00:00
Jason Volk
b7a41f283f
optimize sync v3 asynchronicity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:26 +00: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
23cf2b2236
add is_err() to TryFuture extension
...
add fold_default to Future tools extension
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
de3b137df8
eliminate future wrapping stream for all_pdus()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
8e8c6bfe07
abstract supported room versions apis
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
f0a1aaf7bc
extend x-platform support for binding URL previews to interfaces via address
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jade Ellis
52cee65748
add support for binding to a specific interface for url previews
...
This is helpful to, for example, bind to an interface that can
only access the public internet. The resulting setup is less
maintenance-heavy / error-prone than manually maintaining a deny/
allowlist to protect internal resources.
Signed-off-by: Jade Ellis <jade@ellis.link >
2024-12-07 23:27:56 +00:00
strawberry
fe1ce521aa
add ignored user checks on /context and /event, misc cleanup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 18:33:12 -05:00
strawberry
ad0c5ceda4
add origin to tracing instrument logs on /send
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 17:13:39 -05:00
Jason Volk
68afdb22c7
force Cargo.lock version to 3
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:55:50 +00:00
Jason Volk
1d02851028
implement several broadband loops
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:50:20 +00:00
Jason Volk
59d5e3ebf1
additional stream extensions for any/all
...
additional stream extension TryBroadbandExt
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:49:19 +00:00
Jason Volk
c2d97aaa5e
increase default db pool worker count for large systems
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:49:19 +00:00
Jason Volk
513236b3ce
bump ruma for async state-res optimizations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
strawberry
9db0325b42
bump rust to 1.83.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 00:51:57 +00:00
morguldir
e0494c1538
add /bin/conduit to OCI image contents
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 00:51:57 +00:00
Jason Volk
784ccd6bad
return stream from multi_get_eventid_from_short
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
48703173bc
split get_batch from get.rs; add aqry_batch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
c01b049910
move cidr_range_denylist from globals to client service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
9d9f403ad5
prevent adding presence timer for server's own user
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
3109c0daba
perform async shutdown for database pool after services stop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
ef9b1c6303
simplify sender shutdown; prevent launching any retries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
b7df0a14c6
parallelize events_before and events_after in api/client/context
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
b5006a4c41
offload initial iterator seeks to threadpool
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 13:25:33 +00:00
Jason Volk
320b0680bd
pipeline various loops
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 13:25:33 +00:00
Jason Volk
ed8c21ac9a
modernize async srv lookup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 13:25:33 +00:00
Jason Volk
9a9c071e82
use tokio for threadpool mgmt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
89a158ab0b
add delay before starting updates check
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
7d6710c033
add broadband stream extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
61d9ac66fa
add ref_at util macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
3b30bd3580
add try_filter_map to TryReadyExt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
3fbd74310f
impl transposed form of MapExpect
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-01 10:51:04 +00:00
Jason Volk
9263439af8
fix is_matching macro argument designator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-01 10:51:04 +00:00
Jason Volk
4a3cc9fffa
de-arc state_full_ids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-30 08:38:12 +00:00
Jason Volk
b5266ad9f5
parallelize sender edu selection
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 08:47:03 +00:00
Jason Volk
6175e72f1c
simplify get_pdu() interface; eliminate unconditional Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 08:47:02 +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
2a9bb1ce11
add configurables for frontend pool options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-28 07:20:43 +00:00
Jason Volk
3ad6aa59f9
use smallvec for db query buffering
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-28 06:03:33 +00:00
strawberry
76c75cc05a
bump tracing fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-27 20:58:04 -05:00
Jason Volk
c7ae951676
add frontend threadpool to database
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 10:53:44 +00:00
Jason Volk
94d7b21cf0
use stricter timeout for fetching state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
2aeee4f509
parallel query for outlier/non-outlier pdu data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
dd8c646b63
optimize state compressor I/O w/ batch operation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
527494a34b
fix oversized tracing span arguments; lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
e83fa12451
tweak dev profile
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 02:57:13 +00:00
Jason Volk
4f97ff98d6
enter the tokio runtime for the scope of main init
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 02:57:13 +00:00
Jason Volk
f69c596f56
generalize return value wrapping to not require Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-26 03:45:21 +00:00
Jason Volk
238523f177
cleanup: reuse api rather than querying db
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-26 03:45:21 +00:00
strawberry
c5c74febb5
bump rust-rocksdb to 4bce1bb97d8be6f0d47245c99d465ca9cef33aad
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-25 16:32:09 -05:00
morguldir
63d1fcf213
add queued transactions rocksdb cf cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-25 16:08:30 -05:00
strawberry
b20bd65d38
fix matrix-appservice-irc workaround
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-25 15:55:31 -05:00
Jason Volk
62d560e2fb
improve tracing instruments on database::map
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 07:00:55 +00:00
Jason Volk
6c66391988
fix unnecessary serialization of sender query keys
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 06:50:15 +00:00
strawberry
6ccfc9ed98
slightly refactor appservice registration command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 23:14:19 -05:00
strawberry
e9fee04eef
fix needlessly strict appservice user existence check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 23:14:19 -05:00
strawberry
8611cc0ee9
fix ignored_filter check, exclude dummy events over sync
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 23:14:19 -05:00
Jason Volk
2592f83b69
add migration fix for duplicate readreceipt entries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
Jason Volk
c903a71807
refactor and optimize receipt service data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
Jason Volk
343ec59a8b
use arrayvec for integer deserialization buffer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
Jason Volk
6f1d50dda3
panic on otherwise ignored errors in debug mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
strawberry
29c715a45f
ci: remove some old/unnecessary paths-ignore
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 19:30:54 -05:00
strawberry
2675033aac
send plain txt admin room error responses
...
fixes bracketed arguments not showing up on missing args
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 19:19:08 -05:00
strawberry
b87362cbf1
ci: add test for validating generated example config is current
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 19:17:07 -05:00
Jason Volk
1c751168c6
check-in missed example config changes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 23:50:05 +00:00
Jason Volk
a582d0559a
bump url and cargo lock
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 22:16:16 +00:00
Jason Volk
4e74a1811b
ci: set cancel-in-progress to true
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 22:16:16 +00:00
Jason Volk
97ad9afc86
default to main event for batch tokens
...
fix prev_batch token for legacy sync timeline
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:47:25 +00:00
Jason Volk
c519a40cb8
use multiget for shortid conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:30:32 +00:00
Jason Volk
3789d60b6a
refactor to iterator inputs for auth_chain/short batch functions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:30:32 +00:00
Jason Volk
5da42fb859
refactor account_data.changes_since to stream
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:30:31 +00:00
Jason Volk
fd4c447a2d
move attribute argument extractor to utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 07:11:26 +00:00
Jason Volk
f30b08f015
fix optional config section related
...
split api/client well_known
simplify well_known config access
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 07:11:26 +00:00
Jason Volk
5f1cab6850
passthru worker thread count from env
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 05:18:36 +00:00
strawberry
175e1c6453
correct admin cmd getting version and bin name
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 22:36:22 -05:00
strawberry
af772b0240
various misc documentation improvements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 22:35:54 -05:00
strawberry
3fe98f35f2
remove queued push keys on pusher deletion, use more refs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 13:45:27 -05:00
strawberry
9d23a2b6f5
add missing length checks on pushkey/appid, improve error msgs for pusher
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 12:53:26 -05:00
strawberry
f15370027e
improve DNS error messages
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 12:05:52 -05:00
Jason Volk
b94eeb9580
fix deletions on readreceipt update
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:38:34 +00:00
Jason Volk
3968d03868
move and improve common-rooms related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:38:34 +00:00
Jason Volk
aea82183b2
add set intersection util for two sorted streams
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:38:34 +00:00
Jason Volk
bae0667066
limit sync response events to within the since/next_batch window
...
fixes #606
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:02:01 +00:00
strawberry
5256cad396
ignore bare_urls lint for well_known client config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:49:46 -05:00
strawberry
9100af9974
add eventid_pdu database cf cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:45:16 -05:00
strawberry
b6d53e97a6
bump ruwuma and a few http deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:44:50 -05:00
strawberry
336de49e6a
tiny optimisation in append_pdu push notif
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:44:50 -05:00
emily
ee3c58f78f
docs: add workaround to use unix sockets with the nixos module
2024-11-20 11:14:05 -05:00
nisbet-hubbard
876c6e933c
A minimal caveat
2024-11-20 09:41:11 -05:00
Jason Volk
2f2cebe84d
implement local room preview
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 09:12:50 +00:00
Jason Volk
e257512aa7
relax state visibility for invited modes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
411c60009d
enrich state iteration interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
7680d1bd5e
replace yields point with consume_budget
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
8fedc358e0
typename additional shortids
...
cleanup/split state_compressor load
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
90106c4c33
streamline batch insertions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
a05dc03100
use debug_warn for backfill event evals
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
26bcc7e312
fix default stateinfo cache size
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-17 00:15:13 +00:00
strawberry
85a6d8fc6b
ci: fix github pages publish check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-16 01:57:31 -05:00
Tamara Schmitz
2b2793fac6
docs: add note about the nixos service defaulting to sqlite
...
Co-authored-by: June 🍓 🦴 <june@girlboss.ceo >
2024-11-16 00:18:58 -05:00
strawberry
8f14048528
ci: free up a bit of runner space safely (again)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 23:48:55 -05:00
strawberry
7f96b2f92a
nix: remove libllvm, libgcc, and llvm from OCI images as well
...
aarch64 OCI images love llvm??
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 23:18:12 -05:00
strawberry
b92b4e043c
drop hyper-util back down to 0.1.8 due to DNS issues
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 22:16:11 -05:00
strawberry
6319384072
implement GET /_matrix/client/v3/pushrules/global/
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 21:41:38 -05:00
strawberry
ead9d66797
send the actual unsupported room version in join errors
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 21:28:08 -05:00
strawberry
cd2c473bfe
add missing fix_referencedevents_missing_sep key on fresh db creations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 21:00:26 -05:00
Jason Volk
887ae84f1e
optimize sha256 interface gather/vector inputs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
14e3b242df
add database get_batch stream wrapper
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
9f7a4a012b
improve tracing/logging for state_compressor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
5f625216aa
slight optimizations for statediff
...
calculate with_capacity for set/get_statediff() etc
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
20836cc3db
flush=false for database-backup in read-only/secondary modes; improve error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
59834a4b05
add is_read_only()/is_secondary() to Engine
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
strawberry
4b652f5236
ok cargo doc
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 17:50:39 -05:00
strawberry
be5a04f47c
ci: install liburing-dev
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 17:09:36 -05:00
strawberry
9c95a74d56
fix getting canonical alias server for backfill
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
6b1b464abc
add missing knock_restricted room type to /publicRooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
f897b4daee
ci: remove all free runner space steps due to flakiness
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
666989f74c
delete trivy as lately its been terribly unreliable
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
9783bc78ba
remove sentry_telemetry from default features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
c23786d37f
dont try to backfill empty, private rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
a9c280bd4c
document NAT hairpinning/loopback if needed
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
c1f553cf4f
bump rocksdb to v9.7.4, and ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:11 -05:00
strawberry
b4d809c681
add more checks for gh pages deployment workflow
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:49:54 -05:00
strawberry
3f69f2ee73
replace deprecated sha-1 crate, try to reduce some unnecessary crates/features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:44:29 -05:00
strawberry
dac1a01216
update generated example config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:43:58 -05:00
strawberry
44a7ac0703
add debug_assert is_sorted for inline content types
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
011d44b749
add missing declared support for MSC3952
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
72fb8371f9
link to migrating from conduit on the README
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
4f0bdb5194
general misc bug fixes and slight improvements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
fd2a002480
dont build sentry or perf_measurements features for complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
4296d7174f
add receive_ephemeral check for appservice EDU sending (if it even works)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
4fe47903c2
misc docs changes/improvements from example config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
08365bf5f4
update config documentation, commit generated example config
...
also removes the no-op/useless "database_backend" config option
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
Jason Volk
4ec5d1e28e
replace additional use tracing::
...
add log:: to disallowed-macros
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-14 04:50:07 +00:00
Jason Volk
e228dec4f2
add byte counting for compressed state caches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 23:14:05 +00:00
Jason Volk
6ffdc1b2a6
bump serde, image, loole, termimad etc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 22:59:28 +00:00
Jason Volk
004be3bf00
prepare utf-8 check bypass for database deserializer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 22:59:28 +00:00
Jason Volk
77fab2c323
use ruma visibility enum in directory interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
68582dd868
add parallel query for current membership state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
feefa43e65
add pretty/si-unit byte size parsing/printing utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
strawberry
c59f474aff
fixes for gh workflow
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
86694f2d1d
move non-generic code out of generic; reduce codegen
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
999d731a65
move err macro visitor out-of-line; reduce codegen
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 22:45:44 +00:00
Jason Volk
3962333043
partially revert e507c31306
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 21:35:30 +00:00
Jason Volk
61174dd0d3
check if lazyset already contains user prior to querying
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 21:30:48 +00:00
Jason Volk
e2afaa9f03
add config item for with_span_events
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 20:50:05 +00:00
Jason Volk
9790a6edc9
add unwrap_or_err to result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 20:50:05 +00:00
Jason Volk
08a4e931a0
supplement a from_str for FmtSpan
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 20:50:05 +00:00
OverPhoenix
24a5ecb6b4
fix incorrect user id for non-admin invites checking
2024-11-10 22:24:35 +00:00
Jason Volk
1efc52c440
increase logging during server keys acquire
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 11:17:42 +00:00
Jason Volk
f290d1a9c8
prevent retry for missing keys later in join process
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 08:47:15 +00:00
strawberry
7e087bb93c
Fixes for CI
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +00:00
Jason Volk
5e74391c6c
fix config generator macro matchers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +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
14fce38403
cork around send_join response processing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +00:00
Jason Volk
10be301646
split large notary requests into batches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:29 +00:00
Jason Volk
1ce3db727f
split event_handler service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 09:21:42 +00:00
Jason Volk
6eba36d788
split make_body template
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 09:21:42 +00:00
Jason Volk
f59e8af734
slight cleanup/simplifications to backfil
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 09:21:30 +00:00
Jason Volk
1f2e939fd5
optional arguments for timeline pdus iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 08:22:54 +00:00
Jason Volk
13ef6dcbcf
add standalone getters for shortid service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:09:04 +00:00
Jason Volk
27966221f1
add ready_try_fold to utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:09:04 +00:00
Jason Volk
79c6b51860
renames for core pdu
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:09:04 +00:00
Jason Volk
e507c31306
make pdu batch tokens zeroith-indexed
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:06:18 +00:00
Jason Volk
f36757027e
split api/client/room
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
7450c654ae
add get_pdu_owned sans Arc; improve client/room/event handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
3ed2c17f98
move sync watcher from globals service to sync service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
26c890d5ac
skip redundant receipts on syncs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
137e3008ea
merge rooms threads data and service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
9da523c004
refactor for stronger RawPduId type
...
implement standard traits for PduCount
enable serde for arrayvec
typedef various shortid's
pducount simplifications
split parts of pdu_metadata service to core/pdu and api/relations
remove some yields; improve var names/syntax
tweak types for limit timeline limit arguments
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Kirill Hmelnitski
2e4d9cb37c
fix thread pagination
...
refactor logic
increase fetch limit for first relates
apply other format
Co-authored-by: Jason Volk <jason@zemos.net >
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-04 19:25:31 +00:00
Jason Volk
78aeb620bc
add broad timeout on acquire_origins keys operation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-04 19:25:31 +00:00
Jason Volk
4a94a4c945
rename pdu/id to pdu/event_id
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-04 19:25:31 +00:00
Jason Volk
768e81741c
use FnMut for ready_try_for_each extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:51:07 +00:00
Jason Volk
8d251003a2
reduce Error-related codegen; add PoisonError
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:51:07 +00:00
Jason Volk
52f09fdb51
add database migration for missing referencedevents separator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:50:28 +00:00
Jason Volk
f191b4bad4
add map_expect for stream
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:50:28 +00:00
Jason Volk
8742437036
wrap unimplemented ser/de branches with internal macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
ba1c134689
move migrations out of globals service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
1f1e2d547c
optimize override ips; utilize all ips from cache
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
f746be82c1
typename some loose u64 ShortId's
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
0bc6fdd589
Refactor ShortStateInfo et al to properly named structures
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
6b0eb7608d
add Filter extension to Result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
e49aee61c1
consolidate and parallelize api/server access check prologues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
7fcc6d11a4
de-wrap state_accessor.server_can_see_event
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
0eb67cfea0
additional bool extensions for Result/Option conversion
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
9775694423
inline database stream interface functions lt 64B
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
a7cb1c5951
slightly optimize request signing/verifying
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
ed76797b55
add raw_ overloads for prefix/from counting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
ad117641b8
add tuple-apply macro with length argument for now
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
1fbfc983e9
optimize FedDest::Named port
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
strawberry
0387871063
add workaround for matrix-appservice-irc using historical localparts
...
see https://github.com/matrix-org/matrix-appservice-irc/issues/1780
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 21:20:36 -04:00
strawberry
6f37a251fb
allow taking room aliases for auto_join_rooms config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 20:55:40 -04:00
strawberry
9466aeb088
remove some unnecessary debug prints on notices
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 18:52:25 -04:00
strawberry
ee6af6c90e
drop report delay response range to 2-5 secs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 18:46:20 -04:00
strawberry
6cbaef2d12
always set RUST_BACKTRACE=full in OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 13:17:31 -04:00
strawberry
240c78e810
strong-type URL for URL previews to Url type
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 13:17:22 -04:00
strawberry
8ed9d49b73
skip new flakey complement test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-31 14:41:35 -04:00
Jason Volk
354dc9e703
add map accessor to Database; move cork interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-28 20:52:52 -04:00
strawberry
567a4cb441
implement admin command to force join all local users to room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
c71db93e22
implement admin command to force join list of local users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
0a281241ef
bump few dependencies, bump ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
85890ed425
remove some unnecessary HTML from admin commands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
065396f8f5
better document allow_inbound_profile_lookup_federation_requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
d92f2c121f
document nginx needing request_uri
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
Jason Volk
52e356d780
generate ActualDest https string on the fly
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-28 20:52:52 -04:00
Jason Volk
7a09ac81e0
split send from messages; refactor client/messages; add filters to client/context
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-28 20:52:52 -04:00
Jason Volk
6c9ecb031a
re-export ruma Event trait through core pdu
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 21:38:49 +00:00
Jason Volk
e7e606300f
slightly simplify reqwest/hickory hooks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 19:17:41 +00:00
Jason Volk
9787dfe77c
fix clippy::ref_option
...
fix needless borrow
fix clippy::nonminimal_bool
2024-10-27 02:11:07 +00:00
Jason Volk
5e6dbaa27f
apply room event filter to messages endpoint ( #596 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 02:11:07 +00:00
Jason Volk
d281b8d3ae
implement filters for search ( #596 )
...
closes #596
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 02:11:07 +00:00
Jason Volk
21a67513f2
refactor search system
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 02:11:07 +00:00
Jason Volk
f245389c02
add typedef for pdu_ids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
1e7207c230
start an ArrayVec extension trait
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
0426f92ac0
unify database record separator constants
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
6808671751
merge search service w/ data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
b7369074d4
add RoomEventFilter matcher for PduEvent
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
cf59f738b9
move macros incorrectly moved out of utils to top level
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
8742266ff0
split up core/pdu
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
ee92a33a4d
add some accessors to Ar for common patterns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
60cc07134f
log error for auth_chain corruption immediately
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
e175b7d28d
slightly cleanup prev_event eval loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
0e616f1d12
add event macro log wrapper suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
9438dc89e6
merge and resplit/cleanup appservice service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
efb28c1a99
add a Map::contains suite to db
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
49343281d4
additional bool extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
strawberry
b921983a79
send room alias on pusher notification
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
60d84195c5
implement MSC4210, bump ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
d6991611f0
add require_auth_for_profile_requests config option, check endpoint metadata instead of request string
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
0efe24a028
remove spaces from CSP header to save a few bytes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
2ce91f33af
log method on tracing req spans, fix path sometimes being truncated
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
652b04b9b6
update conduwuit freebsd docs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
f29879288d
document conduwuit k8s helm chart
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
89cc865868
bump conduwuit to 0.5.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
Jason Volk
aa768b5dec
distill active and old keys for federation key/server response
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c769fcc347
move core result into core utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
5cb0a5f676
add config generator controls via attribute metadatas
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
367d153380
add default-directives to config document comments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
3396542168
complete the example-config generator macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b08c1241a8
add some interruption points in recursive event handling to prevent shutdown hangs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
dd6621a720
reduce unnecessary clone in pdu handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b8260e0104
optimize for pdu_exists; remove a yield thing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
ca57dc7928
optimize config denylists
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
d35376a90c
aggregate receipts into single edu; dedup presence; refactor selection limits etc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04: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
0e0438e1f9
further optimize presence_since iteration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c06f560913
add some additional database::de test cases
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
167807e0a6
de-wrapper max_fetch_prev_event; increase default config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
0e55fa2de2
add ready_try_for_each to TryReadyExt extension utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b505f0d0d7
add (back) query_trusted_key_servers_first w/ additional configuration detail
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
ac75ebee8a
event_handler/timeline service cleanups
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
93130fbb85
add is_ok to futures TryExtExt utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
1fdcab0319
additional sync cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
828cb96ba9
split client/sync
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
55b8908894
merge rooms state_compressor service and data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
84191656fb
slightly cleanup appservice_in_room
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
0b085ea84f
merge remaining rooms state_cache data and service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
4576313a7c
merge rooms user service and data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
ed5b5d7877
merge rooms state service and data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
d0ee4b6d25
add resolve_with_servers() to alias service; simplify api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b4ec1e9d3c
add federation client for select high-timeout requests
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c0939c3e9a
Refactor server_keys service/interface and related callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
Jason Volk
d82ea331cf
add random shuffle util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
1a09eb0f02
use string::EMPTY; minor formatting and misc cleanups
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
89b5c4ee1c
add timepoint_from_now to complement timepoint_ago in utils
...
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
19880ce12b
add IgnoreAll directive to deserializer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
d3d11356ee
add serialized insert interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
2f24d7117a
further develop serializer for insertions
...
add JSON delegator to db serializer
consolidate writes through memfun; simplifications
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
fc4d109f35
add document comments to config items
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
f67cfcd535
cleanup Config::load()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
2a59a56eaa
initial example-config generator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c40d20cb95
add macro util to determine if cargo build or check/clippy.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
43b0bb6a5e
add non-allocating fixed-size random string generator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
a5e85727b5
add tuple access functor-macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
16f82b02a0
add util to restore state on scope exit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c9c405facf
relax Sized bound for debug::type_name
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
8ea2dccc9a
sort rustfmt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
e482c0646f
Add constructions and Default for PduBuilder
...
simplify various RoomMemberEventContent constructions
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
f503ed918c
misc cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -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
d526db681f
refactor various patterns for serde_json::from_ elim
...
bump ruma
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
55c85f6851
refactor to pdu.get_content() for serde_json::from_ elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
f7af6966b7
refactor to room_state_get_content() for serde_json::from_ elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
68315ac112
Add state_get_content(shortid) 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
Jason Volk
48a767d52c
abstract common patterns as core pdu memberfns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
2b2055fe8a
parallelize calculate_invite_state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
685eadb171
add is_not_found as Error member function; tweak interface; add doc comments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
dd9f53080a
add unwrap_or to TryFutureExtExt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
4485f36e34
add mactors for true/false
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
a2e5c3d5d3
add FlatOk trait to Result/Option suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
08a2fecc0e
catch panics at base functions to integrate with other fatal errors.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
89a3c80700
split admin-room branch from build_and_append_pdu (fixes large stack warning)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
56dd0f5139
use loop condition to account for loole channel close
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
814b9e28b6
fix unnecessary re-serializations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
strawberry
8eec78e9e0
mark the server user bot as online/offline on shutdown/startup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
morguldir
9eace1fbbb
fix sliding sync room type filter regression
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
Jason Volk
ba683cf534
fix aliasid_alias key deserialization
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
Jason Volk
bd9a9cc5f8
fix trait-solver issue requiring recursion_limit increase
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
Jason Volk
2d049dacc3
fix get_all_media_keys deserialization
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
Jason Volk
c6b7c24e99
consume all bytes for top-level Ignore; add comments/tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
strawberry
fa7c1200b5
miniscule spaces code optimisations
...
still terrible though
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
bd56d83045
fix room directory regression
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
ab9a65db5d
add MSC4151 room reporting support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
54a107c3c4
drop unnecessary error to debug_warn
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
98363852b1
fix: dont add remote users for push targets, use hashset instead of vec
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -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
115ea03edf
remove unnecessary full type annos
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
a9e3e8f77a
dont send non-state events from ignored users over /context/{eventId}
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
6a81bf23de
dont send events from ignored users over /messages
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
7a59add8f1
add support for reading a registration token from a file
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
ee1580e480
fix list_rooms admin command filters
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
b64a235165
use ok_or_else for a rare error
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
4413793f7e
dont allow sending/receiving room invites with ignored users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
2083c38c76
dont send non-state events from ignored users over sync
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -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
strawberry
fafe320899
send EDUs to appservices if in events
...
to_device is not supported yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:14 -04:00
strawberry
8311952629
bump ruma, cargo.lock, and deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:37:15 -04:00
Jason Volk
36677bb982
optimize auth_chain short_id to event_id translation step
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
ab06701ed0
refactor multi-get to handle result type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -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
96fcf7f94d
add rocksdb secondary; fix read_only mode.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
6b80361c31
additional stream tools
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
a8d5cf9651
Add rocksdb logging integration with tracing.
...
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
0e8ae1e13e
add ArrayVec-backed serialized query overload; doc comments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:33 -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
strawberry
4496cf2d5b
add missing await to first admin room creation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:32:33 -04:00
Jason Volk
3f7ec4221d
minor auth_chain optimizations/cleanup
...
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
Jason Volk
6001014078
add UnwrapInfallible to Result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
a5de27442a
re-export crates used by error macros
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
f7ce4db0b0
add is_not_found functor to error; tweak status code matcher
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
a5822ebc27
add missing err! case
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
63053640f1
add util functors for is_zero/is_equal; move clamp to math utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
bd75ff65c9
move common_elements util into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
aa265f7ca4
add err log trait to Result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
3d4b0f10a5
add expected! macro to checked math expression suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
2709995f84
add MapExpect to Result
...
add DebugInspect to Result
move Result typedef into unit
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
99ad404ea9
add str traits for split, between, unquote; consolidate tests
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
2db017af37
simplify service trait bounds and lifetimes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
strawberry
16014e1594
remove ProcSubset=pid from systemd units for now
...
they appear to cause strange rust malloc issues on Debian systems
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 23:51:02 -04:00
strawberry
7e828440f9
allow conduit database version 16
...
Conduit bumped the database version to 16, but did not introduce any
breaking changes. Their database migrations are extremely fragile and risky,
and also do not really apply to us, so just to retain Conduit -> conduwuit
compatibility we'll check for both versions.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 23:44:15 -04:00
strawberry
f6918833d7
remove -unknown- from nix flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 23:04:14 -04:00
strawberry
4d7bbe9fb4
tiny micro-optimisations in some config stuff
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:37:40 -04:00
strawberry
75be68fa61
add config option to control sending admin notices of alerts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:37:34 -04:00
strawberry
0760150822
cache all 3 x86_64 nix devshells in CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:08:23 -04:00
strawberry
37a2ba59d0
improve UX of admin media deletion commands, ignore errors by default, support deleting local media too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:02:58 -04:00
strawberry
724711218a
add note that ko-fi takes a fee
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:02:58 -04:00
strawberry
359fb25262
add missing feat_sha256_media to fresh database creations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:02:51 -04:00
strawberry
9761e2f10c
fix lockdown_public_room_directory bypass, add appservice exclusion
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 21:38:26 -04:00
strawberry
30e3e45f9f
misc CI improvements, build macOS binaries, flake improvements/fixes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 21:29:17 -04:00
strawberry
e5efd55838
feature-gate direct TLS mode to make rustls/aws-lc-rs optional
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:54:21 -04:00
strawberry
87734a074f
add m.call and m.call.member to list of permissions to set on public rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:53:31 -04:00
strawberry
a7c4a7933d
disable log colours in the complement config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:52:14 -04:00
strawberry
83becf013c
add config option to disable ANSI log colours
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:51:54 -04:00
strawberry
acb9eae707
add back server name to error sending PDU to remote server
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:51:50 -04:00
strawberry
2eee454a18
docs: nixos and unix socket fail, jemalloc and hardened.nix
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:50:52 -04:00
strawberry
e0b2595905
support reading TURN secret from a file (turn_secret_file)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:23 -04:00
strawberry
73afc1fd8f
allow taking multiple --config arguments to "include"/merge more config files
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:17 -04:00
strawberry
6acdd0d947
improve some general documentation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:13 -04:00
strawberry
e38c37d9e7
allow users to respond to polls by default (org.matrix.msc3381.poll.response)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:08 -04:00
strawberry
45254638b1
drop target-cpu optimised builds
...
this seems too broken.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:48:59 -04:00
strawberry
2d54264fbe
bump rust to 1.82.0, rocksdb v9.7.3, ruwuma, and a few nix pkgs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:47:51 -04:00
Toby Murray
6c1c7b35a5
Separate command lines
...
I don't think this works if the commands are invoked on the same line with no thing joining them, so separate them on to separate lines.
2024-10-24 15:09:28 -04:00
nisbet-hubbard
8428e7cdf7
Update generic.md
2024-10-19 12:35:20 -04:00
strawberry
e589464954
bump cargo.lock and deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-05 22:33:58 -04:00
Jason Volk
0413037246
fix lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-05 17:07:37 -07:00
Jacob Taylor
b9a8f8e6c7
automatically scale conduwuit caches by CPU-core-count
2024-10-05 17:07:37 -07:00
strawberry
032b199129
add db query command to get all pushers for a user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 19:56:29 -04:00
strawberry
e9e5fe2176
implement MSC4165, removing own power levels on deactivation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 14:20:01 -04:00
strawberry
17fd34eb12
dedupe some account deactivation steps, remove all profile fields on deactivation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 12:08:07 -04:00
strawberry
895b178720
add admin command to force demote a local user from a room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 11:36:47 -04:00
strawberry
a65dd6dfb3
dont allow guests to publish to room directories
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-14 12:37:29 -04:00
strawberry
e146c75279
dont include appservices in room guest access enforcement check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-14 12:27:22 -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
morguldir
80b72637e2
ci: enable cachix after restoring the cache
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-13 05:09:10 +02:00
morguldir
a41e63b40e
Add back allow_check_for_updates
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-12 22:51:31 -04:00
strawberry
cf9b72ce3f
remove a few unnecessary muts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-09 21:41:57 -04:00
strawberry
38552b36e9
make the first user admin if created from CLI / --execute
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-09 21:13:37 -04:00
strawberry
9de780b56c
remove unnecessary displayname requirement on making user admin
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-09 21:10:56 -04:00
strawberry
55f71d3912
bump conduwuit to 0.4.7
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:56:53 -04:00
strawberry
61347bee06
advertise support for MSC4133 and MSC4175
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:53:33 -04:00
strawberry
38cd88e1e8
remove unnecessary cloning on account deactivation profile updates
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:33:21 -04:00
strawberry
b44f7f5476
remove MSC4175 timezone on account deactivation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:23:54 -04:00
strawberry
e888810e67
update complement results for TestFederationThumbnail
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 16:22:02 -04:00
morguldir
02aee2f174
ci: retry attic push 3 times, and continue on errors
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 20:51:34 +02:00
morguldir
24c408f4c6
bump rocksdb to 9.6.1, add binutils to devshell
2024-09-08 19:21:23 +02:00
morguldir
1c1f300efe
ci: avoid propagating bash errors immidiately
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 17:41:02 +02:00
morguldir
8dccc04b40
nix: explicitly include liburing in the devshell
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 17:40:02 +02:00
strawberry
96ab59b5b0
bump cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 10:28:21 -04:00
strawberry
c47337f3db
docs: ignore development.md and contributing.md from lychee
...
and update 2 other nix references
Signed-off-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 10:24:38 -04:00
morguldir
3e0d404fb4
syncv3: use RoomTypeFilter struct instead of Option<RoomType>
...
Signed-off-by: morguldir <morguldir@protonmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 18:09:21 +02:00
morguldir
593d3bb321
nix: update flake.lock, skip building tests for liburing
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 05:03:30 +02:00
strawberry
f14a253664
add local_only arg to list joined members in room admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 12:46:59 -04:00
strawberry
b3974c569d
log device display name on normal user registrations too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 10:10:46 -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
strawberry
5ae9a5ff31
bump nix lockfile, and ruma
...
• Updated input 'attic':
'github:zhaofengli/attic/6d9aeaef0a067d664cb11bb7704f7ec373d47fb2' (2024-08-21)
→ 'github:zhaofengli/attic/bea72d75b6165dfb529ba0c39cc6c7e9c7f0d234' (2024-09-02)
• Added input 'attic/flake-parts':
'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d' (2024-08-01)
• Added input 'attic/flake-parts/nixpkgs-lib':
follows 'attic/nixpkgs'
• Updated input 'attic/nixpkgs':
'github:NixOS/nixpkgs/d4a7a4d0e066278bfb0d77bd2a7adde1c0ec9e3d' (2024-08-16)
→ 'github:NixOS/nixpkgs/b96f849e725333eb2b1c7f1cb84ff102062468ba' (2024-08-30)
• Updated input 'attic/nixpkgs-stable':
'github:NixOS/nixpkgs/205fd4226592cc83fd4c0885a3e4c9c400efabb5' (2024-07-09)
→ 'github:NixOS/nixpkgs/797f7dc49e0bc7fab4b57c021cdf68f595e47841' (2024-08-22)
• Updated input 'complement':
'github:matrix-org/complement/6e4426a9e63233f9821a4d2382bfed145244183f' (2024-07-30)
→ 'github:matrix-org/complement/39733c1b2f8314800776748cc7164f9a34650686' (2024-08-22)
• Updated input 'crane':
'github:ipetkov/crane/7ce92819802bc583b7e82ebc08013a530f22209f' (2024-08-18)
→ 'github:ipetkov/crane/7e4586bad4e3f8f97a9271def747cf58c4b68f3c' (2024-09-04)
• Removed input 'crane/nixpkgs'
• Updated input 'fenix':
'github:nix-community/fenix/e88b38a5a3834e039d413a88f8150a75ef6453ef' (2024-08-21)
→ 'github:nix-community/fenix/d9afdb4465ba2f20bb73b0ff5d2c2837cafc2e14' (2024-09-06)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/3723e5910c14f0ffbd13de474b8a8fcc74db04ce' (2024-08-20)
→ 'github:rust-lang/rust-analyzer/124c7482167ff6eea4f7663c0be87ea568ccd8c6' (2024-09-05)
• Updated input 'liburing':
'github:axboe/liburing/2d4e799017d64cd2f8304503eef9064931bb3fbd' (2024-08-21)
→ 'github:axboe/liburing/0fe5c09195c0918f89582dd6ff098a58a0bdf62a' (2024-09-06)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/36a9aeaaa17a2d4348498275f9fe530cd4f9e519' (2024-08-21)
→ 'github:NixOS/nixpkgs/ad416d066ca1222956472ab7d0555a6946746a80' (2024-09-04)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 09:27:29 -04:00
strawberry
6f643a4b06
bump rust to 1.81.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 21:08:21 -04:00
strawberry
80698c0b17
docs: add some more conduwuit development info
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 20:33:02 -04:00
strawberry
909eeac5b0
drop target CPU for aarch64 to cortex-a53 instead of cortex-a73
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 19:02:04 -04:00
strawberry
f521f88daf
docs: mildly update the NixOS page to ref https://github.com/NixOS/nixpkgs/pull/339260
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 19:00:38 -04:00
strawberry
8f7ade4c22
document all the fancy admin room config options and arguments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:44:24 -04:00
strawberry
8849a100fd
dont use HTML for initial welcome message
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:11:56 -04:00
strawberry
5dfda2d300
fix one header in readme
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:08:38 -04:00
strawberry
c13e9a7c2b
document allow_legacy_media config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:00:08 -04:00
morguldir
393eef431b
syncv3: avoid fetching timelines for invites
2024-08-31 18:58:39 +02:00
Jason Volk
4bac9b33cc
propagate config error for cidr range
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-09-01 11:15:55 +00:00
strawberry
60605e9579
remove unnecessary loop/allocations on CIDR range init
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:59:43 -04:00
strawberry
27bfb67d75
add --no-details to admin rooms list command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:56:49 -04:00
strawberry
fc1834d629
use codeblocks instead of HTML tables for some admin commands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:44:22 -04:00
strawberry
2fcedad2b1
document ways to recovering admin room access
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:40:17 -04:00
strawberry
b362f0e0fa
fix some other markdown formatting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 16:05:47 -04:00
strawberry
5530e7434a
notify admin room on new room directory publishes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 13:18:48 -04:00
strawberry
bfb10cda26
slightly cleanup and simplify client /report endpoint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 12:51:24 -04:00
strawberry
5dbb868936
remove unnecessary loops/allocations in client /capabilities
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 12:18:21 -04:00
Jason Volk
14b9511d2e
fix default capture EnvFilter in release mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-31 12:24:11 +00:00
morguldir
7b852352e5
deploying: make traefik config self-sufficient, include well known
2024-08-31 14:09:16 +02:00
Jason Volk
b45df5f7bd
bump appservice requests to v1.7
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-31 09:55:26 +00:00
strawberry
4797183b43
remove unnecessary loop/allocations in /joined_members
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 19:52:55 -04:00
strawberry
d68b71a0aa
add appservice ping client endpoint (MSC2659)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 19:38:15 -04:00
strawberry
922875477f
docs: fix some borked codeblocks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 19:38:15 -04:00
strawberry
3a623dbdc3
add force_leave_room admin command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 17:17:00 -04:00
strawberry
ae98610c50
docs: document new startup --execute admin cmd flag/argument
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 16:42:37 -04:00
strawberry
bceed3c829
dont debug print startup admin command content body
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 15:01:54 -04:00
strawberry
b89d2ceccd
bump syn, serde, and tokio
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
renovate[bot]
eaa8997506
Update nixos/nix Docker tag to v2.24.4
2024-08-30 12:57:50 -04:00
strawberry
42a42b24a9
renovate: exclude rust deps we forked / cant easily bump or upgrade
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
strawberry
8d7e5ca2bb
redirect/handle r0 media paths too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
strawberry
119cc2eec0
fix typo with reqwest builder for disabling zstd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
morguldir
9fde835673
syncv3: read receipts extension (MSC3960)
2024-08-30 18:23:42 +02:00
morguldir
bf9d498621
syncv3: check timestamps of all the rooms in the timeline
2024-08-30 18:20:18 +02:00
morguldir
f8cf57c1fb
syncv3: fix bump types and only set timestamp if we find an event
2024-08-30 11:39:14 +02:00
morguldir
26a6d349dc
nix: fix toolchain splicing warning
...
we load the toolchain from a file so not sure how we would create a toolchain based on pkgs 🤔
2024-08-30 10:35:05 +02:00
morguldir
77c0c13a83
syncv3: support per room account data
2024-08-30 10:31:08 +02:00
morguldir
36b8de1339
syncv3: include invited rooms in the count
2024-08-30 09:30:50 +02:00
morguldir
29a6065bae
syncv3: include latest timestamps, calculated from a default set of types
...
List borrowed from synapse
2024-08-24 14:52:48 +02:00
morguldir
f4c8b77377
syncv3: include the invite_state in the response
2024-08-24 07:33:07 +02:00
morguldir
85400d15bc
syncv3: reset the connection after restarts
2024-08-24 06:57:31 +02:00
morguldir
13334a88ca
syncv3: handle empty conn_id by mapping it to a predefined string
2024-08-24 06:45:33 +02:00
morguldir
351062eb82
syncv3: add support for filtering invites and room types
2024-08-24 06:44:32 +02:00
morguldir
001523ec81
Avoid panicing during sliding sync if the user isn't in any rooms
2024-08-24 05:23:51 +02:00
morguldir
0a5f18ed83
reformat: make markdown files wrap at 80 chars
2024-08-24 05:13:43 +02:00
morguldir
16ce62302a
.editorconfig: use tabs for rust files
2024-08-24 05:11:38 +02:00
Jason Volk
0068624cd6
add exception for upload when allow_legacy_media=false
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
2837151dba
redirect legacy url preview
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
3d8757c896
update complement for new media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
b175892178
support MSC4180 unstable stable flag for MSC3916
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
d8a1996e24
bump ruma for deprecation warning suppression
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
a934a7f687
freeze remote media via legacy endpoints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
1638be0339
add authenticated media client api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
ea2343850f
add remote fetch suite for authenticated media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
fcfb323cd5
relegate legacy media handlers to separate file
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
84a8e36120
add federation endpoints for authenticated media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
47f9c69eff
split media related migrations into service dir
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
73af171830
add config option for pruning missing media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
9654dd9218
Fix stale example config for media_compat_file_link
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
dea5fee6a3
abstract duration parsing into utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
4d42a29c51
add thumbnail dimension structure
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
7b0e830f4c
add interface to get file metadata w/ admin command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
e7b2c14280
tag admin room m.server_notice on grant
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
bb5f2556c3
improve admin command error propagation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f047675a63
rename admin/handler to admin/processor
...
Handler is overused. Handler ought to mean the end-function handling the
command. The command processor is the central dispatcher to the handler.
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f4db6292b3
add smoketest-assist execution mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
fcb9d04d9e
add program argument for functional testing; simplify execute argument
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
ffc41cb01f
split admin service startup related into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
e4bcbb8088
propagate errors from reqwest client constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
e4ba34a638
remove zombie globals/client file
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
strawberry
d5e7befaa9
move a few MXC parsing logs to trace
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
1157140657
mark sending ruma matrix version as 1_11
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
fb49e37067
add admin command to delete all remote media from a specific server
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
8923c9a227
add admin command to redact an individual event from a local user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
2b7e0dcb80
add admin command to delete all local media by a local user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
e790785db8
fix: force argument for delete past remote media wasn't fully functional
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
6b65a8fc86
add functions to delete media from specific local users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
a79ae7d1a2
add missing MXC URI prefix bytes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
156199a218
add --no_details to list banned rooms command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
c16e5b50eb
update complement results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
47ca835c20
initialise default TLS crypto provider with aws_lc_rs manually
...
we use ring for hashing state and ruma, and reqwest/rustls defaults
to aws_lc_rs, so we have to manually pick which one. there doesn't
seem to be a way to just use one for some reason, so lets just use
the new aws_lc_rs.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
morguldir
dc3d9ebbf1
Bump flake.lock to avoid https://github.com/NixOS/nixpkgs/issues/332957 for cargo-audit
2024-08-29 19:19:20 +00:00
morguldir
c1bcdeaf01
Add olm to permittedInsecurePackages for CI
2024-08-29 19:19:20 +00:00
strawberry
08efebd5af
bump rocksdb to v9.5.2
...
• Updated input 'rocksdb':
'github:girlbossceo/rocksdb/60fa2881f3b60b0b77ad3ded0904d432a98f392c' (2024-08-18)
→ 'github:girlbossceo/rocksdb/5a67ad7ce46328578ee5587fb0c23faa03d14e67' (2024-08-22)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
morguldir
ddacda9ecf
add heroes support to sliding sync responses
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
1e4b1e516e
ci: allow olm vulnerable library in nixpkgs for ci
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
fadb2de5bf
docs: document list of projects conduwuit has forked
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
edd42974e5
bump cargo.lock and deps, add zstd compression to reqwest client
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
e0fd84149d
bump nix flake.lock
...
• Updated input 'attic':
'github:zhaofengli/attic/26b9417bde03edc6280d1f7ce709cd619cdb72d4' (2024-08-13)
→ 'github:zhaofengli/attic/acf3c351f8de47c6857f31948ab253f9c7ce2a6f' (2024-08-19)
• Updated input 'attic/crane':
'github:ipetkov/crane/480dff0be03dac0e51a8dfc26e882b0d123a450e' (2024-05-29)
→ 'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
• Updated input 'attic/flake-compat':
'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17)
→ 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04)
• Updated input 'attic/flake-utils':
'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
→ 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
• Added input 'attic/flake-utils/systems':
'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'attic/nixpkgs':
'github:NixOS/nixpkgs/07262b18b97000d16a4bdb003418bd2fb067a932' (2024-03-25)
→ 'github:NixOS/nixpkgs/d4a7a4d0e066278bfb0d77bd2a7adde1c0ec9e3d' (2024-08-16)
• Updated input 'attic/nixpkgs-stable':
'github:NixOS/nixpkgs/44733514b72e732bd49f5511bd0203dea9b9a434' (2024-03-26)
→ 'github:NixOS/nixpkgs/205fd4226592cc83fd4c0885a3e4c9c400efabb5' (2024-07-09)
• Updated input 'cachix':
'github:cachix/cachix/bd558fd32f55d6df1c3d496bade90335a1a6044d' (2024-08-10)
→ 'github:cachix/cachix/72bb6b9987149f53f2458bb1596306c621d8b804' (2024-08-14)
• Updated input 'crane':
'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
→ 'github:ipetkov/crane/7ce92819802bc583b7e82ebc08013a530f22209f' (2024-08-18)
• Updated input 'fenix':
'github:nix-community/fenix/296d44c440302980824c5f3b67e477cf0522e0c1' (2024-08-13)
→ 'github:nix-community/fenix/b6a1c29a8f460af63f66cad2b5acf3b78867603e' (2024-08-20)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/32a86cb1dad2b208e8f36f1bb50c2e4806b0371f' (2024-08-12)
→ 'github:rust-lang/rust-analyzer/979e3b54f70f6f231c117a5d628b98106e5c7d31' (2024-08-19)
• Updated input 'liburing':
'github:axboe/liburing/401b3e4bde2316d35e93b548269c72bbb64adc02' (2024-08-13)
→ 'github:axboe/liburing/1ecfda19594e68b760a09b91ef442f7e76a3514e' (2024-08-19)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/a58bc8ad779655e790115244571758e8de055e3d' (2024-08-11)
→ 'github:NixOS/nixpkgs/8a3354191c0d7144db9756a74755672387b702ba' (2024-08-18)
• Updated input 'rocksdb':
'github:girlbossceo/rocksdb/911f4243e69c2e320a7a209bf1f5f3ff5f825495' (2024-07-13)
→ 'github:girlbossceo/rocksdb/60fa2881f3b60b0b77ad3ded0904d432a98f392c' (2024-08-18)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
23690fd837
make jemalloc stats an optional feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
867050df9e
use fork of rust-rocksdb and jemallocator
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
Jason Volk
50e66a2976
add partial envfilter support for admin log capture; conf item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
4d0fc41222
add conf item for federation loopback prevention bypass
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
152ae705a0
refactor for structured Mxc type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
54e6a41404
move remote media fetchers into services
...
minor error simplification
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
c3f00f4d15
remove redundant CSP directives which effectively default to the same value
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
43300ea41e
Make axum-dual-protocol a non-feature. Fix build issues.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
17a54bc4f8
refactor for ruma cow headers; update for ContentDisposition type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f540bed61e
propagate additional errors from db options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
2cf472a69b
elide header from command output when no logs captured
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
b2d8da489c
add configurable automatic admin command execution after startup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
025afb61cb
bump ruma again for borrowed identifier deserialization
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
40d53563fc
integrate ruma js_int errors into enum
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
5db816277b
add from serde_json error to enum
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
efa70b9e78
add serde de/ser impls for error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
bac795de5f
use transparent thiserror attribute; cleanup error variants
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f69f4c479c
propagate error from database options building
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
992f725362
allow expression to defer macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
0e56d1c7a2
add math::try_into util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
b4d5282123
add nullary type_name debug util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
15ad7523aa
split Destination enum into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
eb6e509ad8
use where clause for long lines
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
strawberry
4432c06c86
remove local room aliases and unpublish room when banning a room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
bc5ecb0c72
attempt to recreate server default push rules more if broken/empty content/etc
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
f1b41ce6e3
remove unnecessary alias check on deleting room aliases
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
826b1d1d62
remove unnecessary "unsupported room version" error on PDU processing to allow custom room versions properly
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
c40ed0c98e
add missing remove aliases on room upgrade transferring room aliases
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
Matthias Ahouansou
2d9aab2e79
support timestamped appservice messaging
...
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
66679c7522
nix: bump flake.lock
...
• Updated input 'attic':
'github:zhaofengli/attic/6139576a3ce6bb992e0f6c3022528ec233e45f00' (2024-07-09)
→ 'github:zhaofengli/attic/26b9417bde03edc6280d1f7ce709cd619cdb72d4' (2024-08-13)
• Updated input 'cachix':
'github:cachix/cachix/4e9e71f78b9500fa6210cf1eaa4d75bdbab777c3' (2024-07-02)
→ 'github:cachix/cachix/bd558fd32f55d6df1c3d496bade90335a1a6044d' (2024-08-10)
• Updated input 'cachix/devenv':
'github:cachix/devenv/bb32aa986f2f695385e54428d0eaf7d05b31466e' (2024-06-30)
→ 'github:cachix/devenv/ff5eb4f2accbcda963af67f1a1159e3f6c7f5f91' (2024-08-08)
• Updated input 'cachix/devenv/pre-commit-hooks':
follows 'cachix/pre-commit-hooks'
→ follows 'cachix/git-hooks'
• Added input 'cachix/git-hooks':
'github:cachix/git-hooks.nix/c7012d0c18567c889b948781bc74a501e92275d1' (2024-08-09)
• Added input 'cachix/git-hooks/flake-compat':
follows 'cachix/flake-compat'
• Added input 'cachix/git-hooks/gitignore':
'github:hercules-ci/gitignore.nix/637db329424fd7e46cf4185293b9cc8c88c95394' (2024-02-28)
• Added input 'cachix/git-hooks/gitignore/nixpkgs':
follows 'cachix/git-hooks/nixpkgs'
• Added input 'cachix/git-hooks/nixpkgs':
follows 'cachix/nixpkgs'
• Added input 'cachix/git-hooks/nixpkgs-stable':
'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7' (2024-07-07)
• Updated input 'cachix/nixpkgs':
'github:NixOS/nixpkgs/00d80d13810dbfea8ab4ed1009b09100cca86ba8' (2024-07-01)
→ 'github:NixOS/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
• Removed input 'cachix/pre-commit-hooks'
• Removed input 'cachix/pre-commit-hooks/flake-compat'
• Removed input 'cachix/pre-commit-hooks/gitignore'
• Removed input 'cachix/pre-commit-hooks/gitignore/nixpkgs'
• Removed input 'cachix/pre-commit-hooks/nixpkgs'
• Removed input 'cachix/pre-commit-hooks/nixpkgs-stable'
• Updated input 'crane':
'github:ipetkov/crane/2d83156f23c43598cf44e152c33a59d3892f8b29' (2024-07-09)
→ 'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
• Updated input 'fenix':
'github:nix-community/fenix/5087b12a595ee73131a944d922f24d81dae05725' (2024-07-13)
→ 'github:nix-community/fenix/296d44c440302980824c5f3b67e477cf0522e0c1' (2024-08-13)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/ffbc5ad993d5cd2f3b8bcf9a511165470944ab91' (2024-07-11)
→ 'github:rust-lang/rust-analyzer/32a86cb1dad2b208e8f36f1bb50c2e4806b0371f' (2024-08-12)
• Updated input 'liburing':
'github:axboe/liburing/1d674f83b7d0f07553ac44d99a401b05853d9dbe' (2024-07-12)
→ 'github:axboe/liburing/401b3e4bde2316d35e93b548269c72bbb64adc02' (2024-08-13)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9' (2024-07-12)
→ 'github:NixOS/nixpkgs/a58bc8ad779655e790115244571758e8de055e3d' (2024-08-11)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
a2afdbe1fa
bump various cargo deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
f86ab0cd03
bump rust toolchain to hotfix 1.80.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
7b8ef3b070
dont apply new_user_displayname_suffix to appservice user registrations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
83ef4eecc7
reduce unnecessary logging on URL preview and event, use sensible error code for URL previews
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
52ccad04a6
apply forbidden_remote_server_names to outbound sending and inbound federation handling
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
8fe19a6ef0
dont send duplicate membership update events if pfp and display name are same
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
fd96f597cd
respect m.room.guest_access on room joins
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
982f9eb780
implement MSC4166, returning M_NOT_FOUND if no TURN URIs are set
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
aeb6fbe70f
remove matrix.org code of conduct from conduwuit's foundational rules
...
while their code of conduct has very great baseline points, this is not a code of
conduct the foundation upholds themselves, so it would be a disserve to mislead
folks into using this as a baseline.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 14:24:37 -04:00
Aurora Master
d264935625
Update ci.yml
2024-08-27 13:56:43 -04:00
Matthew Scheffel
28cd784972
paginate_relations_with_filter DRY & flip ordering #504
2024-08-16 22:19:10 -04:00
strawberry
6662aa21ef
bump complement to 6e4426a9e63233f9821a4d2382bfed145244183f
...
• Updated input 'complement':
'github:matrix-org/complement/0d14432e010482ea9e13a6f7c47c1533c0c9d62f' (2024-07-10)
→ 'github:matrix-org/complement/6e4426a9e63233f9821a4d2382bfed145244183f' (2024-07-30)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-08 17:18:26 -04:00
Jason Volk
9b9a91f6ef
add our_modules() for log capture filter convenience
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
94b805de0b
generalize log capture to all admin commands; simplify handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
eded585f79
rename some command types for consistency
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
a552321287
add Clap to Error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
f98bfbbdcd
add string stream convenience util; add ?Sized bounds on log fmt functors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
e9ab548445
tweak some tracing log levels
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
15184d1a79
Add span scope names array to capture filter data; optimize values visitor vec.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
0c6bbde25f
fix markdown table formatter for log capture
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
13aa353765
add arrayvec as a dependency
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
ac941a801a
add interface to query rocksdb properties w/ admin cmd
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
f261d44edb
add method to iterate opened database columns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
849cfdcdfa
add rocksdb stats level option with conf item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
1470331f7e
add repair_mode documentation to example conf
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
strawberry
dcaa96a79f
sync: always include_redundant_members when using element_hacks feature
...
see:
- https://github.com/matrix-org/matrix-js-sdk/pull/4329
- https://github.com/element-hq/synapse/blob/568051c0f07393b786b9d813a1db53dd332c9fc2/synapse/handlers/pagination.py#L639
- https://matrix.to/#/!n8DKU1BeeJilOJXDPr:seirdy.one/$gvGF7GuPrLPR8nHg4UiHvP-ZVwuiMkYS8O6VlsDCW9w?via=awawawawawawawawawawawawawawawawawawawawawawawawawawawawawawaw.gay&via=transfem.dev&via=matrix.org
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:07:01 -04:00
strawberry
101a966922
docs: mention potential DNS issues when using docker
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:28 -04:00
strawberry
57940f38ea
set last_seen_ip on new/initial device creation
...
this is not automatically updating, but at least have something
useful there instead of nothing
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:19 -04:00
strawberry
22f8c339fc
debian: remove --verbose from postinst
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:09 -04:00
strawberry
c896acb729
dont consider presence status changes apart of presence spam
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:01 -04:00
strawberry
7f1bc490d6
docs: update configuration docs for the new -O option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:05:27 -04:00
strawberry
1091c30845
docs: mention FreeBSD specific build commandline for deployment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:05:16 -04:00
strawberry
12d9e454db
display success/failure count in get-remote-pdu-list
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:04:51 -04:00
strawberry
82b973a8b1
nix: use cortex-a73 / ARMv8-a, strip and remove unnecessary bloat
...
for some reason gcc is included in OCI images
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:04:41 -04:00
strawberry
71ee31a014
add missing newline in banned room list output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:04:12 -04:00
skedastically
69b4ec81b6
update container registry links ( #549 / #548 )
...
* gitlab URL
* Update docker.md
2024-08-05 15:23:40 -04:00
Jason Volk
fe0969e7ca
fix release-max-perf profile [ci skip]
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 13:37:27 +00:00
Jason Volk
2e3e14b045
refactor some additional errors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 10:58:59 +00:00
Jason Volk
f51d4237c7
bump cargo
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 10:58:59 +00:00
strawberry
d8a87258d6
rust: bump console-subscriber to 0.4
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-01 10:58:58 +00:00
strawberry
3da2242730
bump tokio, use default-features = false for more crates
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-01 10:58:58 +00:00
Jason Volk
5add9a8c34
support field values in err! macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 10:58:58 +00:00
Jason Volk
5b1642f641
split server_keys from event_handler into service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 21:10:22 +00:00
Jason Volk
eb94aa7079
remove dangling sending/resolve unit
...
this was probably un-deleted during a rebase conflict resolution,
but remained outside of the mod tree.
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 21:10:22 +00:00
Jason Volk
24884c3b9b
move media helpers from api to services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
a0a002b17f
disable legacy media compat by default; cleanse directory when disabled
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
f632b06e6d
use Services instead of Server for middleware function state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
1f88866612
optimize api state extractor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
ccef1a4c8b
add formal wrapping for api state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 21:32:43 +00:00
Jason Volk
5c258f41c8
fixes for modules
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
15126ee1b2
additional weak references where applicable
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
e37ac56dba
use weak references to break services dependency cycle
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
a74613be96
improve database repair/shutdown log messages
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
a95ded167f
fix type complexity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
95121b6e05
use single-line codeblock for specific features lists
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
e6884ef13a
fix various nightly incidental lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
49033db2b8
fix trailing body passed to commands
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
ddc8c3b46c
split presence data object into file; improve service encapsulations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
ea95627dce
hoist rustc flag string array to global const
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
strawberry
c3e751542d
ci: default to empty string to "unset" variables
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-28 05:59:12 -07:00
strawberry
4b765aa17c
ci: only use sccache conditionally
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-27 15:28:17 -04:00
Jason Volk
954cfc6bb7
bump cargo
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 09:08:51 +00:00
Jason Volk
2f85a5c1ac
de-global services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 09:08:51 +00:00
Jason Volk
7e50db4193
de-global services from admin
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
7a3cc3941e
parse generics for implement macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
ca82b59c6f
upgrade to syn 2.x
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
3b5607ecdc
add macro for out-of-line definitions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
96f6a75bc8
add refutable pattern function macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
68f42baf73
rename admin Command to CommandInput
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
271959ee27
add debug list-dependencies admin command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
c423a83656
add cli override for any configuration item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
4e975887cf
add command to list features
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
8bb69eb81d
add simple ast dimension diagnostic
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
2100618d47
add rustc build flags reflection
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
936d2915e2
add cargo manifest reflection
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
f014231644
add conf item to disable rocksdb compaction
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
7d487d53d8
de-cycle conduit_macros from conduit_core.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
d7d874f88d
start core info module; move version to info
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
ee864bcd9e
normalize admin debug command handlers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
111cbea6fc
add debug time command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
85f734ec74
proc macro ✨
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
2468e0c3de
unconditionally derive Debug on subcommand enums
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
f841c2356d
preliminary get-signing-keys command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
c64adbec0e
split signing_keys_for from verify_keys_for
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
4458efa2b2
rename signing_keys_for to verify_keys_for
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
5c0bf29122
add util for camel to snake case conversion
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
91b49a7786
add basic exchange util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
5a17fbccf5
add type_name debug tool
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
5ed95ea357
contextualize handler in object
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
ccfa939bd3
split admin command enum from handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
263e338088
add --console program option to automatically spawn
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
2fb43dd38d
infra to synthesize program options with config options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
59efabbbc2
de-global server_is_ours / user_is_local
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
010e4ee35a
de-global services for services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
992c0a1e58
de-global services for admin
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
9b20c6918f
add indirection for circular-dependencies between services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
3dc91525ce
fix over-tabulation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
a88f913a17
enrich interface for inter-service referencing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
4343218957
initialize some containers with_capacity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
b116984e46
use mutex_map for url preview lock
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
b0ac5255c8
move sending service impl properly back to mod root
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
29fc5b9b52
de-global some services in services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
3ccd9ea326
consolidate all resolution in resolver; split units
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
8a2ae401df
convert Client into Service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:05 +00:00
Jason Volk
f465d77ad3
convert Resolver into a Service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:05 +00:00
Jason Volk
2fd6f6b0ff
add polymorphism to Services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:05 +00:00
Jason Volk
8b6018d77d
de-global services() from api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:03 +00:00
Jason Volk
463f1a1287
only use graceful shutdown w/ axum-server fixed
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:53:09 +00:00
strawberry
04fc87ad07
ci: try to free more runner storage/space
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
dc573f4562
ci: run free disk space for documentation workflow too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
74826dcb94
resolve lint_groups_priority lint ( https://github.com/rust-lang/cargo/issues/12918 )
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
b20c4e0539
bump MSRV and rust toolchain to 1.80.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
fb8a2846df
ci/nix: use a "test" cargo profile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
04971d0430
ci: cache all crates in rust-cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
f098532b09
ci: retry nix-build-and-cache 3 times before failing due to attic issues
...
attic just sucks and every 5 CI runs guarantees at least 2 false
gateway errors that i can't do anything about.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
60927c1c72
ci: try using sccache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
03296412ab
ci: validate deb packages produced
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
934ab6a4fe
nix: add dpkg to devshell packages for dpkg-deb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
1378399f9d
ci: build and upload static debug/dev binaries and OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:08 -04:00
strawberry
09680f653f
nix: add outputs for debug builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 19:55:49 -04:00
strawberry
39f19c483a
nix: use all-features for complement OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 19:55:46 -04:00
strawberry
39c0f4ea3d
delete unused bad_signature_ratelimiter rm'd in 67f9553790
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 19:12:20 -04:00
strawberry
405167fc3f
add harmless check for presence PUT matching sender user
...
this is already done but we just don't error and always
use the sender user. match synapse behaviour where we check
and error.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
b13ea4ff45
fix non-working admin room topic accessor output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
100fc5e0f7
bump tokio to 1.39.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
96f9d64111
add back is_historical check on admin user creations from accidental removal
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
30ad5da5f1
use ruma-identifiers-validation feature from our ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
ce0ca96df4
clarify that sentry_traces_sample_rate is a percentage
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
4851ad26e2
bump cargo.lock, lock jemallocator to 0.5.4
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
328759a60f
ci: run quick smoke test of x86_64 static binary
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:21 -04:00
strawberry
463fa4fd53
nix: dont build unnecessary jemalloc docs or cxx integration
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-22 17:57:51 -04:00
strawberry
db494e0d68
bump conduwuit to 0.4.6
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-22 17:57:51 -04:00
Myned
4788040458
fix media_startup_check typo
...
Signed-off-by: Myned <dev@bjork.tech >
2024-07-22 13:31:20 -04:00
Matthew Scheffel
06531993f6
Calculate Age Rather than Hardcoding to 1 ( #531 )
2024-07-17 21:47:59 -04:00
strawberry
c29197b3f4
ci: dont publish -rc tags as latest docker branches
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-16 00:44:47 -04:00
Jason Volk
739eab46d5
refactor thumbnail math
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:40:18 +00:00
Jason Volk
923a98eb66
partially revert dc18f89c0b for now
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:40:18 +00:00
Jason Volk
4430e4dee0
de-global some services()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
d67f19a55d
cleanup some error callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
b903b46d16
split thumbnailing related into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
167559bb27
rename FileMeta::file to Option<content>
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
838e4b9d8d
log more details for panic in tower handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
038b71fc9d
add state to router
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
720fbd09c2
move routes into api router top level
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
c42cb90dd3
simplify result handler / 405 error interposition
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
5950355348
break from wait loop on empty taskset
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
strawberry
f79bd2ac72
bump ruma-identifiers-validation to c51ccb2c68d2e3557eb12b1a49036531711ec0e5
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
80ec0e31b1
bump tracing fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
bda44b16b1
ci: run nix dynamic build test with DIRENV_DEVSHELL=dynamic
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
e2280aa1a5
ci: try removing --impure
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
bdf2de076a
ci: set NIX_CONFIG with our binary caches for the earlier CI steps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
1797fec3c9
nix: disable USE_RTTI for rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
188fa5a073
patch rustyline-async and use no default features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
f0c63c539b
nix: dont build more unnecessary tests/tools for rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
649e9da1f8
nix: try to make armv8.2-a / cortex-a55 optimised builds if target is aarch64
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
df28359a19
nix: dont build rocksdb core tools (ldb / sst_dump) (-DWITH_CORE_TOOLS=1)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
9370e93a8d
nix: try to make x86-64-v2 optimised builds if target is x86_64
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
bdd5845490
docs: suggest recursive chmod
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
bacffd6174
rename conduit_cache_capacity_modifier to cache_capacity_modifier
...
this prefix causes you to require setting the environment variable
to `CONDUWUIT_CONDUIT_CACHE_CAPACITY_MODIFIER`
alias this so we dont break any configs
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:15 -04:00
strawberry
a1bfd7a018
nix: dont include experimental feature on all-features builds
...
this is just future infra for it
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
7009f56a7a
fix user directory publishing access controls
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
2c0bfac43e
nix: bump flake.lock and rocksdb to v9.4.0
...
• Updated input 'attic':
'github:zhaofengli/attic/717cc95983cdc357bc347d70be20ced21f935843' (2024-06-01)
→ 'github:zhaofengli/attic/6139576a3ce6bb992e0f6c3022528ec233e45f00' (2024-07-09)
• Updated input 'complement':
'github:matrix-org/complement/bc97f1ddc1cd7485faf80c8935ee2641f3e1b57c' (2024-07-02)
→ 'github:matrix-org/complement/0d14432e010482ea9e13a6f7c47c1533c0c9d62f' (2024-07-10)
• Updated input 'crane':
'github:ipetkov/crane/0aed560c5c0a61c9385bddff471a13036203e11c' (2024-07-06)
→ 'github:ipetkov/crane/2d83156f23c43598cf44e152c33a59d3892f8b29' (2024-07-09)
• Updated input 'fenix':
'github:nix-community/fenix/abc0549e3560189462a7d394cc9d50af4608d103' (2024-07-08)
→ 'github:nix-community/fenix/5087b12a595ee73131a944d922f24d81dae05725' (2024-07-13)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/a5b21ea0aa644dffd7cf958b43f11f221d53404e' (2024-07-07)
→ 'github:rust-lang/rust-analyzer/ffbc5ad993d5cd2f3b8bcf9a511165470944ab91' (2024-07-11)
• Updated input 'liburing':
'github:axboe/liburing/7b3245583069bd481190c9da18f22e9fc8c3a805' (2024-06-22)
→ 'github:axboe/liburing/1d674f83b7d0f07553ac44d99a401b05853d9dbe' (2024-07-12)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/655a58a72a6601292512670343087c2d75d859c1' (2024-07-08)
→ 'github:NixOS/nixpkgs/7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9' (2024-07-12)
• Updated input 'rocksdb':
'github:girlbossceo/rocksdb/a935c0273e1ba44eacf88ce3685a9b9831486155' (2024-07-02)
→ 'github:girlbossceo/rocksdb/911f4243e69c2e320a7a209bf1f5f3ff5f825495' (2024-07-13)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
fcb6c8a113
bump rust-rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
Charles Hall
1ab77aeb91
don't strip binary for dev builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
3d73b53136
update complement results
...
we dont implement authenticated media yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:35:00 +00:00
strawberry
101fdbc9b1
bump cargo.lock
...
Updating bytes v1.6.0 -> v1.6.1
Updating cc v1.1.0 -> v1.1.3
Updating http-body v1.0.0 -> v1.0.1
Updating syn v2.0.70 -> v2.0.71
Updating thiserror v1.0.61 -> v1.0.62
Updating thiserror-impl v1.0.61 -> v1.0.62
Signed-off-by: strawberry <strawberry@puppygock.gay >
Co-authored-by: Jason Volk <jason@zemos.net >
2024-07-14 12:35:00 +00:00
Jason Volk
e53c2fbc5a
fix tracing flame envfilter defaults; remove preprocessed cfgs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
95006f7e46
fix unnecessary preprocessing cfgs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
cce270d938
tokio metrics
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
5ec49b3f62
split csp into array; integrate error; cleanup type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
e4dc4a1ba5
fix graceful shutdown on unix socket
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
d2fb6d04c9
cleanup pending transactions before sender worker completes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
05efd9b044
elaborate error macro and apply at various callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
b3f2288d07
add constant-expression string utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
084751ae38
refactor globals::updates into a Service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
aa7a310200
move media startup into service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
38c989a07e
split service manager into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
5be679e17b
refactor main task stack through service mgr
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
b8baa1223d
reduce RoomVersionId patterns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
b87f1649d4
split error into directory
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
4a6f089b23
move some config checks into check unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
4600c7f32d
move infallible handling into error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
4cc92dd175
refactor Error::bad_config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
93ec4e579b
error macro suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
c111d2e395
abstract service worker pattern; restart on panic.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
03d890cd49
move admin tests into unit; fix
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
a35b6cbfdd
use separate configurable jaeger envfilter
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
5570220c89
use separate but configurable envfilter for sentry
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
899b79873e
propagate errors from tracing init
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
57969f9480
fix large stack array exceeding limit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
d88ab37120
add configuration for sentry to send panics and errors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
bc58e5002d
add interface for current log filter; fix console suppression
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
160f48043e
add selective log handle reload
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
0023b09f5b
make tracing reload handles into a named map
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
db3c718ddc
add config for sentry stacktraces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
e73aa2aa21
log propagated errors in admin service; minor cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
61f2a3c68b
catch panic from admin commands
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
0627b46f40
add panic suite to Error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
f10f5319db
elaborate error log functor stack
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
16e76d45cb
improve alloc stats interface; fix admin command formatting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
2a304c2b6c
add some usage stats output on the mutex maps
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
271f720286
move mutex maps out of globals into respective service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
2d251eb19c
cleanup on drop for utils::mutex_map.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
01b2928d55
add make user admin command ( #136 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
50c2d2b801
add command to force join user to room ( #136 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
5dcdafe207
take local join branch when remote join would fail
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
c62d653989
tweak some log levels
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
454dd43d4c
fix membership route ABA's
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
AlexPewMaster
8077e910f6
Fix CONDUWUIT_CONFIG variable in docker-compose.yml files (+ remove deprecated compose version)
2024-07-13 17:16:39 -04:00
strawberry
b5d4a1c1b0
drop harmless state event not found message to debug_info
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
aa9540af21
slightly simplify send_state_event route
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
080975ab0e
adjust/update complement conduwuit config.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
f129d90900
nix: delete -DWITH_SNAPPY=1 from rocksdb cmakeFlags
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
53223a4d5f
remove snappy as a default feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
05befa4ba2
nix: make enableLiburing in rocksdb conditional instead of default true
...
for some reason enableLiburing in nixpkgs rocksdb is default
true which breaks Darwin entirely
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
a8e690f22b
nix: unset patches in rocksdb
...
we have the patch already and i dont want to make it nix
exclusive by reverting it in my rocksdb fork
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
192c1e08da
add exclude_disabled and exclude_banned room list admin cmd arguments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
0fa6976d86
add client IP and user logging on join, remove unnecessary Option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
93e7cf461d
add client IP logging to media requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
d036d8adcb
bump rust-rocksdb to 0.27.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
7a4bbe2ff6
nix: drop hardened_malloc feature from all-features builds
...
this is non-functional and i've spent far too long trying to figure
out what the issue is
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
438911c18d
nix: remove unnecessary dependencies gathering from allFeatures
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
bd71435a22
ci: build static binaries and OCI imgs with --all-features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
53fa7c3729
nix: add all-features outputs/packages
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
d2facaee0b
bump various dependencies
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
0dae9280d9
nix: bump flake.lock
...
• Updated input 'crane':
'github:ipetkov/crane/087e08a41009bf083d51ab35d8e30b1b7eafa7b0' (2024-07-03)
→ 'github:ipetkov/crane/0aed560c5c0a61c9385bddff471a13036203e11c' (2024-07-06)
• Updated input 'fenix':
'github:nix-community/fenix/f6994934e25396d3a70ddb908cefccd8d3c37ac4' (2024-07-05)
→ 'github:nix-community/fenix/27cbad7cc093c5298231b87daa04db9610053651' (2024-07-06)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/cae997e3380363a906588f14c7b4587f39cf09f5' (2024-07-03)
→ 'github:rust-lang/rust-analyzer/f2afcb874e7410121c366ae601660abe327e320b' (2024-07-05)
• Updated input 'fenix':
'github:nix-community/fenix/27cbad7cc093c5298231b87daa04db9610053651' (2024-07-06)
→ 'github:nix-community/fenix/abc0549e3560189462a7d394cc9d50af4608d103' (2024-07-08)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/f2afcb874e7410121c366ae601660abe327e320b' (2024-07-05)
→ 'github:rust-lang/rust-analyzer/a5b21ea0aa644dffd7cf958b43f11f221d53404e' (2024-07-07)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/9f4128e00b0ae8ec65918efeba59db998750ead6' (2024-07-03)
→ 'github:NixOS/nixpkgs/655a58a72a6601292512670343087c2d75d859c1' (2024-07-08)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
35336eb686
ci: use $COMPLEMENT_SRC from nix devshell for a pinned complement rev
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
efea13a675
add access control checks for room directory publishing/removing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
b5ee15a216
dont skip_all tracing instrument on fetch_state
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
0873e18e14
remove random duplicate function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
6abc4ad798
make local_aliases_for_room db iterator Send
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
373991a8d6
cleanup and fix backfill from server getting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
68ad351f84
nix: partially remove some liburing overrides
...
the argument one is weird and causing build script invalid arguments
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
83e853e7a3
add "unstable" endpoint legacy Element Android/iOS seems to call
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
1c453b1b55
require authentication on change password and deactivation routes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
60141950f7
fix wrong deactivate-all argument comment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
391bfd986e
use ruma's X-Matrix to construct the sending X-Matrix header value
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
da03de1d32
bump flake.lock fully
...
• Updated input 'crane':
'github:ipetkov/crane/109987da061a1bf452f435f1653c47511587d919' (2024-05-24)
→ 'github:ipetkov/crane/087e08a41009bf083d51ab35d8e30b1b7eafa7b0' (2024-07-03)
• Updated input 'fenix':
'github:nix-community/fenix/b6fc5035b28e36a98370d0eac44f4ef3fd323df6' (2024-05-22)
→ 'github:nix-community/fenix/f6994934e25396d3a70ddb908cefccd8d3c37ac4' (2024-07-05)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/21ec8f523812b88418b2bfc64240c62b3dd967bd' (2024-05-19)
→ 'github:rust-lang/rust-analyzer/cae997e3380363a906588f14c7b4587f39cf09f5' (2024-07-03)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/5710852ba686cc1fd0d3b8e22b3117d43ba374c2' (2024-05-21)
→ 'github:NixOS/nixpkgs/9f4128e00b0ae8ec65918efeba59db998750ead6' (2024-07-03)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
e54f4d4397
ci: move complement diff results test output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
daa5c34ea3
fix empty version string for NixOS users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
3259ea08b5
use cond compilation for config check, fix docker check w/unix sockets, use our logging instead of tracing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
Jason Volk
158de10fe6
log erroring errors; improve inspection functors.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-09 04:09:34 +00:00
Jason Volk
4718387dbe
fix wrapper macro semicolons
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-09 03:38:07 +00:00
Jason Volk
a43c78e55f
add RumaError to Error; encapsulate RumaResponse in api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-09 03:38:07 +00:00
Jason Volk
7ba0777bd3
move RumaResponse out of core Error; cleanup Error conversions.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
59d86d3641
restrict clippy::string_slice
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
51df946911
de-branch duration limit statement
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
23a9055199
relax and de-clutter let_underscore_must_use
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
100c6f572b
trim unused dependencies in member crates
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
eb5556e74e
additional tracing spans / log cleanup.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
8296e0ed67
slightly optimize command completer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
8e3be6feb0
slightly optimize Destination::get_prefix()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
59c4062305
set trivial/leaf spans to debug level
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
113a27c1d5
use usize for max_request_size config item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
5af880e4f4
fix reference count on punned ColumnFamily Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
56a1b0e761
restrict untripped clippies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
5722c4ae39
fix needless collect
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
dfd13780df
mitigate additional cast lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
dcd7422c45
fix as conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
7397064edd
fix arithmetic side-effects
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
52a561ff9e
abstract expoential backoff to math utils.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
5e72d36800
add math utils; integrate checked expression macros
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
611f09829e
use shorthand constraint syntax and formatting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
a388c2e06e
allow clippy::enum_glob_use
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
24b37e03a0
add pretty time util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
a309ef55c9
restore signal state after channel failures
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
AlexPewMaster
c1c084dda1
Introduce a new way of deploying conduwuit using caddy in Docker
2024-07-08 17:59:59 -04:00
strawberry
72d9e8ed2b
bump conduwuit version to 0.4.5
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-07 14:32:41 -04:00
Jason Volk
a3638dbb15
use rwlock for command handler.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-07 06:24:08 +00:00
Jason Volk
5254eb4f72
add basic tab completion to console
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-07 06:24:08 +00:00
Jason Volk
b31e81a469
add common_prefix string util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
0e580292a6
encap admin handler init/fini in crate
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
38a24e0170
remove unused deps in member crates
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
8350aced39
add ctrl-\ quit support to admin console
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
04e3de08eb
add log to error functors for Result::map_or_else
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Christoph Dittmann
2bc53139fa
Don't send empty presence EDUs
...
I run a homeserver whose logs show a high number of incoming empty
presence EDUs originating from the user agent "Conduwuit/0.4.4". They
arrive at a rate of about 2 queries per second per Conduwuit server.
The empty EDUs all look the same, only with `origin_server_ts`
increasing:
```
{"origin":"example.com","origin_server_ts":1720266475601,"edus":[{"edu_type":"m.presence","content":{"push":[]}}]}
```
These updates are unnecessary because they don't do anything. They
only increase network traffic and CPU usage on both sides.
After this commit, the empty presence updates are no longer inserted
into the outgoing event queue.
2024-07-06 14:13:33 +02:00
strawberry
8691141237
ci: try running nix-build-and-cache prior dynamic build test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-05 02:48:36 -04:00
Jason Volk
17a3ed4c56
add admin query resolver commands
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 22:15:54 +00:00
Jason Volk
2dd68d3fa5
add time format string util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
dc18f89c0b
don't cache server name lookups indefinitely ( #436 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
eaf1cf38a5
refactor resolver tuples into structs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
eeda96d94a
inline analysis and symbol reduction; emits smaller than 64 bytes marked inline
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
1e8b8cce0f
even more byte utils optimizations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
db46d6dd6b
optimize millis_since_unix_epoch()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
08274150e5
cork database during global counter increment
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
e125af620e
impl crate::Service for Service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
177c9e8bfa
add split_once_infallible string util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
4f5c6de853
start rand utils suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
25c004f08c
remove dead cache
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
f104ced55d
remove unnecessary wrapper
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
Jason Volk
0cea64309a
move PduEvent from services to core
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-04 21:06:35 +00:00
strawberry
229f2fde7a
skip 2 more flakey complement tests still
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-04 11:17:13 -04:00
strawberry
9a0ffd55da
skip complement test TestClientSpacesSummary still
...
too flakey still
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-04 01:55:22 -04:00
renovate[bot]
d1b3faf4bd
Update Rust crate sd-notify to v0.4.2
2024-07-03 23:02:44 -04:00
strawberry
4014cb4413
document emergency_password
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 23:02:44 -04:00
strawberry
b2dbc3bc10
update complement results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 23:02:38 -04:00
strawberry
e2033fb6c1
notify users to update their build scripts if using rocksdb or sha256_media
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 22:12:47 -04:00
strawberry
6b433392a4
slight docs updates
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 22:12:47 -04:00
strawberry
0832c28a40
dedupe some state accessors in various places
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 22:12:47 -04:00
strawberry
b0eec60724
add MSC3266 room summary API support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 22:12:47 -04:00
strawberry
82acc7c0b0
ci: add back ubuntu free disk space
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 22:12:47 -04:00
strawberry
c9384e9c78
allow all complement tests again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 22:12:45 -04:00
strawberry
3502e6ef87
bump conduwuit to 0.4.4
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 11:30:16 -04:00
strawberry
deca2c52c6
switch to ruma's X-Matrix parser
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 11:30:16 -04:00
strawberry
daa46a0dc4
auto-fix some markdown lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 11:30:16 -04:00
strawberry
74791642c1
add markdownlint and run lychee in documentation CI workflow
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 11:30:16 -04:00
strawberry
1a64e42cfe
add /openid/request_token and /openid/userinfo routes
...
heavily changed and improved by me
Co-authored-by: mikoto <avdb@keemail.me >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 11:30:11 -04:00
Jason Volk
5edd391e83
support admin server restart --force
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
7658387a74
remove resolver wrapper; use std mutex
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
be2d1c722b
encap dep:chrono in time utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
8cf55c702f
split time utils into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
3b9fba233c
split bytes utils into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
af81baae44
split string utils into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
52d470058a
split hash utils into directory
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
df0328f43f
split send txn handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
473b29d524
move remaining runtime caches into their respective service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
e1d1dac95e
add missing media compat example config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
a2d25215a3
consolidate key/value types; consistent interface arguments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
46423cab4f
fix counter increment race
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
2e2cf08bb2
optimize increment / increment batch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
ee64fb149c
optimize get w/ zero-copy ref handle
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
0522fe7d92
reimplement iterator from lowlevel
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
6dd6e4bfaf
simplify cork interface related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
a1ced0a56f
fix admin query timers not covering full iteration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jacob Taylor
0171262581
make pduid_pdu/eventid_outlierpdu scale with conduit_cache_capacity_modifier via cache_size(), and fix lint
2024-07-03 06:34:16 +00:00
Jason Volk
972037dcd9
optimize column family handles
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
Jason Volk
0613140130
optimize bytes conversion utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-03 06:34:16 +00:00
morguldir
f43c09b05d
ci: pin cache-nix-action
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-07-03 06:13:39 +02:00
morguldir
b035cd7cbe
ci: remove detsys from documentation/build workflow too
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-07-03 04:51:59 +02:00
morguldir
b7aa79884d
ci: try out cargo caching
2024-07-03 03:39:49 +02:00
morguldir
9c6cc44abb
ci: use correct config file
...
also had to try putting it at the end again
2024-07-03 01:56:14 +02:00
morguldir
9c0d7b1da0
ci: change to cache-nix-action
2024-07-03 01:08:30 +02:00
strawberry
ed3a464722
remove uselsss partial_cmp with cmp
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 21:21:37 -04:00
strawberry
28ac3790c2
sync upstream spaces/hierarchy federation MR
...
also had to fix a million clippy lints
fix(spaces): deal with hierarchy recursion
fix(spaces): properly handle max_depth
refactor(spaces): token scheme to prevent clients from modifying max_depth and suggested_only
perf(spaces): use tokens to skip to room to start populating results at
feat(spaces): request hierarchy from servers in via field of child event
Co-authored-by: Matthias Ahouansou <matthias@ahouansou.cz >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 21:20:28 -04:00
strawberry
9115901c66
update complement results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 21:20:24 -04:00
strawberry
652faafe6e
bump ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 16:46:19 -04:00
strawberry
8deba94a12
update various deps, update rocksdb to v9.3.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 16:46:13 -04:00
strawberry
bb27f21ac1
simplify getting join_authorized_via_users_server for make/send_join, remove unnecessary async
...
Co-authored-by: Matthias Ahouansou <matthias@ahouansou.cz >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 15:32:40 -04:00
strawberry
339a1fc4e8
only sign /send_join events if restricted join via room version and join_authorised_via_users_server
...
Co-authored-by: Matthias Ahouansou <matthias@ahouansou.cz >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 15:01:11 -04:00
strawberry
75731671d1
use RoomMemberEventContent for send_join/send_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-02 14:46:53 -04:00
Jason Volk
20aab1792b
fix version format regression 3a51e18ce6
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-01 23:35:04 +00:00
Kimiblock Moe
e9f4cd58a9
Bind Mount the old matrix-conduit directory
2024-07-01 17:19:50 -04:00
renovate[bot]
6bae136720
Update Rust crate clap to v4.5.8
2024-07-01 00:18:18 -04:00
renovate[bot]
39a1e994eb
chore(deps): update rust crate log to v0.4.22
2024-07-01 00:18:09 -04:00
renovate[bot]
c2c36197e9
chore(deps): update nixos/nix docker tag to v2.23.1
2024-07-01 00:17:53 -04:00
Paul Robertson
c952db72e7
remove unused CONDUWUIT_CONFIG_FILE variable
2024-07-01 00:16:32 -04:00
Paul Robertson
1ca484f90d
explain how to configure conduwuit
2024-07-01 00:16:23 -04:00
Paul Robertson
b1150cded9
rename configuruation.md to configuration/examples.md
2024-07-01 00:16:23 -04:00
strawberry
2b35f83089
ci: exclude renovate[bot]
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-01 00:14:16 -04:00
strawberry
792d4aa6ce
fix nightly clippy lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-01 00:14:16 -04:00
strawberry
6c461025e5
use proper redacts field
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-01 00:14:16 -04:00
Jason Volk
9d1db7d171
rename fsck to check
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
2387f7f955
move tester command under debug
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
5805394ca5
add tester timer stub
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
3301cde8e7
add timer around admin command processing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
b28d216e00
improve debug get-room-state; use RoomOrAliasId
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
f127987c7a
add convenience alias resolver to interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
fa02d7b7e3
diffuse get_alias_helper into services::rooms::alias
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
96a16190c5
mute dev_release_log_level from --all-features for now
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
d9054f5364
add backreference to layer in capture data struct
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
db288b169e
add config option for tokio_console runtime enablement
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
bc50034173
idiomize various expressions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
20fe84379c
rename log::Server to log::Log
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
06f01d384f
simplify argon init
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
bd19fac4c5
split tracing init into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
703c275266
split sentry init; add user-agent, trace hooks.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
c05f00661b
use extern namespace in log wrapper macros
...
convert use tracing statements
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
0e46b750a0
default to jemalloc when both hardened_malloc and jemalloc enabled.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
3a51e18ce6
pre-format version strings
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
7638bbc49c
keep column list lexically sorted
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
35049c94de
simplify db ThreadMode typedef
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
7db8478dc0
hoist iterator modes; group fns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
df7a1dee15
remove --features=rocksdb from smoketest; use separate target dir
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
dc633100da
hoist read_options/write_options instances
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
0f1432f448
improve appservice::Data interface encap
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
30b5ad3870
de-feature rocksdb
2024-06-30 18:02:16 +00:00
Jason Volk
cb48e25783
refactor dyn KvTree out of services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
57acc4f655
fix needless pass by value
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
875d9e8b07
fix complex types
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:16 +00:00
Jason Volk
de21f7442a
devirtualize database
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:02:14 +00:00
Jason Volk
7ad7badd60
devirtualize service Data traits
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:01:20 +00:00
Jason Volk
a6edaad6fc
error enum cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:01:20 +00:00
Jason Volk
fbcdb3860a
eliminate dep:rust-rocksdb et al from admin crate
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:01:20 +00:00
Jason Volk
01f4455ceb
convert rocksdb errors locally; remove from Error.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:01:20 +00:00
Jason Volk
c1712d4d8b
optimize increment
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:01:20 +00:00
Jason Volk
3480074f61
sha256_media integration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:01:20 +00:00
Jason Volk
efbdced535
cleanup migration function a bit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-30 18:01:20 +00:00
Paul Robertson
19d8f0b27e
dont use any for a single feature check
2024-06-30 10:40:54 -04:00
Paul Robertson
8d5305c769
lock cleanup
2024-06-30 10:40:35 -04:00
Paul Robertson
73b85372d6
drop parking_lot feature
2024-06-29 11:20:48 -04:00
Paul Robertson
5e6b9ec1cf
drop thread_local feature
2024-06-29 11:20:48 -04:00
Paul Robertson
e24b7d2f3e
drop sqlite from docs
2024-06-29 11:20:48 -04:00
Paul Robertson
c61258fa0d
drop rusqlite dependency
2024-06-29 11:20:48 -04:00
Paul Robertson
65177d237a
drop the sqlite feature from core
2024-06-29 11:20:48 -04:00
Paul Robertson
325f1c0bd2
drop the sqlite feature from database
2024-06-29 11:20:45 -04:00
Paul Robertson
68f1b4789a
drop the sqlite feature from main
2024-06-29 11:05:33 -04:00
Paul Robertson
624cd2acfa
remove sqlite code
2024-06-29 11:05:33 -04:00
morguldir
fb758f5f4b
chore(deps): bump Cargo.lock (subtle crate was yanked)
2024-06-27 17:41:13 -04:00
morguldir
5d138a7e5e
ci: skip development.md file when running lychee
2024-06-27 17:41:13 -04:00
morguldir
563618cc9e
ci: free disk space before starting tests
2024-06-27 17:41:13 -04:00
morguldir
0a28d80cf2
ci: try another upstream cache
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-06-27 17:41:13 -04:00
Integral
6f9d7b5667
docs: fix broken link to development.md
2024-06-23 12:20:53 -04:00
Jason Volk
d875e0c1c0
fix handling of empty admin command lines
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-23 09:52:16 -04:00
renovate[bot]
7a71012589
chore(deps): update aquasecurity/trivy-action action to v0.23.0
2024-06-22 18:37:54 -04:00
strawberry
189688994b
ci: properly exclude renovate from docker publishing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-22 18:35:30 -04:00
strawberry
bc093e9544
bump conduwuit version to 0.4.3
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-22 17:56:34 -04:00
Jason Volk
2dae3052e2
remove unnecessary html render
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-22 21:22:56 +00:00
Jason Volk
0f07b86159
bump Cargo.lock
2024-06-22 21:22:56 +00:00
Jason Volk
2f84bc895d
Improve additional command outputs containing codeblocks.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-22 21:22:56 +00:00
Jason Volk
3b34e72456
improve output scheme for admin query commands
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-22 21:22:56 +00:00
Jason Volk
7eee88160a
truncate other span names and fields
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-22 21:22:56 +00:00
strawberry
5f46623371
redaction fixes
2024-06-22 21:22:56 +00:00
Jason Volk
cbb97b4fdf
bump termimad
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-18 10:56:19 +00:00
Jason Volk
14dcc8db15
truncate MatchedPath for span field
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-18 10:56:19 +00:00
Jason Volk
213a6d441f
shorten several request span names.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-18 10:56:19 +00:00
Jason Volk
98d96b89a5
minor reductions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-18 10:56:19 +00:00
Jason Volk
1c0ed91f6f
rename ruma_wrapper to router
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 05:04:00 +00:00
Jason Volk
64705fa27d
rename router to routes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 05:04:00 +00:00
Jason Volk
8affdc43a6
additional termimad config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 02:10:27 +00:00
Jason Volk
1ccdba8921
use markdown for list-database-files command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 02:10:27 +00:00
Jason Volk
50ce87161b
refactor admin command visibilities and use statements
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 02:10:27 +00:00
Jason Volk
c6f4b20e17
add server restart support w/ admin command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 02:10:27 +00:00
Jason Volk
2cb31275f0
fix missing command response; use non-empty command responses
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 02:10:27 +00:00
Jason Volk
5aee03d14a
switch to crate rustyline_async
...
improve console signal and interrupt stack
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 02:10:27 +00:00
Jason Volk
959fd2e6c4
split main signal handler to unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-17 02:10:27 +00:00
strawberry
f40a3ea4a6
docs: more improvements, fixes, cleanup, etc
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 21:30:51 -04:00
strawberry
aa963c61da
docs: add slight theme changes, better title
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 20:58:17 -04:00
strawberry
c98cf13010
ci: typo, store path is /conduwuit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 19:17:29 -04:00
strawberry
73dd4b1f8f
ci: enable accept-flake-config, use the same args everywhere
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 18:54:03 -04:00
strawberry
c921deaee2
docs: update differences.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 15:35:08 -04:00
strawberry
a5de4d30bb
ci: add forgejo/gitea actions file
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 15:35:08 -04:00
strawberry
9e9b256b83
temp: comment out hardened_malloc code
...
sorry but this is just non-functional in our build system,
i haven't had time to figure out why nix doesn't like what
i'm doing with it, and i haven't heard anyone using this
(the user who i anticipated would use this has not updated
their conduwuit in many months)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 15:20:57 -04:00
strawberry
ddf327e8b6
bump termimad
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
3341a8e56e
ci: allow drafts to run artifact builds again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
4942d684ea
bump gitlab nix ci to 2.23.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
f8f6dba674
docs: add conduwuit-bin to arch-linux.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
e5c9bf1992
misc build changes to mdbook, add favicon/logo
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
502856a4a2
use pinned revs of git cargo deps where possible
...
should reduce all but rocksdb from here: https://github.com/chaotic-cx/nyx/blob/0a48586e8c81ce5647915a1664d104616d5704b6/pkgs/conduwuit-git/pins.json
Co-authored-by: PedroHLC <root@pedrohlc.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
PedroHLC
2be2a0dc91
fix: add tracing-log patch, use pinned tracing revs
...
original patch from https://github.com/chaotic-cx/nyx/commit/637ff3ce0c8c19673d5f06d31c18a61db9d84459#diff-73188cdc15fe4e672c637dfc8a06ca08c30f789aa31dc8e1a5297f76779bc369
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
cd3e7394bf
nix: support pushing to conduwuit.cachix.org
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
a543bec1a5
ci: add conduwuit cachix nix binary cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
a589a34d15
ci: unify/simplify documentation and ci nix steps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
4312ac91c1
ci: set NIX_CONFIG for documentation workflow too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
e83b426caf
ci: set SOURCE_DATE_EPOCH for at least debian pkgs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
cad1d34611
ci: disable detsys telemetry, use our binary cache URL as upstream
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
ce4517269b
ci: output complement diff results to summary again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
169617ab87
ci: remove erroneous DIRENV_DEVSHELL
...
engage already sets `DIRENV_DEVSHELL` as necessary
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
strawberry
3596fe0e18
ci: dont let renovate publish docker images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-16 13:16:51 -04:00
Jason Volk
a22524496d
console command interruption
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 08:02:14 +00:00
Jason Volk
1d1b1644e9
add admin debug echo command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 08:02:14 +00:00
Jason Volk
483f0a9c86
add admin command for admin room notices
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 08:02:14 +00:00
Jason Volk
3d3d63fdf4
admin commands for shutdown/reload
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 07:24:51 +00:00
Jason Volk
08f2b8579c
abstract shutdown/reload functionality.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 07:24:51 +00:00
Jason Volk
30e7298dd7
fix doc-lazy-continuation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 07:24:51 +00:00
Jason Volk
83565007bb
fix lint group priority
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 07:24:51 +00:00
Jason Volk
3872ae80f7
fix PanicInfo deprecation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 07:24:51 +00:00
Jason Volk
0923b6f428
fix use std::mem related lint
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 07:24:51 +00:00
Jason Volk
48d9677959
rustfmt nightly/stable compats
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 03:07:59 +00:00
Jason Volk
02bd67dc4b
admin command path simplifications; fix message to room
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 03:07:59 +00:00
Jason Volk
3813628acd
log full custom edu rather than just content
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-16 03:07:59 +00:00
Kimiblock Moe
7b7593a6f5
Change the env name
2024-06-15 23:06:38 -04:00
Kimiblock Moe
1323506c88
Fix naming issues, directories will be moved in the post_upgrade function
2024-06-15 23:06:38 -04:00
Kimiblock Moe
332fc74fb8
Add systemd service for Arch
2024-06-15 23:06:38 -04:00
strawberry
03c04ce0a1
dont allow "remote admins" to run public escaped cmds on behalf of others
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-14 23:46:07 -04:00
Jason Volk
08bf074cbb
reduce roomid_mutex_state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-14 22:09:55 +00:00
Jason Volk
539aa27815
reduce roomid_mutex_federation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-14 22:09:55 +00:00
Jason Volk
22272bdc16
reduce roomid_mutex_insert
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-14 22:09:55 +00:00
Jason Volk
8b68d6306c
add MutexMap to utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-14 22:09:55 +00:00
Jason Volk
d4775f0763
add server-side command escape w/ public echo for admins
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-14 06:40:47 +00:00
Jason Volk
571ab6ac2b
admin terminal console
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-13 03:33:24 +00:00
Jason Volk
5df7443437
add log suppression tool
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-13 02:16:46 +00:00
Jason Volk
e76e604771
add MxidError to our Error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 21:06:09 +00:00
Jason Volk
1f9225e4d1
add markdown log format for capture
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 21:06:09 +00:00
Jason Volk
c914a4fd91
capture logs for resolve-true-destination admin cmd
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 18:52:39 +00:00
Jason Volk
aa34021b27
tracing capture interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 18:25:27 +00:00
Jason Volk
1bb4021b90
add format util to log suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 18:25:27 +00:00
Jason Volk
877c04de52
add color utils to log suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 18:25:27 +00:00
Jason Volk
029e1c630a
split core log into directory
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 18:25:27 +00:00
Jason Volk
39110ebc3c
add fmt::Error as core Error source
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 18:25:27 +00:00
Jason Volk
2ab3231ea6
add tracing_subscriber::filter::ParseError to amalgam
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-12 18:25:27 +00:00
strawberry
d0069cc100
log out any sessions when the server emergency password is unset
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Matthias Ahouansou
556e78214a
fix: only allow the server user to set the admin alias
...
Should make it safer to move the alias if the admin room broke on a public server.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
strawberry
8fff7ea706
cleanup+refactor admin room alias and server account accessing to globals
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Matthias Ahouansou
f712c0cefb
fix: restrict who can remove aliases
...
Previously, anyone could remove any local alias, meaning that someone could re-route a popular alias elsewhere
Now, only the creator of the alias, users who can set canonical aliases for the room, server admins and the server user can delete aliases
added some additional changes/fixes to adapt to our codebase
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Matthias Ahouansou
26d103d314
fix: only process admin commands if server user is in the room
...
Should prevent some edge cases with a misconfigured admin room
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Benjamin Lee
0688a96c37
drop redacted events from search results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Benjamin Lee
eb73d8c669
fix: de-index pdus when redacted
...
bit of code dedupe as well
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Benjamin Lee
20a54aacd6
factor search tokenization out into a function
...
This ensures that the tokenization algorithm will remain in sync between
querying, indexing, and deindexing. The existing code had slightly
different behavior for querying, because it did not discard words with
>50 bytes. This was inconsequential, because >50 byte tokens are never
present in the index.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Benjamin Lee
81cd677b4e
fix dropped events in search
...
The previous code would drop some events entirely if any events between
`skip` and `skip + limit` were not visible to the user. This would cause
the set of events skipped by the `skip(skip)` method to extend past
`skip` in the raw result set, because `skip(skip)` was being called
*after* filtering out invisible events.
This bug will become much more severe with a full filtering
implementation, because it will be more likely for events to be filtered
out. Currently, it is only possible to trigger with rooms that have
history visibility set to "invited" or "joined".
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
Benjamin Lee
73da353e52
fix missing next_batch for search
...
The previous code would fail to return next_batch if any of the events
in the window were not visible to the user. It would also return an
unnecessary next_batch when no more results are available if the total
number of results is exactly `skip + limit`.
This bug will become much more severe with a full filtering
implementation, because we will be more likely to trigger it by
filtering out events in a search call. Currently, it is only possible to
trigger with rooms that have history visibility set to "invited" or
"joined".
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-12 14:04:47 -04:00
strawberry
d5677b6ae7
bump cargo.lock due to yanked httparse
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-11 20:18:28 -04:00
strawberry
01a77f8a71
add replaces_state and prev_sender in unsigned for membership changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-11 13:03:32 -04:00
strawberry
ea03a50e21
remove pfps/avatars and display names upon deactivation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-11 01:19:18 -04:00
strawberry
25d44cad31
slightly dedupe pfp/displayname updates, update blurhash in PDUs too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-11 01:19:18 -04:00
strawberry
91519959ed
mark account as deactivated before leaving rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-11 01:19:18 -04:00
strawberry
2e31bcc213
use our fork of axum-server instead
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-11 01:19:18 -04:00
strawberry
305dfc3b42
adminroom: cmds to view room topic and room members
...
this will be extended more
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 23:38:03 -04:00
strawberry
65fbb80145
adminroom: leave all rooms by default on manual deactivations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 21:14:18 -04:00
strawberry
f1d90e5df6
log client/remote IP address on various routes tracing calls
...
this uses InsecureClientIp as this is purely for informational
and logging purposes
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 21:04:51 -04:00
strawberry
74b29ce067
adminroom: improved room list outputs, add counts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
0e7c3cb338
adminroom: simplify codeblock checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
14a3471fcb
adminroom: fix function typo
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
c834e86e67
adminroom: user cmds to put/get/delete room account data
...
primarily useful for inserting `m.server_notice` user account data
onto the admin room
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
b4f0a8a8b5
adminroom: clean up and optimise user commands
...
`deactivate-all` was terrible and incredibly inefficient
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
9bb90213e1
adminroom: add user ID parsing utils
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
fcdf1463ef
refactor get_room_topic into 1 single function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
88d038ffec
refactor getting room's canonical alias into 1 function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
4b4c0952a2
refactor guest_can_join into 1 single function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
016270b33b
adminroom: add server_in_room state cache accessor
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
d2063013b4
adminroom: add various state_cache db accessors
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
03ba9bde29
admin cmd to force download and use a server's room state
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
1287a86c05
client-api: export validate_and_add_event_id
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
8210e8c42e
slightly adjust sliding sync code for ruma bump
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 17:20:59 -04:00
strawberry
adf0bfd894
bump ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 16:57:44 -04:00
strawberry
6b843ec4dd
switch to patch/fork of axum-server to fix shutdown hangs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 16:55:40 -04:00
strawberry
ac02078395
bump cargo.lock, add tracing feature to axum-extra
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 16:55:40 -04:00
renovate[bot]
b9d38fd3ba
chore(deps): update rust crate http-body-util to v0.1.2
2024-06-10 16:55:40 -04:00
renovate[bot]
1b2c8236fb
chore(deps): update rust crate clap to v4.5.7
2024-06-10 16:55:40 -04:00
renovate[bot]
d7b8af627c
chore(deps): update rust crate console-subscriber to 0.3
2024-06-10 16:55:40 -04:00
renovate[bot]
130aae8758
chore(deps): update rust crate url to v2.5.1
2024-06-10 16:55:40 -04:00
renovate[bot]
4741a76896
chore(deps): update rust crate regex to v1.10.5
2024-06-10 16:55:40 -04:00
strawberry
5bfb62e979
Revert "update complement results"
...
This reverts commit 9a3c52aa75 .
2024-06-10 15:38:20 -04:00
strawberry
cb03654dc1
fix broken federated room invites/joins
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 14:53:26 -04:00
Jason Volk
f0557e3303
split migrations function
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:56:41 +00:00
Jason Volk
f52acd9cdf
Fix idiomatic let if
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
eae41fc411
Fix use-self
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
c3c91e9d80
Fix suboptimal flops
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
a8de5d1e60
Fix futures not Send
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
7688d67870
Fix needless pass by ref mut
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
89d7d48324
Fix equatable if let
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
b525031a25
Fix derive partial eq without eq
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
67f4285504
Fix branches sharing code
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
b65f05ce19
simplify lifetime parameters
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
db2c9f28b6
split admin room moderation commands
...
prior stack frame allocated 170 KiB
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
fc1b8326e6
split join_room_by_id_helper into local and remote
...
prior stack frame allocated 180 KiB
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
Jason Volk
6e50b07bf5
Fix large future
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-09 20:06:50 +00:00
strawberry
9a3c52aa75
update complement results
...
they seem to be failures out of
our control (?)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-09 12:05:30 -04:00
strawberry
ccf9f95cc9
retroactively fix bad data in roomuserid_joined, remove pointless prefix scans
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-09 03:55:04 -04:00
strawberry
0524e6ed52
remove unnecessary active_local_joined_users_in_room state_cache accessor
...
the underlying bug has been fixed
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-08 17:32:04 -04:00
strawberry
7f5b59afbb
add conduwuit-specific db migration fixing double split db entries
...
for a few months now we accidentally had double 0xFF splits being
inserted into `roomuserid_joined` cf when membership counts and such
are being updated.
this is a conduwuit-specific db migration and does NOT break conduit
compatibility.
`fix_bad_double_separator_in_state_cache`
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-08 16:58:24 -04:00
strawberry
ab5db37851
fix bad double split insert on roomuserid_joined cf
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-08 16:57:48 -04:00
strawberry
c0c7f23a05
services(timeline): use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
14ec41c211
services(state_cache): use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
2230bc7339
services(state): use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
0ebabba971
services(pdu_metadata): use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
3ed561cb31
service(globals): use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
a061644b2d
service(event_handler): use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
82ac6b01b2
service(auth_chain): use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
97ddb2ce87
bump conduwuit to version 0.4.2
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
a04ff7d4af
fix(fed): dont reject /state_ids/ on world readable rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
10dfbf6420
fix(fed): dont reject /state/ on world readable rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
d10bc67c9d
fix(fed): dont reject /event_auth/ on world readable rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
197a02bf8d
fix(fed): dont reject /event/ on world readable rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
8103bd7310
fix(fed): dont reject /backfill/ on world readable rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
81487e3f07
fix(fed): dont reject /get_missing_events on world readable rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
bfbb29dded
add is_world_readable state_accessor func, use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
strawberry
1cc7cf54a7
add config option to allow guests to access TURN server
...
`turn_allow_guests`
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:09:59 -04:00
strawberry
40e4019f7f
add missing TURN example config options
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:09:59 -04:00
Lux Aliaga
176d95c2a8
admin: media: Force flag on past media removal
...
When enabled, if a file is deemed unremovable, it skips past it and
continues deleting all other files that fit the criteria. Additionally,
fix age comparison under the same command.
Signed-off-by: Lux Aliaga <lux@nixgoat.me >
2024-06-07 15:08:08 -04:00
renovate[bot]
8d32fb1445
chore(deps): update sentry-rust monorepo to 0.34.0
2024-06-07 00:52:25 -04:00
renovate[bot]
82a3b73774
chore(deps): update rust crate clap to v4.5.6
2024-06-07 00:52:13 -04:00
renovate[bot]
1f19356693
chore(deps): update aquasecurity/trivy-action action to v0.22.0
2024-06-07 00:52:05 -04:00
Jason Volk
3ada847570
extract client ip from connection state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
0bade5317f
add connection info to router
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
c2267d4c03
add services state to router
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
aebae11c82
reintroduce the variadic macro for ruma handler.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
f871d8fd4e
move impl FromRequest for Ruma up one level; some cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
4a68e28c71
use debug_warn for presence spam
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
6e59135a7d
eliminate RotationHandler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
0e74ade7d7
isolate axum shutdown in router; minor run-cycle/signalling tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-07 02:00:28 +00:00
Jason Volk
e4aa20ebeb
move services ctor/dtor detail into service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
427aa4645c
cleanup/reduce some tracing spans.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
73718a1208
elminate generic argument in ruma_wrapper::auth
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
0e3d192ad2
fix trivial-casts
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
76a4d8aa4c
additional clippy configuration
...
these are documentary values seeking review, not final standards set for the project.
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
9bb52cb3ec
add missing dev_release_log_level feature projection
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
dd49b3c3a1
fix/simplify emergency access initialization
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
b2e56777af
fix missing toolchain in cargo smoketest run invocation.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
Jason Volk
f32380772f
rename api::client_server to api::client
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00
strawberry
8428f43c78
add legacy element hack for UIAA using invalid user field
...
see:
- https://github.com/girlbossceo/ruwuma/commit/e9302a955614429ca969eb4c7f561fc87a4f6f15
- https://github.com/element-hq/element-android/issues/8043
- https://github.com/element-hq/element-ios/issues/7405
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-06 10:57:00 -04:00
Jason Volk
3af153f5ae
split s2s into units
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 04:41:27 -04:00
strawberry
38238c309f
appservices: remove unnecessary services() call for self
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 18:18:08 -04:00
strawberry
0857fe7907
abstract+add more "users in room" accessors, check membership state on active_local_joined_users_in_room
...
`roomuserid_joined` cf seems unreliable, so in the mean time we need to check
membership state (or maybe this is a more reliable check anyways)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 18:18:08 -04:00
strawberry
c738c119f8
delete unnecessary real_users_cache, fix overwriting push_target iter, add proper function for getting local active users in room
...
this `real_users_cache` cache seems weird, and i have no idea what
prompted its creation upstream. perhaps they did this because
sqlite was very slow and their rocksdb setup is very poor, so
a "solution" was to stick member counts in memory.
slow iterators, scanning, etc do not apply to conduwuit where
our rocksdb is extremely tuned, and i seriously doubt something
like this would have any real world net-positive performance impact.
also for some reason, there is suspicious logic where we
overwrite the entire push target collection.
both of these things could be a potential cause for receiving
notifications in rooms we've left.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 18:18:08 -04:00
strawberry
c1227340b3
update complement results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 18:17:46 -04:00
strawberry
bf10ff65a4
media: ignore Content-Type params, use binary_search
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 17:28:51 -04:00
strawberry
b781771a9b
media: drop Content-Type detection support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 16:33:53 -04:00
strawberry
df8ba04e31
media: trust client Content-Type again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 16:33:53 -04:00
strawberry
19926ba00d
sort ALLOWED_INLINE_CONTENT_TYPES
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 16:33:53 -04:00
strawberry
893cc50570
csp: set form-action 'none'
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 16:33:53 -04:00
strawberry
c9fbbdce1c
csp: remove unusual directives, slight security improvement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-05 02:50:44 -04:00
Jason Volk
732e8b82aa
Abstract password hashing into util.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-05 03:00:23 +00:00
Tom Black
282c2feca8
Clarify purpose and temporary muting
2024-06-04 17:13:21 +01:00
strawberry
919735b4ce
remove usages of &String and &Owned[..]
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 14:17:42 -04:00
strawberry
2e83e56a07
remove deleted config options and update address example option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 14:17:42 -04:00
strawberry
ff7dfec74c
slightly cleanup update check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 14:17:42 -04:00
strawberry
84290bd668
update deps, remove unnecessary zstd crate, pin rust-rocksdb rev
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 14:17:32 -04:00
strawberry
b29a8791de
admincmd: leave all rooms if deactivating all users with --force
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
83220b43a2
use saturating_add and vec with_capacity in even more places
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
4ea7af5780
ci(engage): use all-features devshell for cargo doc / rustdoc --all-features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
79fb8091dc
ci(engage): use all-features direnv devshell for clippy/all
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
f6fa2a4f65
use swap_remove instead of remove in a few places
...
`swap_remove` is faster if we don't care about the order (O(1))
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
b63937af0b
ci(engage): add cargo test default, use all-features devshell for cargo test --all-features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
3c4e325036
nix(bin): cache default devshell on top of all-features devshell
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
023fb41c49
load .env file before initializing flake to use DIRENV_DEVSHELL in .env
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
9a5f1dac57
drop unnecessarily verbose get_alias_helper logging
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
173ff26eb6
disable URL previews by default upon admin room creation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:28 -04:00
strawberry
45e3fdba69
admin room: add get-latest-pdu and get-first-pdu commands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-03 00:10:24 -04:00
strawberry
9f359e0550
make resolve_state public to resolve new forced compressed room state
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
ffdf47d1ea
add latest_pdu_in_room timeline function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
1af65e695d
media: return application/octet-stream if no content-type was provided
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
b1886583d9
csp: fix typo, add base-uri none
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
f11103b43b
media: check detected content-type against MSC2702
...
only return `inline` if the detected content-type is an allowed
inline content-type as defined by MSC2702
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
9b096cc67b
fix: check if you've left the room before forgetting it
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
1ac72ab914
init a few state hashmaps using with_capacity
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
f0533e07ef
fed: remove unnecessary mutables, use with_capacity in couple more places
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
68f42f5a2f
fed: relax read receipt EDU check
...
so in theory: guest users, peaking over federation,
and world readable rooms should be allowed to send
read receipts even if they're not joined.
relaxing this check to only allow the read receipt if
the server has at least 1 member in the room makes
some of this still work
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
884cbab135
ci: comment out hardened_malloc clippy check for now
...
i need to either fix static linking, or just make it
dynamic always (but then kinda useless idk)
https://gitlab.com/conduwuit/conduwuit/-/jobs/6953419673#L3155
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
4aead5de7a
reflax a couple restrictions on custom room IDs and aliases
...
🙃
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
strawberry
aef25ea1f7
enable tracing feature for axum
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 23:53:31 -04:00
Jason Volk
1a4736d40b
support configuring multiple bind hosts; default to dual localhost.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-03 01:17:58 +00:00
strawberry
f09e0dc137
add conduwuit community code of conduct
...
this is a code of conduct that the moderation team made up,
specific to conduwuit's community spaces such as the matrix rooms.
the matrix foundation and contributor's covenant still apply, but
having conduwuit-specific additional guidelines help
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 21:02:38 -04:00
strawberry
de79b66cea
misc docs changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-02 21:02:38 -04:00
strawberry
95ca9d00a2
nix: get all features from main crate
2024-06-02 23:01:12 +00:00
Jason Volk
887496d040
consolidate default cargo features
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 23:01:12 +00:00
Jason Volk
c2586737ae
accept receipts prior to events
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 23:01:12 +00:00
Jason Volk
7d2f510cc3
single-source for defaulty log filter string
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 23:01:12 +00:00
Jason Volk
102bd1b4a6
use debug_warn for parse_incoming_pdu err results.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 23:01:12 +00:00
Jason Volk
89ab687f16
move signal handling out to main
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 23:01:12 +00:00
Jason Volk
1108235c63
misc simplifications and cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 20:17:45 +00:00
Jason Volk
90d9a997a5
split / cleanup core utils.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 20:17:45 +00:00
Jason Volk
5fe5ab279c
split RouterExt impl related into ruma_wrapper unit.
...
slightly restrict client_server mod index.
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 20:17:45 +00:00
Jason Volk
f1d1366129
split resolve_actual_dest
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 20:17:45 +00:00
Jason Volk
ba48758b89
impl fmt::Display for FedDest
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 20:17:45 +00:00
Jason Volk
9df5265c00
split sending resolver into unit.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 20:17:45 +00:00
Jason Volk
ee52d2f751
refactor lints into categories. lints are now more strict.
...
rust:
* ALL lints which rustc defaults to "allow" have been set to "warn".
* NEW "warn" lints which produce a warning as of this commit have been
explicitly identified and commented with a TODO for later review.
clippy:
* ALL categories (sans restriction) now fully enabled to "warn".
* redundant lints set to "warn" from categories now at "warn" are removed.
* previous "allow" sadness moved into respective categories.
* new warnings produced as of this commit have been explicitly identified:
- nursery lints set to "allow" marked with TODO for later review.
- pedantic lints set to "allow"
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
53fe2362fc
Fix path-buf-push-overwrite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
38ab1083e3
Fix ptr-cast-constness
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
050841a871
Fix inefficient-to-string
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
4521e93d04
Fix stable-sort-primitive
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
0f3d43153b
Fix unused-self
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
e5eccb3a0c
Fix unreadable-literal
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
68cbf19154
Fix items-after-statements
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
2ab427fe99
Fix default-trait-access
2024-06-02 12:34:05 -04:00
Jason Volk
02081b66c4
Fix some unnecessary-unwraps w/ addl cleanup/simplification.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
b3fc8516ed
Fix unnested-or-patterns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
9e51525c25
Fix uninlined-format-args
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
14039d9df4
cleanup unused extern crates.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
eed8a2a801
add and sort incomplete package metadata
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 12:34:05 -04:00
Jason Volk
c3a0d28309
add tracing span; mute connection errors.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 01:20:28 -04:00
Jason Volk
6d1144bb69
move unix socket unlink from services to router
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 01:20:28 -04:00
Jason Volk
2e45cb281a
split router::serve units.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 01:20:28 -04:00
Jason Volk
0baa57f5d9
add back unix socket listener.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 01:20:28 -04:00
Jason Volk
faa2b95c84
add unwrap_infallible tool
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 01:20:28 -04:00
Jason Volk
dd1d8fa760
upgrade to hyper-util 0.1.5
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-02 01:20:28 -04:00
Jayryn
f4cfc77a57
Check if database symlink already exists
...
test -L $object [object exists and is a symbolic link (same as -h)]
It is not recommended to use -h
[True if file exists and is a symbolic link. This operator is retained for compatibility with previous versions of this program. Do not rely on its existence; use -L instead.]
2024-05-28 04:06:53 -04:00
Jason Volk
b8b93a2e86
Bump 0.4.1
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
29d69b7688
update complement test results
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
strawberry
bd07fb61e0
add hot_reload.md to SUMMARY.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
a41a60ef07
media: dont ignore requested filename on /download for Content-Disposition
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
Jason Volk
ec7a9ab726
add toolchain and build/check shortcut to smoketest
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
25f598ce6c
enable http2 feature for reqwest.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
dbcb3be0ab
fix duplicate output; increase wait in smoketest.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
a537462d51
replace num_cpus dependency with available_parallelism()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
d2aef071bc
add possibly referenced rocksdb symbol to export list.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
d68b11e8ff
fix rustflags for release-max-perf
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
9cf5b0926e
fix regressed jemalloc stats feature
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
ff0b57c89c
remove unused jemalloc dep in main module.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
b94045a468
dissolve key_value/*
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
3122648767
split ruma_wrapper from_request() related.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
3f5349ad76
simplify RumaHandler for Router building.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
27dcf213f1
tweak error strings.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
a1b526b3b7
tweak log levels
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
dc614e11d6
check invite target is our server.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
c5569b4c6e
dedup acl checks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
Jason Volk
71a1285c7b
hoist receipt ACL check
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-27 18:16:23 -04:00
strawberry
abdda6cf32
check invited user's server against ACLs on /invite
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
4d21f9d962
use ok_or_else instead of ok_or for function calls in server_server.rs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
1013fe5a42
check for membership join state at /send_join
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
f31b7b9420
ignore inbound EDUs for users that dont belong to origin server
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
e5e358cc68
compare X-Matrix origin + body origin and check PDU/EDU length at /send txn
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
50bc7cc005
check state_key matches sender user at /send_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
445015e9ea
check user ID server against ACLs at /send_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
7a38c12e5d
check for member event type at /send_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
2a77951152
check for membership leave state at /send_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
0256c27363
check if we know about room at /make_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
826edc0a3a
check state_key matches sender user at /send_join
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
a5043a38e1
only allow membership event types at /send_join
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
bfd471a863
check user ID server against ACLs for /send_join
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
3981e77ec6
check user ID server against ACLs for /make_join
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
81bf4b7150
check user ID server against ACLs for /make_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
b8ec763a7c
ignore read receipts from ACL'd servers and users not joined
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
003d4edbfa
debug log receiving typing EDUs for users not in room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
4f0006d18a
ignore typing EDUs from ACL'd user's servers
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
b822e3a94c
listen on IPv6 localhost by default
...
this is dual-stack by default on linux, resolves
issues with nginx using `localhost` and randomly
choosing between 127.0.0.1 and [::1], causing
intermittent upstream issues
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
68fffe8e96
check room ACLs on sender user's server for incoming PDUs
...
`handle_incoming_pdu`
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
strawberry
7328ed7509
rename misleading sender_servername to origin
...
this is the X-Matrix origin/server, NOT the `"sender"``
user's server name.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-27 18:16:23 -04:00
Benjamin Lee
6ccf578437
bump rocksdb input
...
Nedded to pull in [1], which is rared for dynamic rocksdb builds with
liburing.
[1]: https://github.com/girlbossceo/rocksdb/commit/c8a1450231e9c608edf535538dbe8ca1a8d2f3bc
2024-05-27 04:54:57 -04:00
Benjamin Lee
8a1848a814
Revert "nix: default output to scopeHostStatic instead of scopeHost"
...
This reverts commit a37b2b9e64 .
Dynamic builds are working again, so we'd prefer having that be the
default output for consistency with nixpkgs.
2024-05-27 04:54:57 -04:00
Benjamin Lee
b4cd8e9140
fix dynamic builds with liburing
...
The original implementation of this was really weird, so I restructed it
a lot while debugging, and am just gonna leave the restructured version.
Root cause of the segfault seems to be that upstream nixpkgs liburing
derivation is generating both static and dynamic libraries, causing
rocksdb to statically link liburing in a dynamic build, pulling in some
allocator stuff at the same time. I created a PR[1] to fix this upstream,
but it probably won't be available on nixos-unstable for quite a while,
so we can also patch it locally.
[1]: https://github.com/NixOS/nixpkgs/pull/314945
2024-05-27 04:54:57 -04:00
Benjamin Lee
a08f90b161
add a smoke-test to CI for the nix 'default' output
...
I talked to somebody yesterday in #conduwuit:puppygock.gay that was using
this output in their system config. The dynamically-linked jemalloc build
is quite fragile, and is not tested by anything else in CI. We want to
make sure we don't break it again in the future.
2024-05-27 04:54:57 -04:00
Benjamin Lee
207979579c
fix dynamically linked devshell
...
This failed to inherit the fix from bec507d739
because the crane package's buildInputs become propagatedBuildInputs in
a static stdenv, but become normal buildInputs in a dynamic stdenv. Since
we were only pulling propagatedBuildInputs into the devshell, dynamically
linked devshells did not include the rust-jemalloc-sys package. This
causes tikv-jemalloc-sys to build it's own static jemalloc package, and
we end up loading libc before jemalloc at runtime.
2024-05-27 04:54:57 -04:00
Benjamin Lee
68b96026ec
unmark dynamically-linked jemalloc builds as broken
...
It turns out that this was actually fixed by
bec507d739 and
857ac42aac , but we didn't identify it at the
time. Notably, the `dynamic` devshell is still broken.
2024-05-27 04:54:57 -04:00
strawberry
30beb20230
conditionally static link rust-rocksdb-uwu by hot reload cfg
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
19e7779693
update complement test results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
6269822613
actually fix all let_underscore_must_use lints
...
CI caught some more
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
0877ee6191
allow let underscore use lint for rocksdb create cf for now
...
the workaround needs to be extended to rocksdb caches, but
i dont know that part of code
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
a37b2b9e64
nix: default output to scopeHostStatic instead of scopeHost
...
defaults to static builds instead of dynamically linked builds
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
29fe960efa
bump hyper-util and libz-sys
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
6bf2e73830
ci: run cache dependencies in ci.yml as well
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
630760b5da
bump rocksdb to v9.2.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
61e7f1e614
remove rpath = true from dev profile as the rustflags have it
...
needed for hot reloading but rpath being true by default
causes linker errors on lld because of the sad rpath bug
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
7ebed7aa3e
clarify disable-room message after banning room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
ad3eeaf4c1
delete audit.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
5215fbe695
drop redaction calculated hash log to debug_info
...
this is normal redactions. no valid reason this needs to be
warn as it just causes confusion.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
dc9fe657d5
fix guest accounts being logged still
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
1c7c5bc09c
feat: add /_conduwuit/local_user_count endpoint
...
only enabled if federation is enabled
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
32161801ed
use/enable let_underscore_must_use lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
71bdcb958a
fix: dont drop remote federation error on 4xx responses
...
for a very long time, if a remote server responded to us with
a valid but unsuccessful (HTTP 4xx) response and the caller was the
`send_federation_request` function, we may find ourselves
with a warning message only containing the destination's
server name which was very unhelpful. the true error was
buried away in trace logs. this would primarily be noticed
with server key fetch requests from us.
conduit has been throwing away the ruma request error: https://gitlab.com/famedly/conduit/-/blame/next/src/utils/error.rs#L62
before: 2024-05-23T04:45:02.930224Z WARN router:{path=/_matrix/client/v3/publicRooms}:handle: conduit_api::client_server::directory: Failed to return our /publicRooms: matrix.org
after: 2024-05-23T05:05:02.435272Z WARN router:{path=/_matrix/client/v3/publicRooms}:handle: conduit_api::client_server::directory: Failed to return our /publicRooms: matrix.org: [401 / M_UNAUTHORIZED] Failed to find any key to satisfy: _FetchKeyRequest(server_name='your.server.name', minimum_valid_until_ts=1716440702337, key_ids=['ed25519:RQB3XPQX'])
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
d3db0ad4e2
renovate: label PRs as dependencies and github_actions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
e098448b9d
init a few vecs in event_handler using with_capacity
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
d49507bc21
media: decomplexify get_all_media_keys for deleting all MXC URIs
...
wow this was terrible, early strawberry code
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
cb73ae3732
add registration token validity endpoint as per matrix 1.2
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
06bec40591
fix: add missing fetch_required_signing_keys for remote send_leave
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
9a7ba94ccf
explicity define unstable support for sliding sync
...
this matrix-react-sdk PR (and the cited sliding sync MSC)
says that they will intend on checking sliding sync support
from this unstable feature flag at /versions until the CORS
header stuff is specced
https://github.com/matrix-org/matrix-react-sdk/pull/12498
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
2990c30ac9
nix: bump rocksdb input
...
• Updated input 'rocksdb':
'github:girlbossceo/rocksdb/db6df0b185774778457dabfcbd822cb81760cade' (2024-05-03)
→ 'github:girlbossceo/rocksdb/be68b3c95ccd225f3121ba33a67cfaf3c3596afc' (2024-05-23)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
d9c575d96f
bump deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
c32406aa0e
replace deprecated config option for complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
03d12cb44e
update docs a tad
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
bef7dbd1cb
finally error on complement diff mismatch, remove jemalloc builds from
...
CI
jemalloc is now a default feature
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
08577873b4
update complement test results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
a3931b0f1f
nix: bump flake.lock
...
• Updated input 'crane':
'github:ipetkov/crane/27025ab71bdca30e7ed0a16c88fd74c5970fc7f5' (2024-05-09)
→ 'github:ipetkov/crane/7443df1c478947bf96a2e699209f53b2db26209d' (2024-05-19)
• Updated input 'fenix':
'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10)
→ 'github:nix-community/fenix/063d7e5fac454edd35b7e2cedb6ca9fb1410c79b' (2024-05-21)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09)
→ 'github:rust-lang/rust-analyzer/21ec8f523812b88418b2bfc64240c62b3dd967bd' (2024-05-19)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/f1010e0469db743d14519a1efd37e23f8513d714' (2024-05-09)
→ 'github:NixOS/nixpkgs/3eaeaeb6b1e08a016380c279f8846e0bd8808916' (2024-05-21)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
ba2f22b5d3
nix: remove jemalloc (now default) targets, add jq input for default
...
jq input change was from https://gitlab.computer.surgery/matrix/grapevine-fork/-/commit/17eb3545906d21f2ed18f0f0f917a4638f12ef6c
to prevent unnecessary bindgen rebuilds
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
0914aaa1b6
skip a few known flaky/unreliable complement tests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-25 22:28:43 -04:00
strawberry
f3427afc7f
nix: use new public keys for binary caches due to attic issues
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-24 18:13:02 -04:00
morguldir
9aa372d83b
nix: Allow excluding features, allow disabling release_max_log_level
2024-05-24 15:12:23 -04:00
morguldir
5893901a75
Explicitly include snappy as well
...
Not sure what changed that we need this
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-05-24 12:46:15 -04:00
morguldir
8ba9b33a95
Make sure we use the liburing of the platform we're building for
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-05-24 12:46:15 -04:00
morguldir
70047ff26d
Make rocksdb include liburing, and tell gcc the path during the build
...
With: strings /nix/store/9skicdac6xs4yww1nd3h7m6xydv4hxlj-rocksdb-9.1.1/lib/librocksdb.so.9|rg io_uring|wc -l
112
With: strings result/bin/conduit |rg io_uring|wc -l
5
Without: strings static-x86_64-unknown-linux-musl-jemalloc |rg io_uring | wc -l
0
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-05-24 12:46:15 -04:00
Benjamin Lee
1d57e14dc0
set C/LDFLAGS for complement dependencies directly
...
Previously we were relying on NIX_CFLAGS_COMPILE, but this is not being
set in static devshells. A cleaner solution for complement would likely
be to build the tests in their own nix derivation instead of building
them in the devshell, but this change unblocks CI for now.
2024-05-24 10:53:47 -04:00
Benjamin Lee
5d81203277
use a statically-linked binary for complement
...
Dynamically-linked jemalloc is broken.
2024-05-24 10:53:47 -04:00
Benjamin Lee
ad39a34c16
add a dynamically-linked devshell
...
This is broken on linux, but can be used by darwin users for development,
since static/jemalloc/darwin is broken.
2024-05-24 10:53:47 -04:00
Benjamin Lee
a007338b34
mark dynamic jemalloc builds as broken on linux
2024-05-24 10:53:47 -04:00
Benjamin Lee
3d1507e6dd
mark static rocksdb broken on darwin
2024-05-24 10:53:47 -04:00
Benjamin Lee
4cb7c0b982
don't use prefixed jemalloc with rocksdb
...
This is causing build failures on Mac:
> In file included from /tmp/nix-build-rocksdb-static-aarch64-apple-darwin-9.1.1.drv-0/source/memory/memory_allocator.cc:8:
> In file included from /tmp/nix-build-rocksdb-static-aarch64-apple-darwin-9.1.1.drv-0/source/memory/jemalloc_nodump_allocator.h:11:
> /tmp/nix-build-rocksdb-static-aarch64-apple-darwin-9.1.1.drv-0/source/port/jemalloc_helper.h:63:36: warning: unknown attribute '_rjem_malloc' ignored [-Wunknown-attributes]
> mallocx(size_t, int) JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(1)
> ^~~~~~
> /nix/store/3bix0kzy670dyhhizri3dwb1qfj3sdpa-jemalloc-static-aarch64-apple-darwin-5.3.0/include/jemalloc/jemalloc.h:412:18: note: expanded from macro 'malloc'
> # define malloc je_malloc
> ^~~~~~~~~
> /nix/store/3bix0kzy670dyhhizri3dwb1qfj3sdpa-jemalloc-static-aarch64-apple-darwin-5.3.0/include/jemalloc/jemalloc.h:75:21: note: expanded from macro 'je_malloc'
> # define je_malloc _rjem_malloc
> ^~~~~~~~~~~~
> /nix/store/3bix0kzy670dyhhizri3dwb1qfj3sdpa-jemalloc-static-aarch64-apple-darwin-5.3.0/include/jemalloc/jemalloc.h:183:43: note: expanded from macro 'JEMALLOC_ATTR'
> # define JEMALLOC_ATTR(s) __attribute__((s))
Full build log at <https://girlboss.ceo/~strawberry/pb/ygJ3 >. This is
likely fixable with patches to rocksdb, but not worth it since darwin is
only a dev platform.
2024-05-24 10:53:47 -04:00
Benjamin Lee
0c34cf95ce
set show-trace for nix in CI
2024-05-24 10:53:47 -04:00
Benjamin Lee
17cc02ff99
add a 'no-features' devshell for local testing
2024-05-24 10:53:47 -04:00
Benjamin Lee
c0f8253fc5
enable all-features in nix for CI builds
...
CI is running `cargo build --all-features`, so we should be passing all
the features to nix as well.
The only thing this currently affects is the jemalloc_prof feature, but if
we add any non-default features that affect nix in the future they should
also be handled correctly now.
2024-05-24 10:53:47 -04:00
Benjamin Lee
0fd0a5d73c
switch default devshell to static linking
...
Dynamically-linked jemalloc doesn't work due to link-order issues, and we
want CI to be testing a static binary anyway since that's what we're
publishing in releases.
2024-05-24 10:53:47 -04:00
Benjamin Lee
4e6fc2f2df
factor devshell out into a helper function
...
We're planning to add a second devshell with `all-features` for CI.
2024-05-24 10:53:47 -04:00
Benjamin Lee
a6742ce8a7
remove liburing from devshell
...
This doesn't seem to be necessary to build, and the derivation is broken
in pkgsStatic.
2024-05-24 10:53:47 -04:00
Benjamin Lee
188dea13e0
do default-feature unification in nix
...
Some of the features affect nix dependencies, so we need to have a
full feature list available when constructing the nix derivation. This
incidentally fixes the bug where we weren't enabling jemalloc on rocksdb
in CI/devshells, because jemalloc is now a default feature. It does not
fix the more general class of that issue, where CI is performing an
`--all-features` build in a nix devshell built for default-features.
I am now passing `--no-default-features` to cargo, and having it use our
unified feature list rather than duplicating the unification inside cargo.
2024-05-24 10:53:47 -04:00
Benjamin Lee
a7fe434086
only link to one jemalloc build
...
Without setting JEMALLOC_OVERRIDE, we end up linking to two different
jemalloc builds. Once dynamically, as a transitive dependency through
rocksdb, and a second time to the static jemalloc that tikv-jemalloc-sys
builds.
2024-05-24 10:53:47 -04:00
renovate[bot]
eb8dd9cb44
chore(deps): update aquasecurity/trivy-action action to v0.21.0
2024-05-23 01:30:36 -04:00
strawberry
474d50d10c
bump conduwuit version to 0.4.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-21 20:22:17 -04:00
Jason Volk
2e732c711c
docs: Update docs for hot-reloading.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-21 20:22:17 -04:00
strawberry
981ec51ec0
docs: add initial docs for hot reload
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-21 20:22:17 -04:00
Jason Volk
2dd5cf8c68
move clap; fix version
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-21 20:22:17 -04:00
Jason Volk
74832bdc47
fix smoke from builds produced by --all-features
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-21 20:22:17 -04:00
Jason Volk
fdc9a9a1b8
add cargo smoketest
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-21 20:22:17 -04:00
Jason Volk
1f3a9a40e5
lint clippy::collapsible_match (nightly)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-21 20:22:17 -04:00
Jason Volk
362649ff87
rename src/bin to src/main
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-21 20:22:17 -04:00
strawberry
4aeec78ab4
debian: remove old symlink on postrm
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-21 20:22:17 -04:00
strawberry
9bfa89a555
adjust debian metadata, set crane workspace name
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-21 20:22:17 -04:00
Jason Volk
6c1434c165
Hot-Reloading Refactor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-21 20:22:17 -04:00
slonkazoid
ae1a4fd283
add modification time fallback if birth time is not supported on this platform
2024-05-21 16:58:30 -04:00
Benjamin Lee
9eb0784f6f
don't return extra member count or e2ee device updates from sync
...
Previously, we were returning redundant member count updates or encrypted
device updates from the /sync endpoint in some cases. The extra member
count updates are spec-compliant, but unnecessary, while the extra
encrypted device updates violate the spec.
The refactor necessary to fix this bug is also necessary to support
filtering on state events in sync.
Details:
Joined room incremental sync needs to examine state events for four
purposes:
1. determining whether we need to return an update to room member counts
2. determining the set of left/joined devices for encrypted rooms
(returned in `device_lists`)
3. returning state events to the client (in `rooms.joined.*.state`)
4. tracking which member events we have sent to the client, so they can
be omitted on future requests when lazy-loading is enabled.
The state events that we need to examine for the first two cases is member
events in the delta between `since` and the end of `timeline`. For the
second two cases, we need the delta between `since` and the start of
`timeline`, plus contextual member events for any senders that occur in
`timeline`. The second list is subject to filtering, while the first is
not.
Before this change, we were using the same set of state events that we are
returning to the client (cases 3/4) to do the analysis for cases 1/2.
In a compliant implementation, this would result in us missing some
relevant member events in 1/2 in addition to seeing redundant member
events. In current conduwuit this is not the case because the set of
events that we return to the client is always a superset of the set that
is needed for cases 1/2. This is because we don't support filtering, and
we have an existing bug[1] where we are returning the delta between
`since` and the end of `timeline` rather than the start.
[1]: https://github.com/girlbossceo/conduwuit/issues/361
Fixing this is necessary to implement filtering because otherwise
we would start missing some member events for member count or encrypted
device updates if the relevant member events are rejected by the filter.
This would be much worse than our current behavior.
2024-05-20 20:55:56 -04:00
Benjamin Lee
8bffcfe82b
remove sync response cache
...
This cache can serve invalid responses, and has an extremely low hit
rate.
It serves invalid responses because because it's only keyed off
the `since` parameter, but many of the other request parameters also
affect the response or it's side effects. This will become worse once we
implement filtering, because there will be a wider space of parameters
with different responses. This problem is fixable, but not worth it
because of the low hit rate.
The low hit rate is because normal clients will always issue the next
sync request with `since` set to the `prev_batch` value of the previous
response. The only time we expect to see multiple requests with the same
`since` is when the response is empty, but we don't cache empty
responses.
This was confirmed experimentally by logging cache hits and misses over
15 minutes with a wide variety of clients. This test was run on
matrix.computer.surgery, which has only a few active users, but a
large volume of sync traffic from many rooms. Over the test period, we
had 3 hits and 5309 misses. All hits occurred in the first minute, so I
suspect that they had something to do with client recovery from an
offline state. The clients that were connected during the test are:
- element web
- schildichat web
- iamb
- gomuks
- nheko
- fractal
- fluffychat web
- fluffychat android
- cinny web
- element android
- element X android
Fixes : #336
2024-05-17 18:13:11 -04:00
strawberry
6ef4781050
downgrade zlib/libz-sys to 1.1.16 as it breaks nix
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-17 03:42:25 -04:00
strawberry
302592f219
bump conduwuit version to 0.3.4
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-17 03:17:27 -04:00
Benjamin Lee
7cd72d8447
bump lockfile
2024-05-17 03:08:56 -04:00
renovate[bot]
4389e08686
chore(deps): update cachix/install-nix-action action to v27
2024-05-15 14:39:21 -04:00
strawberry
91064fe873
fix up systemd unit file, remove chown on config file for debian
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
004354353a
docker-compose: slight cleanups, correct database paths, fix branding
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
c64a507691
correct default database path to /var/lib/conduwuit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
81d2078cdb
debian: dont start service immediately, add postinst instructions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
f5864afb52
remove namespace check on username login, code simplification on login route
...
the namespace check on username login is unnecessary, hashes aren't ever
going to match, and axum auth handles this kind of stuff already
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
9a63e7cc9b
flip order of complement diff checking, update test results
...
we now pass all Content-Disposition checks/tests
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
296d7c58ee
nix: bump complement input for conduwuit support
...
https://github.com/matrix-org/complement/pull/723
• Updated input 'complement':
'github:matrix-org/complement/370a014dca0f720614e0c8f68b9a3e66ecf7f516' (2024-05-02)
→ 'github:matrix-org/complement/8587fb3cbe746754b2c883ff6c818ca4d987d0a5' (2024-05-14)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
a8446f910a
debian: fix config permissions, delete debconf support
...
debconf support needs to be done in a way that does not duplicate
the config file like upstream does.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
a063a6d088
debian: make the docs actually coherent and understandable, and update it
...
the language here is very poor and i'm not sure why it was written like this.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
5069c88f77
ci: correct paths for debian package creation, use conduwuit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
53974320e5
debian: create system account verbosely
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
1c6ef66e3e
fix gitlab ci
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
ffb63c9c8d
ci: regex out the cargo/rustc target for cargo-deb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
de6b296eb5
ci: use verbose for mv operations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
4c11c9f048
ci: use target-specific dirs for cargo-deb, fix cargo-deb paths
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
6074298426
ci: allow build job to be ran for all events except for draft PRs
...
this allows build to be ran for workflow_dispatch
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
6e9f68bf81
chore: update complement test results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
edd67a102a
ci(debian): add missing --target= for arm64 debs, add --verbose
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-15 14:31:35 -04:00
strawberry
434b5118cc
media: return our detected MIME type for Content-Type
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 15:54:22 -04:00
strawberry
4185a33747
fix: we should be checking for xml MIME type instead
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 15:54:22 -04:00
strawberry
829307c83b
disallow svg MIME types to be inline Content-Disposition
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 11:37:50 -04:00
strawberry
2bd7a92256
complement: add -tags="conduwuit_blacklist"
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
bfa33f8713
unpin rust-rocksdb version
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
040cf29051
ci: add lix binary cache, update .gitlab-ci file
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
80bc1cd78a
ci: output 100 failure summary lines instead of 50
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
78994deb1e
nix: simplify isDarwin lib check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
714b3e7144
s/nix/lix in a couple places
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
1cd57f40f6
upload complement OCI image from CI, document where it can be found, use main instead of dev for tag
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
da9a0eb77b
docs: fix broken systemd unit link
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
37b2c90e62
chore(nix): bump flake
...
• Updated input 'complement':
'github:matrix-org/complement/891d18872c153d39a9ce63b545045efddb845738' (2024-04-30)
→ 'github:matrix-org/complement/370a014dca0f720614e0c8f68b9a3e66ecf7f516' (2024-05-02)
• Updated input 'crane':
'github:ipetkov/crane/f6c6a2fb1b8bd9b65d65ca9342dd0eb180a63f11' (2024-04-21)
→ 'github:ipetkov/crane/27025ab71bdca30e7ed0a16c88fd74c5970fc7f5' (2024-05-09)
• Updated input 'fenix':
'github:nix-community/fenix/73124e1356bde9411b163d636b39fe4804b7ca45' (2024-05-01)
→ 'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/55d9a533b309119c8acd13061581b43ae8840823' (2024-04-20)
→ 'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/5c24cf2f0a12ad855f444c30b2421d044120c66f' (2024-04-19)
→ 'github:NixOS/nixpkgs/f1010e0469db743d14519a1efd37e23f8513d714' (2024-05-09)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
ba150a1185
nix: stop running unnecessary cargo check on builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
ddce9496f2
nix: fix building rust on macOS (Security apple_sdk framework)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-12 03:05:34 -04:00
strawberry
fe637f481d
ci: fix incorrect startsWith syntax
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-11 14:29:00 -04:00
strawberry
18e43e1d35
Reapply "bump various deps"
...
This reverts commit 6b918966d4 .
2024-05-10 22:56:44 -04:00
strawberry
09fca89ac5
Revert "rocksdb: enable async_io if using io_uring feature"
...
This reverts commit 6266e0ab5e .
2024-05-10 22:56:44 -04:00
morguldir
9f19a2025d
Revert "feat(membership): check if user already has the membership that is requested to be set"
...
This reverts commit 321a6ca0fe .
These checks were not working as intended, resulting in the unban button not working
The join check gets kept since it slightly reduces the amount of sent joins in some cases
This check will probably be replaced soon for a more universal solution to the "made no change" issue
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-05-10 22:52:44 -04:00
strawberry
6b918966d4
Revert "bump various deps"
...
This reverts commit 653ec3799e .
2024-05-09 22:38:05 -04:00
strawberry
328502c1cd
dont send avatar url or display name for ban membership events
...
the display name or avatar may be offensive
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 17:44:15 -04:00
strawberry
d15e461303
config option to auto-remediate bad users joining bad rooms or servers
...
also forgets all rooms upon leave_all_rooms
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 17:44:15 -04:00
strawberry
6946eead28
pin rust-rocksdb to before snappy update
...
it seems to break nix builds
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 17:42:05 -04:00
strawberry
09d3240365
bump conduwuit version to 0.3.3
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 17:42:05 -04:00
strawberry
653ec3799e
bump various deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 17:42:05 -04:00
strawberry
6de9f52d5a
docs: update differences.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 12:34:50 -04:00
strawberry
484e7d1d2a
docs: add my selfhosted forgejo mirror
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 12:34:50 -04:00
strawberry
dfa01541b3
docs: transfem.dev has rules
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 12:34:50 -04:00
strawberry
adbe9268ce
docs: add troubleshooting, maintenance, various improvements and fixes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 12:34:50 -04:00
strawberry
3504e6e724
fix broken reports
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 12:33:46 -04:00
strawberry
154b2ab490
media: additional sanitisation on the Content-Disposition filename
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 09:53:04 -04:00
strawberry
2231ccf118
return inline Content-Disposition based on the detected file type (e.g. image/video)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 09:53:04 -04:00
strawberry
d4d9f92ade
add security response HTTP headers if not present
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-09 09:53:04 -04:00
renovate[bot]
e4e1636da8
chore(deps): update aquasecurity/trivy-action action to v0.20.0
2024-05-08 15:06:45 -04:00
strawberry
e99aac9550
ci: fix gitlab container registry destination
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-08 15:04:59 -04:00
strawberry
ddb87168ed
update gitlab repo link
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-08 15:04:59 -04:00
strawberry
245c34e659
ci: dont run docker publishing if none of the usernames are set
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-07 23:59:05 -04:00
strawberry
43b07be3fc
ci: use PR author instead of branch name for docker image publishing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-07 02:44:55 -04:00
strawberry
99d98efeb1
ci: fix docker publishing typo
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 13:05:00 -04:00
strawberry
7b25ef2e6c
make next_batch token a variable in search, revert threads_until change
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
1f8a7a707c
nix: cache complement outputs using nix-build-and-cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
86ec20e787
docs: remove last dev branch mention
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
Charles Hall
8c21388f01
fix nix-build-and-cache
...
Now it actually caches everything.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
d657fa32e9
ci: format string
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
321e197d8c
correct arithmetic adjustments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
16a98b0683
ci: push docker images for PRs in the merge-PR_NUMBER-HEAD_REF format, fix main pushes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
9e1bbc1650
ci: run on new tag pushes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
91ff6a36a4
ci: abort workflow if latest repo tag does not match with running tag ref
...
protects against a maintainer creating a downgrading version tag, and
uploading artifacts with that version
this check is only ran via workflow dispatch on the tag
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
56f1d8be1f
ci(docker): publish latest only if ref starts with our tag format
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
ed60f189cc
docs: remove dev docker images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
cabf4362be
docs: direct all PRs to main
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
2472c7c47a
ci: don't run on dev anymore, run on main and non-draft PRs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
Xiretza
136cb038cf
auth_chain: add useful debug logging
2024-05-06 03:45:10 -04:00
Xiretza
8f89be0fbd
utils: add helper for adding unbounded slices to tracing spans
2024-05-06 03:45:10 -04:00
Xiretza
bbdced9c90
Fix appservice namespace check for room aliases
...
Only normal users should be prevented from creating an alias within an
exclusive namespace, not the appservice itself. This mirrors the
behaviour in api/client_server/room.rs on room creation.
2024-05-06 03:45:10 -04:00
strawberry
a6f4dc2b74
engage(lychee): check all markdown files too, enable verbose mode
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
df203fa244
add a contributing guide
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
c6e6eb0af3
ignore empty CONDUWUIT_VERSION_EXTRA for server version
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
29babebc4d
adminroom: add count to list-joined-rooms user command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
Matt Moriarity
2f3194840c
fix extra version when using flake-compat
2024-05-06 03:45:10 -04:00
strawberry
0ebb323490
resolve almost all as_conversions lints
...
may need further opinion from others on these
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
f8e1255994
presence: set empty string status msg to None
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
b5c0c30a5e
resolve half of the integer_arithmetic lints, couple misc changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
ac4590952b
set io_uring for rocksdb a default feature
...
this was already enabled by default by rocksdb technically, but
it wasn't building with it properly.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
67569cb9c8
nix: switch to fork of rocksdb input
...
https://github.com/girlbossceo/rocksdb/commit/db6df0b185774778457dabfcbd822cb81760cade
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
11ec0dff4f
add PATCH to list of allowed HTTP methods in CORS (MSC4138)
...
https://github.com/matrix-org/matrix-spec-proposals/pull/4138
we already had HEAD
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
a198f0481a
nix: add liburing to devshell
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
6266e0ab5e
rocksdb: enable async_io if using io_uring feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
9ee1485960
enable overflow-checks for dev/debug profile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
05314ec46c
nix: set hardcoded NIX_OUTPATH_USED_AS_RANDOM_SEED for bindgen
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
b66d2d44d0
chore: bump MSRV to 1.77.0 as 1.78.0 came out
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
3b2db9027a
envrc: allow loading env vars from .env if it exists
...
from https://or.computer.surgery/charles/matrix/-/commit/ffd479d66fae5092073ff380d25fac3735d055bd
This is primarily useful for replicating the environment from CI so that
the `nix-build-and-cache` script is easier to invoke.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
97e81885db
use dep: syntax in cargo.toml features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
706c1c993b
nix: don't run cargo test for crane buildpackage
...
CI does this already
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-06 03:45:10 -04:00
strawberry
cb70d51e2b
bump conduwuit version to 0.3.2
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-05 16:52:51 -04:00
strawberry
bfb827a418
send Cache-Control and CORS header for remote thumbnail responses
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-05 16:28:21 -04:00
strawberry
e2fb588a8c
sent attachment content-disposition on thumbnails too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-05 16:28:21 -04:00
strawberry
43c4dfc5df
set content-disposition to attachment instead of inline
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-05 16:28:21 -04:00
strawberry
42e3567153
disable overflow-checks for performance
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 02:18:24 -04:00
strawberry
75ad5cfbb7
bump conduwuit version to 0.3.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 02:12:34 -04:00
strawberry
be5101b07c
bump console-subscriber to 0.2
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 02:12:34 -04:00
strawberry
c531101657
misc docs adjustments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
761263332b
ci: push to gitlab container registry too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
5fe146aa85
docs: update differences.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
d7399a12fb
config: split at __ for struct sections of config, add couple missing settings for show-config
...
this makes `CONDUWUIT_WELL_KNOWN__CLIENT` a valid env variable config
option as it would normally exist under `[well_known.client]` in toml
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
7e2a15497c
use function comments for lsp here
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
e226046e15
drop default appservice_timeout to 35 seconds
...
AS's are generally hosted on the same machine or within the same
network
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
75b9332917
dont allow creating remote users in admin room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
de26bf22dc
adjust a couple error codes for room alias getting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
a7c14a861b
ci: output complement diff results to job summary, temp allow error
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
05b7dec482
temp(ci): comment complement results diff for now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
38ca88da9f
ci(gitlab): use --no-strip for cargo deb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
2e5ba7ab17
ci(gitlab): use gitlab fastzip feature flag
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
35683d66dd
sort the complement results by test name for consistent output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
e1052d1829
chore: update checked-in complement test results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
49078aa836
fix: get the presence of the requested user instead of ourselves
...
after getting the shared rooms with the target user, we actually only
get the presence of ourselves instead of the requested user
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
b6b739a7b7
set -vet=off to (hopefully) run all complement tests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
fa0bdd431b
add destination to X-Matrix Authorization outbound requests
...
we were already validating this for inbound requests
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
a6cf5cfd8b
remove future deleted nix binary cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
37c2877cf8
chore: update checked in list of complement test results
...
also remove the separated passed/failed list, it's already ordered
neatly for folks to read.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
1181a7a7a9
nix: specify explicit branches/refs for flake inputs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
cad16b9268
ci, nix: build and cache all packages and CI dependencies
...
from https://or.computer.surgery/charles/matrix/-/commit/f5bd9bc45e5e5eaf76cff31f1c259ed3f39fb88a
with changes for GitHub CI and misc
Co-authored-by: Charles Hall <charles@computer.surgery >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
3b410d0556
ci: run complement with direnv
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
28f599236a
ci: compare complement results with checked-in results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
365c85ad27
use nix-output-monitor if available
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
13f1274c35
run complement in CI (does not compare results yet)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
c4beb7d462
dont return "Allocator" header for server memory-usage if empty
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
0f13ada300
return more user-friendly message for debug memory-stats
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
a7f8c848aa
refactor and simplify room creation route a bit
...
removes a couple unnecessary checks, uses our room_id ruma request field
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
25bc1f069d
chore: bump deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
0223386243
remove this unnecessary log, use debug_warn
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
a496cc4705
dedupe version getting code, rename to CONDUWUIT_VERSION_EXTRA
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
8ec9372a8e
lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
Charles Hall
a01a7e1219
improve "Leave event has no state" log
...
To include the user, room, and event ID.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
db81ffb4ea
nix: only set CONDUIT_VERSION_EXTRA for final build + slight cleanup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
096c252dc2
move hierarchy via servers higher up, add some debug logging to it
...
this entire thing needs to be cleaned up later, but i need spaces
to work
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
1464b30433
add workaround for room creation initial_state event content as {}, slight refactor
...
this will simply skip over the events
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
Jason Volk
3585e8a2ef
rename / simplify tester stub for now
...
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
Jason Volk
b19d2ad5b0
daily logging improvements
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Jason Volk
8ecf722abb
split http serving from main.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Jason Volk
5d76db8f19
add configuration for rocksdb direct-io enablement
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
strawberry
f4a2b39d55
split up alias.rs a bit (alias checks and room alias server name stuff)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
e00b65b0e0
use ok_or_else instead of ok_or for backup.rs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
beeacd4ef1
initialise capabilities with default constructor
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
e5735c81ed
dedupe half of account/room data config.rs code
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
b17ccdadd2
dedupe some code in state.rs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
8e3918250d
rm complement test logs, rm docker healthcheck.sh, rm .vscode/ dir, move test results to tests/ dir
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
6021cb0a1f
partially revert this
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
35114dde7d
add query_over_tcp_only config option for hickory
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
62fd6e2c7c
set AD bit to false in hickory
...
this is purely DNSSEC related which we don't use, and DNSSEC on matrix
is unbearable for federation (no one sets it up properly, it's extremely taxing, etc)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
668a7645e9
add ip_lookup_strategy config option for hickory resolver
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
3f8407dd64
add hot_lib to default.nix src include
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
b8c4d6b157
bump ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
0b39bb813e
tiny refactoring, split out report_event_route a bit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
d32ea6ec20
cargo doc lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
041a7a90f3
hot lib things again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
9c0c4c292c
document hot_lib for developers a bit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
ed86a4aa9e
slight misc adjustments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
b282c1eb6d
add (probably messy) support for hot lib reload via admin command
...
`!admin test test1`
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
76c5942b4f
use user_is_local and server_is_ours more, remove few double filters
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
e7505a4b20
resolve ptr_as_ptr lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
a97520b0e9
bump MSRV to 1.76.0
...
there's really no point in trying to stay as low as possible for us,
and this makes development easier. Debian users should just use rustup,
Nix users already get the proper toolchains.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
9931e60050
use single global function for server name local and user local checking
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
8f17d965b2
use <pre> for codeblock formatting in jemalloc stats, link to ffi func
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
Jason Volk
9f5d7b0761
fix mallctl suite lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Charles Hall
4faf690f57
run clippy on default, all, and allocator features
...
This way all 4 major configurations are linted.
2024-05-03 01:52:29 -04:00
Charles Hall
838550536a
reflow clippy in engage file
2024-05-03 01:52:29 -04:00
Charles Hall
3b05417246
handle the case where 0 or >1 allocs are enabled
...
In particular this fixes `cargo build --all-features`.
2024-05-03 01:52:29 -04:00
Charles Hall
e0c0d51a05
fix lints
2024-05-03 01:52:29 -04:00
Jason Volk
e4b669360f
start mallctl suite w/ jemalloc stats
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Jason Volk
56f652c12d
cleanup admin worker loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Jason Volk
4b6938e0f6
add admin server uptime command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Benjamin Lee
781d4b7907
document tracing_flame options in example config
2024-05-03 01:52:29 -04:00
Benjamin Lee
56f1e905de
add config option tracing_flame_output_path
...
Hardcoding the output path to something in CWD is a pain if you're running
conduwuit through systemd or similar. Also made the error message when
it's unable to create the output file a little more friendly.
2024-05-03 01:52:29 -04:00
Benjamin Lee
646b31d2bd
flush tracing-flame output file on exit
...
Previously we were dropping the flush guard early, possibly causing
samples to be lost on exit.
2024-05-03 01:52:29 -04:00
Benjamin Lee
7d92515b1d
add tracing_flame_filter config option
...
The previous hardcoded filter `trace,h2=off` isn't appropriate in all
cases, it's better to have this be configurable.
2024-05-03 01:52:29 -04:00
Benjamin Lee
cc578d9a67
keep stdout logs when tracing-flame/jaeger is enabled
...
Previously, enabling the `tracing_flame` or `allow_jaeger` options would
prevent any logs from being written to stdout. In addition, enabling the
`allow_jaeger` option would inhibit the `tracing_flame` option.
Now that we have a way to use separate tracing filters with different
layers, we can enable all three at the same time without issues.
This commit also prevents the `debug log_level` command from modifying
the `tracing-flame` filter. This was supported previously, but I don't
think it's something that you would ever want to do intentionally. Now
that we have both the normal log filter and the `tracing-flame` filter
enabled at the same time, we want to `debug log_level` to only modify the
normal filter.
2024-05-03 01:52:29 -04:00
strawberry
bf713cd0ba
lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
61f813c187
admin command to get rooms a remote user is in, remove unnecessary dedupe+sort
...
imagine this SQL query but in conduwuit:
select * from users_in_public_rooms where user_id like '%user_id%';
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
450f15df4f
admin debug command to fetch a server's true destination
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
1cbf2bdc6b
update dns_cache_entries example config setting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
Jason Volk
b4035bf0da
increase default dns cache entries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Jason Volk
37ecb4f2b9
decrease log verbosity for potentially cached NoRecordsFound
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
Jason Volk
daf4b56435
fix inherited sequential small options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-05-03 01:52:29 -04:00
strawberry
799b2909ab
ci: dont run registry pushes if creds are not set
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
614ef5b3a1
raise dns_min_ttl_nxdomain back to 3 days
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
cfa89b8b64
add remaining other rocksdb compression options
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
9f245281b1
never allow only 1 tokio worker or rocksdb parallelism thread (max compare)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
d172a6883d
bump some deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
strawberry
04afc83043
switch to my fork of tracing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-05-03 01:52:29 -04:00
Benjamin Lee
8a5599adf9
add optional support for tokio-console
...
This turned out to be quite hairy, mostly because we need to apply the
config's log level filter to the actual logs (stdout and, optionally
sentry), but do not want to filter out the tokio tracing events needed by
the console_subscriber. I hit several edge cases in tracing getting
this to work, and we now depend on a git version of tracing with a
backported patch :(
2024-05-03 01:52:29 -04:00
strawberry
341bafb91e
final last minute change
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
72877622e5
forgot to update example config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
66e3e95b78
use logical core count for rocksdb parallelism
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
b0de16bf5a
misc docs updates and ci path-ignore again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
e8508d16e1
update README.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
8574d0758e
add concurrency group and paths-ignore to ci.yml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
59199e8f66
document presence_timeout_remote_users
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
a41472cc3f
why not
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
6fd3123660
update some documentation a bit for new users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
5195593f55
add @resources to syscall filter in the default systemd unit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Tom Foster
536efe2cd7
CI working with job summaries
...
All images should be generating correctly with parallelism and Docker manifests, and should output the end of the CI testing errors in a job summary box when the test fails.
When the test succeeds you get a big ✅ then at the end of the Docker publish it should include the `docker pull` commands for both Docker Hub and GHCR registries to make those pesky Docker users lives easier!
2024-04-26 02:03:40 -04:00
strawberry
aa299111a4
update differences.md a bit more, and README.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
33afd60026
use number of logical cores for tokio worker thread count
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
54eb634588
add rocksdb compaction thread priority/iopriority w/ conf
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
a4c243cae5
cleanup, update, and format differences.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
1da3048bb8
allow accepting CONDUWUIT_ prefixed config options
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
894902b75f
bump cargo.lock due to yanked crate
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
c87ea1dea1
delete unused servername_ratelimiter semaphore now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
d55015ccda
rename release_log_level dev feature to dev_release_log_level, some rebranding
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Charles Hall
76ab8ca69b
allow disabling default features via override
2024-04-26 02:03:40 -04:00
Jason Volk
67f9553790
backoff to valhalla
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
255bcf5243
split sending from mod interface.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
a124122dd4
daily logging improvements
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
0b33eec1c2
remove max_concurrent_requests sender hazard
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
00ce43d739
remove redundant timers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
b01d25277d
fix remote media error propagation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
b3984f5337
deduplicate cache control into constant
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
7e5ed199c9
deduplicate media handler bodies; minor reorg
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Tom Foster
6fbf4b5679
Simplify docker manifest CI stage
2024-04-26 02:03:40 -04:00
Charles Hall
ee9650bd9f
update flake.lock
...
Should've been done in fe606f4fad but the
author didn't realize it.
Flake lock file updates:
• Updated input 'rocksdb':
'github:facebook/rocksdb/bcf88d48ce8aa8b536aee4dd305533b3b83cf435' (2024-04-16)
→ 'github:facebook/rocksdb/6f7cabeac80a3a6150be2c8a8369fcecb107bf43' (2024-04-22)
2024-04-26 02:03:40 -04:00
strawberry
c1d8678eeb
try moving a couple things around in CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
e2c460ec54
ci: define packages permission in publish step
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
4128d83be6
bump ruma, adjust a couple lines of docs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
a81563244f
restricted room join typo
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
3c45a468f1
bump rocksdb to 9.1.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
af0b81f5fb
simplify conduwuit version number, bump to 0.3.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Tom Foster
d57110e2f3
Improved CI artifact filename handling
2024-04-26 02:03:40 -04:00
Jason Volk
49e453fe07
cleanup/refactor sender base loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
d19573c7b5
Revert "Revert "prevent empty transactions from going out""
...
This reverts commit bb43351658 .
2024-04-26 02:03:40 -04:00
strawberry
c57601a4b8
delete all active requests for the appservice when we delete it
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
dc35d06c0a
misc changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
c915f3dec5
resolve rust 1.75 error?
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
7f86a166ec
make "release_max_level_info" into a crate feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
b1ddc502cc
please stop "rustc-ice"
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
bd73103713
adjust appservice sending logging
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
eb5dcf08c6
remove unnecessary appservice reqwest timeout, reduce couple unwraps, return if unsuccessful HTTP response
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
46ce15f61f
slightly adjust pusher logging, return if non-successful status instead of continuing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
ee07e3e975
missing semicolon
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
15a990dc25
improve various logging
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
57e6af6e21
split sending/send base functions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
f919fa879b
abbrev destination in sender
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
d91f24d841
partially revert this in main.rs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
e90ab8ec8e
split request base result handling and tweak logging
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
aef77bd338
add release_log_level feature to simulate release logs in debug mode.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
3140f101c1
move clap into utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
0734b52a8a
slight misc error.rs changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
renovate[bot]
f0dd3930fa
chore(deps): update nixos/nix docker tag to v2.22.0
2024-04-26 02:03:40 -04:00
Tom Foster
e17f8d5b24
Multi-threaded CI to accelerate builds
2024-04-26 02:03:40 -04:00
strawberry
726bc50fe4
ignore irrelevant cargo audit RUSTSEC in engage explicitly
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
418ec87cfd
try logging the full URI instead of just the path for tracing_span
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
6874ac0015
allow RUSTSEC-2020-0016 due to hot lib reload
...
this is an optional crate anyways
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
6394b1812c
use 403 for auth check fails everywhere else
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
1b41e35f1d
use HTTP 403 (forbidden) instead of HTTP 400 for membership failed auth checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
73c67d6b17
add back complement test results (dir subject to change?)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
5f0d519327
docs: fix complement script command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
eb10e7d39b
fix(appservices): don't perform identity assertion when auth is optional
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
456a3f93bd
replace all mentions of docker compose v1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
a730adb836
use perf_measurements attributes here
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
b7a494c40d
reduce tls override cache lock exposure
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
17d0c869b0
remove some various unused functions and mark some possibly important ones *for now*
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
66bb88a03a
make everything pub(crate) instead of pub
...
conduwuit is not a library
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
472c32f453
conduit "library" delete, resolve some warnings from that
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
5e8ae971f1
flip min_duration and max_duration
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
1595037427
cleanup scoped types; improve error logging
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
938d1f6e77
add conf item for sender retry backoff limit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
f273e8feb5
resolver defaults to error for everything except NoRecordsFound.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
906057dd8d
add all admin query command for appservices
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
d90ac11603
remove mentions of "outgoing_kind" everywhere else too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
e26cd5e296
rename OutgoingKind to Destination, add QueuedRequests and ActiveRequestsFor admin query commands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Tom Foster
77d73583f6
Separate CI job for publishing docker manifest
2024-04-26 02:03:40 -04:00
strawberry
b8a748815a
dont allow admin room to be made world readable
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Charles Hall
9297c642aa
update flake.lock
...
Flake lock file updates:
• Updated input 'attic':
'github:zhaofengli/attic/6eabc3f02fae3683bffab483e614bebfcd476b21?narHash=sha256-wSZjK%2BrOXn%2BUQiP1NbdNn5/UW6UcBxjvlqr2wh%2B%2BMbM%3D' (2024-02-14)
→ 'github:zhaofengli/attic/4dbdbee45728d8ce5788db6461aaaa89d98081f0?narHash=sha256-0O4v6e4a1toxXZ2gf5INhg4WPE5C5T%2BSVvsBt%2B45Mcc%3D' (2024-03-29)
• Updated input 'attic/nixpkgs':
'github:NixOS/nixpkgs/aa9d4729cbc99dabacb50e3994dcefb3ea0f7447?narHash=sha256-KnIRG5NMdLIpEkZTnN5zovNYc0hhXjAgv6pfd5Z4c7U%3D' (2023-12-14)
→ 'github:NixOS/nixpkgs/07262b18b97000d16a4bdb003418bd2fb067a932?narHash=sha256-QoQqXoj8ClGo0sqD/qWKFWezgEwUL0SUh37/vY2jNhc%3D' (2024-03-25)
• Updated input 'attic/nixpkgs-stable':
'github:NixOS/nixpkgs/1e2e384c5b7c50dbf8e9c441a9e58d85f408b01f?narHash=sha256-blbrBBXjjZt6OKTcYX1jpe9SRof2P9ZYWPzq22tzXAA%3D' (2023-12-17)
→ 'github:NixOS/nixpkgs/44733514b72e732bd49f5511bd0203dea9b9a434?narHash=sha256-akSgjDZL6pVHEfSE6sz1DNSXuYX6hq%2BP/1Z5IoYWs7E%3D' (2024-03-26)
• Updated input 'crane':
'github:ipetkov/crane/55f4939ac59ff8f89c6a4029730a2d49ea09105f?narHash=sha256-Vz1KRVTzU3ClBfyhOj8gOehZk21q58T1YsXC30V23PU%3D' (2024-04-21)
→ 'github:ipetkov/crane/f6c6a2fb1b8bd9b65d65ca9342dd0eb180a63f11?narHash=sha256-qd/MuLm7OfKQKyd4FAMqV4H6zYyOfef5lLzRrmXwKJM%3D' (2024-04-21)
• Updated input 'fenix':
'github:nix-community/fenix/aa45c3e901ea42d6633af083c0c555efaf948b17?narHash=sha256-nTaO7ZDL4D02dVC5ktqnXNiNuODBUHyE4qEcFjAUCQY%3D' (2024-03-28)
→ 'github:nix-community/fenix/19aaa94a73cc670a4d87e84f0909966cd8f8cd79?narHash=sha256-3pbv7UgAgetwz9YdjzIT/lZ6Rgj6wj6MR4mphBLyDjU%3D' (2024-04-21)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/ad51a17c627b4ca57f83f0dc1f3bb5f3f17e6d0b?narHash=sha256-s/YOyBM0vumhkqCFi8CnV5imFlC5JJrGia8CmEXyQkM%3D' (2024-03-27)
→ 'github:rust-lang/rust-analyzer/55d9a533b309119c8acd13061581b43ae8840823?narHash=sha256-iN5QUlUq527lswmBC%2BRopfXdu6Xx7mmTaBSH2l59FtM%3D' (2024-04-20)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/2726f127c15a4cc9810843b96cad73c7eb39e443?narHash=sha256-UKcYiHWHQynzj6CN/vTcix4yd1eCu1uFdsuarupdCQQ%3D' (2024-03-27)
→ 'github:NixOS/nixpkgs/5c24cf2f0a12ad855f444c30b2421d044120c66f?narHash=sha256-XtTSSIB2DA6tOv%2Bl0FhvfDMiyCmhoRbNB%2B0SeInZkbk%3D' (2024-04-19)
2024-04-26 02:03:40 -04:00
Charles Hall
06e8b63a3c
add cargo-audit to the devshell
...
Apparently github actions VMs ship with it and that's how it was working
before? Cursed. We should control our own supply chain and also ensure
that local development uses the same version as CI.
2024-04-26 02:03:40 -04:00
Charles Hall
63fe828120
use lib.makeScope and files to organize packages
...
Some of the improvements here include:
* rocksdb can actually use jemalloc now instead of just pulling in a
second rocksdb for no reason
* "complement-runtime" factored back out into shell file
* complement image no longer uses `mkDerivation` for `copyToRoot`
because that's what `buildEnv` is for
* complement image no longer sets `SERVER_NAME`, complement already does
that
* all packages were factored out into `callPackage`-able files for use
with a custom `lib.makeScope pkgs.newScope`
* new version of `mkPackage` has options that are easier to use and
override such as `features`
2024-04-26 02:03:40 -04:00
Charles Hall
36774322e1
always go through inputs
2024-04-26 02:03:40 -04:00
Charles Hall
5476a36a0b
remove dead code
2024-04-26 02:03:40 -04:00
Charles Hall
d2c3275323
get complement via flake inputs
...
Flake lock file updates:
• Added input 'complement':
'github:matrix-org/complement/d73c81a091604b0fc5b6b0617dcac58c25763f57?narHash=sha256-hom/Lt0gZzLWqFhUJG0X2i88CAMIILInO5w0tPj6G3s%3D' (2024-04-18)
2024-04-26 02:03:40 -04:00
Charles Hall
b635e807ef
get rocksdb via flake inputs
...
Flake lock file updates:
• Added input 'rocksdb':
'github:facebook/rocksdb/bcf88d48ce8aa8b536aee4dd305533b3b83cf435?narHash=sha256-vRPyrXkXVVhP56n5FVYef8zbIsnnanQSpElmQLZ7mh8%3D' (2024-04-16)
2024-04-26 02:03:40 -04:00
Charles Hall
503c0f1076
flatten and sort all flake inputs
2024-04-26 02:03:40 -04:00
strawberry
acbe3bfbda
use global valid_cidr_range everywhere else
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
22bebb9b74
various logging improvements.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
423fc6dad0
precompute cidr range denylist; move validator.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
93c3e6dec8
forgor is_err check too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
ebc59e6f15
some more room alias helper logging
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
5acb110f2b
remove unnecessary continue
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
b3f03d307d
try finding more servers for federation hierarchy instead of room ID server name
...
just the room ID server name is terrible
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
69968b94ea
flip this
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
311be20055
break out the via field for hierarchy requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
8a767c4b10
on room alias joins, attempt to find the room ID through *more* servers if available
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
8ad42a85ef
dont eat the ?server_name= param for join room by ID or alias
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
54cf992490
bump all deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
85b5597ea7
integrate reqwest read_timeout options.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
c396ff5cb8
show info log in release mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
eb9a6fe426
refactor sending send/resolver/well-known error propagation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
68aa368450
cleanup/split/dedup sending/send callstack
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
Jason Volk
9361acadcb
add debug log level macros.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
1e0b34367b
add users query command, initial fsck admin command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
affd063df6
allow user admin commands to take the username only
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
8b3c4a528c
add get_latest_edu_count admin query cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
cffe48d2dc
add federation allowed checks on get remote pdu list
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
f87a012834
always print the details in panic catcher
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
039e79ab1b
return matrix JSON response for panic catcher with details if debug build or trace used
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
afd72f23da
add get-remote-pdu-list debug admin command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Charles Hall
a260308bc9
unpin crane because the bug was fixed
...
Flake lock file updates:
• Updated input 'crane':
'github:ipetkov/crane/2c653e4478476a52c6aa3ac0495e4dea7449ea0e?narHash=sha256-XoXRS%2B5whotelr1rHiZle5t5hDg9kpguS5yk8c8qzOc%3D' (2024-02-11)
→ 'github:ipetkov/crane/55f4939ac59ff8f89c6a4029730a2d49ea09105f?narHash=sha256-Vz1KRVTzU3ClBfyhOj8gOehZk21q58T1YsXC30V23PU%3D' (2024-04-21)
2024-04-26 02:03:40 -04:00
strawberry
2271a56adc
move sign_json and verify_json admin commands to debug
...
these are purely debug-related commands
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
9b7dab3a57
add sending.rs to admin db query command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
67b4f19c60
simplify room v11 top level redacts key
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Tom Foster
820cf3b9af
ci: extract OCI images before loading and before login
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
aaba7342b5
fix config check running too late, add tower panic catcher(?)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
94dfe26707
ci: fix dockerhub login
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
893707d501
finish general admin room cleanup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Tom Foster
a36b37ee3d
Simplify to publish combined jemalloc image for all architectures
2024-04-26 02:03:40 -04:00
Tom Foster
8525dda468
Simplify publish to Dockerhub
2024-04-26 02:03:40 -04:00
strawberry
0cf368a327
refactor a ton of the admin room code (50% done)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
6b28bd5ae7
refactor more of admin code, add unfinished fsck command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
7cbe82668b
ci: oci image registry publishing take 374237598
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
ce7355cbe0
add globals iterators/getters for admin query cmd, improve structure a bit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
2de4eea688
create better structure for admin query commands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
b93215d7f2
use raw database functions, not helper functions, for admin query command
...
the helper functions may do ad-hoc data manipulation
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
e4a6a2325b
initial support for querying database getters and iterators via admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
f954cd2387
ci(oci): add back arch prefix, try labeling our jemalloc images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
640cb2d4a8
ci: 🧌
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
96399703cc
use --no-strip for cargo-deb, fix OCI image stuff
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
31f851f157
temp: get rid of hardened_malloc builds from CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
dd415182f9
bump hardened_malloc-rs, dont make num_cpus optional, use full debuginfo instead
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
99f920f7bc
use gcc by default for hardened_malloc instead
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
7007df9abd
bump conduwuit version to 0.2.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
1b8ae43ec9
fix lint for now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
e64f4df763
add release-debuginfo cargo profile with limited debug and no strip
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
ef23c604d7
bump axum-server-dual-protocol, remove 2 unnecessary attribute check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
19255c0c14
use max_request_size in axum.rs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
AwesomeQubic
999cc7ccf5
possibly fix macOS builds for nix
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
morguldir
6c0d527b90
Use jemalloc/hmalloc for cross builds
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-04-26 02:03:40 -04:00
morguldir
056c9d6920
Since we use crane.buildPackage we need to use cargoExtraArgs
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-04-26 02:03:40 -04:00
morguldir
3ebf1082d6
Base oci-images on their matching alloc variant
...
Co-authored-by: AwesomeQubic <ThatQubicWah@protonmail.com >
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-04-26 02:03:40 -04:00
strawberry
aa77a31dfc
stop excluding http deps from renovate !!!!
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
AwesomeQubic
30b5142ecc
fix flake for macos, fix jemalloc/hmalloc builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
Jason Volk
05477150a2
Upgrade hyper/axum/tower/http stack.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-26 02:03:40 -04:00
strawberry
305f75b0e7
ci: try to fix cargo-deb arm64 stripping
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
8fc32b8e90
comment x86_64-unknown-linux-gnu for now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
2e15a0d18b
split up CI again into tests, static builds, and OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
73b25b9793
ci: limit max parallel jobs to 4
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
2a987ca67a
try using upstream rocksdb again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
AwesomeQubic
90fc2bf53e
add Complement support to the nix flake
...
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: AwesomeQubic <ThatQubicWah@protonmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
de38d61126
merge ci steps back into one job for now
...
how do i persist or reuse the "state" of previous jobs
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
a4b28507de
bump hickory, ruma, and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
3d445dd984
bump rocksdb to 9.1.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
30e6c2385c
use latest main rev for hickory (and for reqwest)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
d3dbe110d5
adjust DNS default config options
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
a898cf0db4
ci: remove download env
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
d070c89f84
split up CI steps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
a3c53036d5
cargo fmt
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
morguldir
32eb568909
Remove extra test flag when publishing to ghcr in the CI
...
test -n checks if a string is longer than non-zero, but we just need a compare
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-04-26 02:03:40 -04:00
strawberry
bd25709446
Revert "dont use loole for sending channel code"
...
This reverts commit d0a9666a29 .
2024-04-26 02:03:40 -04:00
strawberry
a64cbd0304
fix wrong warn message
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-26 02:03:40 -04:00
strawberry
d0a9666a29
dont use loole for sending channel code
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
11a2da3819
fix flake for other oci images too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
fcda7252c3
fix flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
bb43351658
Revert "prevent empty transactions from going out"
...
This reverts commit cc7cd51e9c .
2024-04-17 14:51:08 -04:00
strawberry
e95e4b9200
revert tag name in nix flake for OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
7300103796
check if user is allowed to invite for restricted room join
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
5667884a6a
ci: wrap ref_name in quotes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
Matthias Ahouansou
19e4befcb8
feat(appservice): ensure users/aliases outside of namespaces are not accessed
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
morguldir
b303a774d8
Set the time of the HEAD commit as the OCI created field
...
Apparently it uses `date -Iseconds` to parse, so we can use @ with a timestamp
Also it doesn't parse `created` in buildImage, only buildLayeredImage
Signed-off-by: morguldir <morguldir@protonmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
5015fc7a2c
add ci and flake support for using ref name to docker image tag
...
also runs ci on dev branch
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
641399e900
dont auto join rooms if registrations are from appservices
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
6131465d23
don't use bad_database (HTTP 500) for auth check failures
...
this is not database-related, and may trigger exponential backoff
against us from other servers
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
c5c8934db7
default to shared room history visibility if invalid (per spec)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
eebdd30ed7
bump cargo.toml dependencies
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
Jason Volk
541fa2d2f7
tweak various log levels and messages
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-17 14:51:08 -04:00
Jason Volk
33cc3d56c1
lazy-construct presence; avoids useless db queries in sender and syncer.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-17 14:51:08 -04:00
Jason Volk
8b003e6be2
add DNS configuration for TCP fallback.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-17 14:51:08 -04:00
Jason Volk
b6cf0e6fcf
fix trust_negative_responses config option
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-17 14:51:08 -04:00
strawberry
160b9afe97
fix force room banning for room alias resolution
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
8e77d60abf
bump major conduwuit version to 0.2.0 due to federation breakage
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
97c63604fd
"global" ACLs config option, block room directory requests to forbidden servers
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
47c43769d7
improve some user admin cmd checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
404bdd1db5
allow ban-list-of-rooms to take room aliases
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
Matthias Ahouansou
59be0b3ddc
sync upstream token/appservice auth code
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
strawberry
c76445e9c1
clear ratelimits when clearing cache too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-17 14:51:08 -04:00
renovate[bot]
6d47c20efa
Update Rust crate chrono to 0.4.38
2024-04-15 07:34:45 -04:00
Jason Volk
cc7cd51e9c
prevent empty transactions from going out
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-15 07:30:39 -04:00
strawberry
38b15418ca
remove created date from OCI image generation
...
dockerhub and github container registry don't like this,
and i have no idea what to do.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-15 07:01:00 -04:00
strawberry
775191d5c1
dont include the timestamp in the docker image created date
...
i hate this
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-15 00:55:07 -04:00
strawberry
527a5cbd73
don't allow moderators dangerous permissions, fix pl 100 state_default
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 23:05:26 -04:00
strawberry
d1c139de26
add config option for url_preview_domain_explicit_denylist
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
Jason Volk
287887224f
default empty presence string to offline.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
cdb2dff7dd
federation incoming logging/tracing related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
ad4e214d28
polylogarithmic debodge
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
e493b3a60d
split prev_event loop body; fetch state; dedup room version procurement.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
424e13cec2
split signing_keys from event_handler/mod.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
dba0575e75
some optimizations to get_auth_chain()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
678d87ced1
add multi_get_or_create_shorteventids()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
b4080de749
fix multi_get for abstraction and limit to specific column for least-surprise
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
c4ebc2f1d1
fix double-deserialization in federation transaction handler.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
97fc6c158f
add edu select limit and condition for presence.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
6c9e95f7c9
add config option for allow_outgoing_read_receipts
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
Jason Volk
2b54c00f04
add config option to disable rocksdb LOG file
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-14 22:35:23 -04:00
strawberry
20efe437fb
default to debug log level if using debug build
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
878dcd71bb
fix invalid database code for servers_invite_via
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
59ba3e3190
only allow admins to send room state events by default (e.g. ACLs)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
27f8c5b63d
don't debug log device display name for guest registrations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
71611f0ae5
nix: try lastModifiedDate for oci image created date
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
0f3f919e7b
add list of passed, failed, and all complement tests
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2024-04-14 22:35:23 -04:00
strawberry
ac5dd77783
update complement Dockerfile conduwuit config sed's
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
d9ea3ffe70
raise complement test timeout to 30 minutes from 10 minutes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
ca8128b195
document commandline args for complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
eceef5efa2
add config option for allowing guests to auto join rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
d95c02f575
add config option for logging guest regs in admin room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
e57051acd8
run all complement tests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
f263630ac1
fix: use path_and_query() for "uri" in request_map for signatures
...
resolves X-Matrix signatures being invalid in some edge-cases,
and fixes Complement/Sytest federation tests
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
81f5492675
fix complement script
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
d717329448
cite banner image used by at least github repo
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
068a878260
partially update differences.md, at note at the top
...
this is hard to maintain now, and i think conduwuit is reaching a point that
it's way too different from upstream to simply "list all the differences" out
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
168858c8de
port room directory auth to new auth stuff
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
9b82551e63
bump cargo.lock due to yanked jobserver
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
Matthias Ahouansou
a0b65eda1e
merge the huge authentication MR mess (reject requests with authentication when not used)
...
and (fix: allow invalid auth when no auth is required)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
792a8ddb2f
fix rustdoc lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
Matthias Ahouansou
8eda3be9ce
disable federation at the router level too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
0d21d70d4a
remove two unnecessary matches
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
e5307d44ca
log error for /publicRooms requests, simplify it a bit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
9b5c8c124e
fix example config well_known options
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
c2785038d8
add back default derive for WellKnownConfig
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
fdf523a93c
bump conduwuit version to 0.1.15
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
Matthias Ahouansou
2d4877f9a5
feat(federation): implement /make_leave and /send_leave
...
also fixed some clippy lints, and added "event_id" field
removal check for room v1 and 2
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
bfa68e7bc5
refactor well-known stuff to use proper ruma types, config types, etc
...
this does deprecate the original `well_known_` prefixed config options
with a dedicated/proper config sub-block (`[config.well_known]`)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
993c0102d9
add unstable support for MSC4125
...
from https://gitlab.com/famedly/conduit/-/merge_requests/626 with code fixes and clippy lint fixes
MSC4125: https://github.com/matrix-org/matrix-spec-proposals/pull/4125
Co-authored-by: Matthias Ahouansou <matthias@ahouansou.cz >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
46e945d571
bump ruma, deps, and add MSC4125 ruma feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
f9e6caef87
simplify getting event content in build_and_append_pdu
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
223f05c922
mark room version 11 as stable
...
there's nothing unstable about this, and per upstream only unstable
room versions are used if they are complex to support (versions <=5)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
b7a2482e4d
output jemalloc and hmalloc builds in CI, add back target check for cargo.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
befdc29b1e
bump deps, fix repo link on cargo.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
593bad7780
remove unnecessary malloc imports, remove cargo.toml env check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
9883444486
allow unset variables in nix-build-and-cache for unset ATTIC_TOKEN
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
89c22435d5
nix: simplify malloc outputs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
354487fa10
nix: use HEAD commit's date for docker image creation and reproducible images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
a94387dcdc
maybe add multiple outputs support to nix flake for jemalloc and hardened_malloc
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
10219a531b
dual malloc feature check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
f6e9c106aa
use hardened_malloc by default only on supported targets
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-14 22:35:23 -04:00
strawberry
ff0d4c98ee
add hardened_malloc-rs feature and global_allocator
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2024-04-14 22:35:23 -04:00
Jason Volk
7d92cad55f
deactivate bloom filter
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-10 12:15:34 -04:00
Jason Volk
6345742e8b
tweak compaction options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
c42209c0b3
use Arc<[u64]> rather than Arc<HashSet<u64>> for auth_chain_cache value.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
2cc72de80e
fix lossy origin regression 12a8c9badd
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
458e56818c
polylogarithmic debodge
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
345be5ba5e
use rocksdb caches for a few of the lru_caches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
strawberry
fc44ba6ab3
bump ruma and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
839a89c968
remove some unnecessary loops
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
40596634c4
respond with actual servers for /_matrix/federation/v1/query/directory requests instead of just us
...
aka be spec compliant
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
973fed155e
config option to allow/disallow federation profile requests
...
allow_profile_lookup_federation_requests
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
85814e96e3
implement unstable MSC2666 support for querying mutual rooms
...
https://github.com/matrix-org/matrix-spec-proposals/pull/2666
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
0dc3acea71
build zstd_compression by default for tower-http
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
9be072181c
remove unneeded url preview function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
3438b340a9
remove comments, log channel errors
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
68321ec467
bump conduwuit version to 0.1.14
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
raizo
579d3ce865
replace tokio channels with loole ( #256 )
...
* rewrite admin handler to use loole channels
* apply correct formatting
* move all other services to loole channels
* fix ci
2024-04-09 15:26:45 -04:00
strawberry
c82c548cbf
bump ruma and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
7f14c08c34
admin command to change tracing log level dynamically
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
Jason Volk
a83da4f17b
refactor rocksdb opts; split kvtree
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
bade4ed17f
conf item to toggle periodic cleanup for rocksdb
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
865b5d7241
reorganize database crate.
...
split database Cork into unit.
split database migrations from mod.rs
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
fe91ce0601
add conf items for rocksdb repair and read-only modes.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
Jason Volk
5f11d68616
tracing instruments for ruma state res
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-09 15:26:45 -04:00
strawberry
d92e8e170f
list max cache capacity in memory-usage admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
72d983d2ec
add admin command to fetch /.well-known/matrix/support from server
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
39946beda8
add server-side support for /.well-known/matrix/support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
Matthias Ahouansou
c946352e7f
fix(sync): send phoney leave event where room state is unknown on invite rejection
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
Matthias Ahouansou
3b5794b5bd
fix(membership): check if server is in room to decide whether to do remote leaves
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
Matthias Ahouansou
6078b5ee9d
fixup! feat: support /make_join and /send_join for restricted rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
Matthias Ahouansou
d8949d55c4
refactor(state_accessor): add method to check if a user can invite another user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
70ce9c299e
bump ruma and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-09 15:26:45 -04:00
strawberry
2516d44cb1
dont 404 and respond+update with default push rules if non-existent
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
e4a987cf80
bump ruma and declare support for unstable MSC3026 (busy presence state)
...
https://github.com/girlbossceo/ruma/commit/a938640491bf2bf98196cecd4102c5749f89a554
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
db8e7e5382
TEMP: remove user_is_invited stuff
...
this is clearly unfinished right now
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Matthias Ahouansou
f0b91461a0
refactor(state_accessor): add method to check if a user can invite another user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
renovate[bot]
a8452f3ae1
chore(deps): update nixos/nix docker tag to v2.21.2
2024-04-05 22:15:16 -04:00
Matthias Ahouansou
321a6ca0fe
feat(membership): check if user already has the membership that is requested to be set
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
0307cdf2b2
bump ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
1ccc777532
bump conduwuit version to 0.1.13
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Jason Volk
ebb71b7d7c
add contains_url filter to /messages; also split out visibility filter.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-05 22:15:16 -04:00
Jason Volk
cde06125b8
immutable cache-control for media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-05 22:15:16 -04:00
strawberry
bfd91c93e0
enable presence by default, remove presence warning
...
it is now very very good
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
1b84f5a855
resolve wildcard_imports and checked_conversations lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
f0a0704a93
slight adjustments, remove some explicit annotations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Jason Volk
9cc4f3e929
split main
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-05 22:15:16 -04:00
Jason Volk
7f6c19f066
fix using same federation reqwest pool after sender deduplication.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-05 22:15:16 -04:00
Jason Volk
ca1c77d76b
refactor presence to not involve rooms.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-05 22:15:16 -04:00
Jason Volk
885224ab76
add tools for user-to-server and user-to-user visibility
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-05 22:15:16 -04:00
strawberry
3c2e8a5250
fix spaces test lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Jason Volk
568136296f
add granular conf items for all memory caches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-05 22:15:16 -04:00
Matthias Ahouansou
5c30d2b2b0
fix(membership): perform stricter checks when choosing an authorized user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Matthias Ahouansou
68e64392f0
fix(membership): remove join_authorized_via_users_server field on state update
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Matthias Ahouansou
172d71e365
check if user is joined in the room in user_can_invite
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
c803891634
better event_type checks for send_state_event_for_key_helper
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
0214caeaea
always allow count to be filled in search response
...
i fail to see any reason why we would always want
this to be None
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
a2ee6b410e
add another element_hacks feature check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
ab0182ace4
check if user is allowed to invite for join_authorized_via_users_server in join_room_by_id_helper
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
b9e442b694
use map_or in user_can_invite
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
ddcf43f1b8
replace ErrorKind::Forbidden with forbidden() non-exhaustive constructor
...
https://github.com/ruma/ruma/commit/917584e0cae4ae8642625f234f22f049bc159fee
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
13cd9c4c38
bump cargo.lock due to RUSTSEC-2024-0332, and bump ruma
...
https://rustsec.org/advisories/RUSTSEC-2024-0332
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Matthias Ahouansou
49eb418786
feat: support /make_join and /send_join for restricted rooms
...
from https://gitlab.com/famedly/conduit/-/merge_requests/618
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
Matthias Ahouansou
ed960f41ac
feat: recurse relationships (and fix some lints)
...
from https://gitlab.com/famedly/conduit/-/merge_requests/613
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
661dba688a
add trivially_copy_pass_by_ref lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
3efb3a93ca
sync hierarchy over federation MR
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-05 22:15:16 -04:00
strawberry
bd69d9b565
move invalid 200 response log to info
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-03 12:52:46 -04:00
strawberry
6800f91949
remove some services() usage on startup for accessing config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-03 12:52:46 -04:00
strawberry
bd117bdf0d
use config.allow_local_presence instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-03 12:52:46 -04:00
strawberry
d6651ab422
remove unused import
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-03 12:52:46 -04:00
K900
8134dd9151
Reduce number of separate sources of truth for presence disabled-ness
...
Instead of checking if we should update every time we want to update,
call the updater every time and decide internally.
2024-04-03 12:52:46 -04:00
strawberry
34fe7b7369
drop /hierarchy requests to debug
...
this is not helpful informational logging
```
2024-04-02T04:40:52.590444Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking thomcat.rocks for /hierarchy
2024-04-02T04:40:52.628248Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking hackingfor.eu for /hierarchy
2024-04-02T04:40:52.808526Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking matrix.org for /hierarchy
2024-04-02T04:40:52.920936Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking matrix.org for /hierarchy
2024-04-02T04:40:52.959362Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Got response from matrix.org for /hierarchy
Response { children: [], inaccessible_children: [], room: SpaceHierarchyParentSummary { canonical_alias: Some("#cybersec-whonix:matrix.org"), name: Some("Whonix"), num_joined_members: 329, room_id: "!OJFkLJksWastbfdRuf:matrix.org", topic: Some("| Part of the Cybersec matrix.org community (#cyber-space:matrix.org) | RULES: https://cybersec-rules.thomcat.rocks | Whonix-focused room | Off-topic chat is fine. Keep it brief and/or move it to #cybersec-offtopic:matrix.org"), world_readable: true, guest_can_join: false, avatar_url: Some("mxc://matrix.org/DMJtrQdhQHKxeODrSibtrczX"), join_rule: "public", room_type: None, children_state: [], allowed_room_ids: [] } }
2024-04-02T04:40:52.959762Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking matrix.org for /hierarchy
2024-04-02T04:40:53.109611Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Got response from matrix.org for /hierarchy
Response { children: [], inaccessible_children: [], room: SpaceHierarchyParentSummary { canonical_alias: Some("#lockpicking:matrix.org"), name: Some("Lockpicking"), num_joined_members: 284, room_id: "!uEYjSxQOZnHEkiurTP:matrix.org", topic: Some("| Part of the Cybersec matrix.org community (#cyber-space:matrix.org) | RULES: https://cybersec-rules.thomcat.rocks | Off-topic chat is fine. Keep it brief and/or move it to #cybersec-offtopic:matrix.org"), world_readable: false, guest_can_join: false, avatar_url: Some("mxc://thomcat.rocks/cSeFfMLUdjymKdkUmXtIQTjf"), join_rule: "public", room_type: None, children_state: [], allowed_room_ids: [] } }
2024-04-02T04:40:53.109880Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking matrix.org for /hierarchy
2024-04-02T04:40:53.261581Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Got response from matrix.org for /hierarchy
Response { children: [], inaccessible_children: [], room: SpaceHierarchyParentSummary { canonical_alias: Some("#cybersec-rss:matrix.org"), name: Some("Cybersecurity-RSS"), num_joined_members: 347, room_id: "!IVHnAZkhJOhdZxlHRA:matrix.org", topic: Some("| Part of the Cybersec matrix.org community (#cyber-space:matrix.org) | Suggestions to our RSS feed list welcome at #cybersecurity:matrix.org"), world_readable: true, guest_can_join: false, avatar_url: Some("mxc://thomcat.rocks/ugdubBloOkVCYxqFzdVoPwcV"), join_rule: "public", room_type: None, children_state: [], allowed_room_ids: [] } }
2024-04-02T04:40:53.305166Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Got response from matrix.org for /hierarchy
Response { children: [], inaccessible_children: [], room: SpaceHierarchyParentSummary { canonical_alias: Some("#cybersec-whonix:matrix.org"), name: Some("Whonix"), num_joined_members: 329, room_id: "!OJFkLJksWastbfdRuf:matrix.org", topic: Some("| Part of the Cybersec matrix.org community (#cyber-space:matrix.org) | RULES: https://cybersec-rules.thomcat.rocks | Whonix-focused room | Off-topic chat is fine. Keep it brief and/or move it to #cybersec-offtopic:matrix.org"), world_readable: true, guest_can_join: false, avatar_url: Some("mxc://matrix.org/DMJtrQdhQHKxeODrSibtrczX"), join_rule: "public", room_type: None, children_state: [], allowed_room_ids: [] } }
2024-04-02T04:40:53.323257Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking thomcat.rocks for /hierarchy
2024-04-02T04:40:53.323672Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking matrix.org for /hierarchy
2024-04-02T04:40:53.369721Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Asking matrix.org for /hierarchy
2024-04-02T04:40:53.529250Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Got response from matrix.org for /hierarchy
Response { children: [], inaccessible_children: [], room: SpaceHierarchyParentSummary { canonical_alias: None, name: None, num_joined_members: 1463, room_id: "!aBXqGDWIxVYeYxVbRu:matrix.org", topic: Some("| Part of the Cybersec matrix.org community (#cyber-space:matrix.org) | The room needs urgent attention? @ all the mods! | RULES: https://cybersec-rules.thomcat.rocks | \"you seem to be completely in lack of basic knowledge of how a computer or any programming language operates, to the point that any attempt of discussing any security measures is a complete waste of time\""), world_readable: false, guest_can_join: false, avatar_url: Some("mxc://thomcat.rocks/DjRWzuYjLkScQYPySYNedlFr"), join_rule: "public", room_type: None, children_state: [], allowed_room_ids: [] } }
2024-04-02T04:40:53.546581Z INFO http_request{path=/_matrix/client/v1/rooms/:room_id/hierarchy}: conduit::service::rooms::spaces: Got response from matrix.org for /hierarchy
Response { children: [], inaccessible_children: [], room: SpaceHierarchyParentSummary { canonical_alias: None, name: None, num_joined_members: 1463, room_id: "!aBXqGDWIxVYeYxVbRu:matrix.org", topic: Some("| Part of the Cybersec matrix.org community (#cyber-space:matrix.org) | The room needs urgent attention? @ all the mods! | RULES: https://cybersec-rules.thomcat.rocks | \"you seem to be completely in lack of basic knowledge of how a computer or any programming language operates, to the point that any attempt of discussing any security measures is a complete waste of time\""), world_readable: false, guest_can_join: false, avatar_url: Some("mxc://thomcat.rocks/DjRWzuYjLkScQYPySYNedlFr"), join_rule: "public", room_type: None, children_state: [], allowed_room_ids: [] } }
```
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-03 12:52:46 -04:00
strawberry
667db8e8a3
output error if sending to trusted key server failed
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-03 12:52:46 -04:00
strawberry
935202eaa3
move panic = "abort" to release-high-perf build profile
...
i don't really want to do this but broken dependencies
are making this unavoidable
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
a20b071a8a
add manual_let_else lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
Matthias Ahouansou
c31fb7134a
fix: do not expect that all http requests are valid reqwest requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
Jason Volk
93a43a0eda
add conf item for exact amount of startup netburst.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-02 00:32:41 -04:00
Jason Volk
0ba8d1318d
move presence up two levels out of rooms.edus and rooms.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-02 00:32:41 -04:00
Jason Volk
9790477b0e
move typing feature up one level out of rooms.edus.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-02 00:32:41 -04:00
Jason Volk
89a919ce75
move read_receipt feature up one level out of rooms.edus.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-02 00:32:41 -04:00
Jason Volk
22b123de7b
improve tracing attributes in sending stack.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-02 00:32:41 -04:00
Jason Volk
a87e7d8e17
split out, dedup, cleanup sending service methods
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-02 00:32:41 -04:00
Jason Volk
3c09313f79
move and reorganize sending codepaths; no functional changes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-04-02 00:32:41 -04:00
strawberry
a72ea54d11
update differences.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
e75fb17899
ci: dont run docker stuff if not a PR *and* both env variables are not empty
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
ed5be58f9f
ci: only run dockerhub steps if username and token are not empty
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
95ca7bc3e4
move complement dir to tests dir
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
Matthias Ahouansou
2a48e562e6
fix: return error when trying to unregister unknown appservice id
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
51afde9e98
admin cmd to send a request/ping to /_matrix/federation/v1/version
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
738878f6ff
bump conduwuit version to 0.1.12
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
fec4b3c953
delete conduit_bin feature
...
i dont know what's the point of this
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
a0ad911688
stop sending make_join requests after 50 failures
...
this is a very generous number
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
af6c72fa84
stop sending make_join if 15 servers responded with unsupported/invalid room version
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
ce414023a4
default to None room topic if invalid/redacted for spaces too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
Matthias Ahouansou
c61aee4f1c
fix: reject /register requests when there is no token and the type is appservice
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
7a1a271518
dont allow m.call.invite timeline events in public rooms
...
also simplifies the encrypted event check (we dont
need to convert anything here)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
renovate[bot]
71cea1c567
fix(deps): update rust crate image to 0.25.1
2024-04-02 00:32:41 -04:00
strawberry
ff3bc3fb09
on new room creations: only allow moderators to call public rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
72b60c4770
add lockdown_public_room_directory config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-04-02 00:32:41 -04:00
strawberry
00ddc1c88e
generalise and cleanup docs a bit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
Jason Volk
114324e26c
remove write_lock around rocksdb
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-30 22:06:18 -04:00
strawberry
141a6bc73e
dont panic when failing to create admin room response/PDU
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
712cdef6c7
drop url_preview_max_spider_size to 384KB
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
9cd25db955
list resolver caches in memory-usage admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
89e3d17e65
update differences.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
Jason Volk
18c34434bc
add outgoing federation typing and conf items
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-30 22:06:18 -04:00
Jason Volk
4a57592378
add clamp util.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-30 22:06:18 -04:00
Jason Volk
4becbed2a7
refactor sending interface stack
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-30 22:06:18 -04:00
Jason Volk
f956e8c3b5
move and deduplicate read receipt flusher.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-30 22:06:18 -04:00
strawberry
6fa2e0814c
dont ignore all tracing logs for sentry
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
350d25a368
bump cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
2b3ee3bf0b
set allow_incoming_presence to true by default
...
this is harmless and is a better UX anyways
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
f818c368c0
config options for HTTP compression on tower+reqwest
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
44435f76fe
bump conduwuit version to 0.1.11
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
b437e47d8c
partial tower/tower-http sentry and gzip/brotli compression
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
renovate[bot]
3103ad2205
chore(deps): update actions/configure-pages action to v5
2024-03-30 22:06:18 -04:00
strawberry
b36c397702
mark msc2285 (private read receipts) as supported
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
60623cd14b
dont return bad_config for private room directory requests
...
this would log as an error and as HTTP 500
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
b39aa00a9b
add trusted keyservers to backfill from if in room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
babf29d217
fix sentry features, add sentry_traces_sample_rate
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
835c2112c8
dont depend on openssl, add sentry_tracing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
47889410eb
use CONDUIT_VERSION_EXTRA in endpoints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
87a7c8d9e8
add opt-in sentry logging, improve main function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
93b03fe338
use true_fn for startup_netburst option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
07135cc849
add two pedantic clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
Jason Volk
125ff21c88
add conf item to toggle startup netburst (for developers).
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-30 22:06:18 -04:00
Jason Volk
3cf67f3993
disambiguate logging macros by locking log crate
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-30 22:06:18 -04:00
strawberry
cf8727a5f8
only test long_file_names_works if using sha256_media feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
77475dacf5
bump rocksdb, switch to fork of rocksdb, bump flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
renovate[bot]
80f624c0fb
fix(deps): update rust crate serde_html_form to 0.2.6
2024-03-30 22:06:18 -04:00
strawberry
98e480ddcd
revert checking appserice destination against ip_range_denylist
...
this is the url field in the appservice registration file,
this is almost always localhost and the admin should
be vetting the appservice registration yaml file before
registering it anyways.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
renovate[bot]
e4d1d4e86d
fix(deps): update rust crate tokio to 1.37.0
2024-03-30 22:06:18 -04:00
renovate[bot]
73bdf3c5cc
chore(deps): update aquasecurity/trivy-action action to v0.19.0
2024-03-30 22:06:18 -04:00
strawberry
ee3160dd1b
allow manual_unwrap_or_default lint here
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
8915b6469d
forbid admin room from being made public
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
38c2e5567e
remove unwrap from admin room build_and_append_pdu
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
1893b45de3
propagate errors if we fail processing admin room subcommands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
48d1a3af3c
resolve the last few relevant pedantic clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
fa71dd4b4c
use body.dir for relations now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
92dbe82675
remove unnecessary clone from into_iter
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
6aaf169c45
fix wrong order of logic, prefer room alias server first if available
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
e9793868ec
add recursion_depth None for now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
0d50dfd7cf
bump ruma and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
567b24e410
add /_conduwuit/server_version route
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
4f1f6fa56f
drop -alpha from version string
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-30 22:06:18 -04:00
strawberry
051668b62b
use rusqlite commit before c-strings were added
...
this is a 1.77.0 rust feature, this would require
bumping MSRV
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
4b4b63eda4
bump cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
renovate[bot]
50c870cc1d
chore(deps): update docker docker tag to v26
2024-03-26 22:24:24 -04:00
renovate[bot]
b252572db4
fix(deps): update rust crate clap to 4.5.4
2024-03-26 22:24:24 -04:00
renovate[bot]
cf474d96f0
fix(deps): update rust crate serde_json to 1.0.115
2024-03-26 22:24:24 -04:00
renovate[bot]
aa2af6bf93
chore(deps): update nixos/nix docker tag to v2.21.1
2024-03-26 22:24:24 -04:00
strawberry
53c0cfd70e
docs: fix a few headlines
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
3d0f0cc1ce
add query_all_nameservers config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
Jason Volk
cb12f285e9
improve incoming http request and other logging
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
Jason Volk
0df1f84cc8
set trust_negative_responses in nameserver config.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
strawberry
e6c34b982f
fix git blame ignore revs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
08a21b8ee2
better maximize_fd_limit test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
Jason Volk
edb4468771
clear destinations cache in clear_caches fn.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
strawberry
c31de51efc
ignore rev 16294831 from blame
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
868976a149
use chain_width 60
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
9d6b070f35
Revert "update rustfmt"
...
This reverts commit e517f2bad8c8a4181f70126067ea49d8b3ad1635.
2024-03-26 22:24:24 -04:00
Jason Volk
07596d866f
update rustfmt
2024-03-26 22:24:24 -04:00
Jason Volk
525379f8ac
enable caching in hickory_dns w/ configurables.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
Jason Volk
21874f8ab7
eliminate gai resolver.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
Jason Volk
f5da75e476
split structs from service/globals/mod.rs into separate units
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
Jason Volk
f3bc87c4e6
elaborate on RocksDB recovery modes in example-config.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
strawberry
24faf4dd26
revert 0297cfe307
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
6f7113950b
raise too-many-lines-threshold to 700 (for now?)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
3f9825788e
check URL preview requests against ip_range_denylist
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
bef0459fb8
bump conduwuit version to 0.1.10
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
4be37fbe8d
only remove event_id field in room v1 and v2
...
no this doesnt make those rooms work,
just a why not thing
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
0863bec098
allow non-joined users to get aliases of world_readable rooms
...
`user_can_see_state_events` checks if user is joined,
or if room visibility is world_readable
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
380b61184d
reduce high presence timeouts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
32ab88e68a
check the URL and response remote address for ip_range_denylist
...
the previous only checked the server_name
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
fbefbd57be
implement include_state search criteria
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
c2e89b939c
add element web search count hack (?)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
f4146de17d
add feature for smElement client hacks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
55813e90bf
add EditorConfig vs code extension to recommendations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
Jason Volk
d3c9f5595a
split admin commands into modules.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
Jason Volk
6b1933914d
add file listing to database abstraction.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-26 22:24:24 -04:00
strawberry
bdf3997de5
pin ruma rev
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
7bd56765ef
fix some more pedantic clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
a7e6fe8b60
fix infinite loop lint
...
this is actually better to do CPU-wise anyways
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
8dad4461b4
log if our trusted key server is broken for batch requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-26 22:24:24 -04:00
strawberry
101cb34f9a
make rocksdb_recovery_mode a u8, document it
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Jason Volk
331c0b37cd
add conf item for alternate rocksdb recovery modes.
2024-03-23 01:49:27 -04:00
strawberry
a57f4db207
bump default_sender_timeout from 75 seconds to 180
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
27d6ce3cc5
log path parameters when try http request fails
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
6e0d6c78fb
use BTreeMap again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
27d83a51f2
remove unnecessary match arm for space invite join_rule
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
renovate[bot]
8fab2cd94a
fix(deps): update rust crate regex to 1.10.4
2024-03-23 01:49:27 -04:00
strawberry
7fbbdf83ab
forgot to fix these ones too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
3bc2af7d26
resolve and add even more pedantic clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
0bb5115bd1
resolve clippy match_bool
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
9d0b647911
resolve couple pedantic clippy lints, remove unnecessary qualifications
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
6d7ef80aba
format cargo.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
931e1cad06
ci: make docker username and GHCR variables
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
9832f11074
add zed to .gitignore
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
d8c6c2930e
update differences.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
23ee479062
only allow up to info level logging on release builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
c5afc6bf98
bump ruma and bytes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
0384b48b4a
add main.rs test for unix maximize_fd_limit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Charles Hall
74c34e885e
allow including extra info in --version output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
9f7431c08f
remove rocksdb prefix extractor
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Timo Kösters
710a6b5c6f
refactor: remove previous typing implementation and add sync wakeup for new one
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Matthias Ahouansou
60f2471f59
refactor appservice type stuff
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
7c9c5b1d78
log room for backfill_if_required requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
d7fc6874d1
Revert RocksDB 9.0.0 update
...
there seems to be a regression, likely from https://github.com/facebook/rocksdb/issues/12361 / https://github.com/facebook/rocksdb/pull/12309
```
[1/0/2 built] building rocksdb-9.0.0 (configurePhase): -- Detecting CXX compile features - donedirenv: ([/Users/strawberry/.nix-profile/bin/direnv export zsh]) is taking a while to execute. Use CTRL-C to give up.
error: builder for '/nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv' failed with exit code 1;
last 10 log lines:
> -- Found lz4: /nix/store/cafwv4439qbm2ij04mpc7xz5m3f7mfix-lz4-1.9.4/lib/liblz4.dylib
> CMake Error at /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
> Could NOT find zstd (missing: ZSTD_INCLUDE_DIRS)
> Call Stack (most recent call first):
> /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
> cmake/modules/Findzstd.cmake:17 (find_package_handle_standard_args)
> CMakeLists.txt:167 (find_package)
>
>
> -- Configuring incomplete, errors occurred!
For full logs, run 'nix log /nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv'.
error: 1 dependencies of derivation '/nix/store/ir8jf2wic98iymjlk7d2i1kjjsgv15v2-nix-shell-env.drv' failed to build
```
happens in both rust-rocksdb and our fork of rust-rocksdb
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
ab5552ec6c
Revert "bump rocksdb in nix flake"
...
This reverts commit 4475c1ba25 .
2024-03-23 01:49:27 -04:00
strawberry
fdb0ccc9dc
bump rocksdb in nix flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
10e1801974
remove/update incorrect example config comment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
f27a2bace8
bump conduwuit version to 0.1.9
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
37c040dc77
fix incorrect v1 URL path for URL previews
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
90b8ac0c64
follow 3 redirects for federation requests instead of 2
...
just in case
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
33dfa64963
follow 3 redirects for URL previews instead of 6
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
713b1b23c9
document new timeout config options
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
9ed3e64a60
oops forgot to commit these new files
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Jason Volk
9334f938ae
refactor reqwest client suite w/ conf items.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-23 01:49:27 -04:00
Jason Volk
61b1d6d869
add corks to coalesce writes for several heavy calltrees.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-23 01:49:27 -04:00
Jason Volk
3f60365cc6
add write buffer corking using rocksdb manual_wal_flush.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-23 01:49:27 -04:00
Charles Hall
3969b667ba
make chapter name reflect file name
...
Personally I think this makes more sense anyway.
2024-03-23 01:49:27 -04:00
Charles Hall
52fb4d9752
reduce scope of nixos documentation
...
There are so many ways to do this we realistically shouldn't bother
describing any of them, especially because people should be learning all
the options and choosing the one that suits them best anyway.
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
3059801ed8
rename Docker header
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Charles Hall
ed96bd2053
rename "simple" deployment to "generic"
...
The main thing this section is really useful for is explaining how to
configure various reverse proxies, which applies to basically anything.
Also, remove all the language about this being "recommended", because
nothing in this documentation is actually tested in CI.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Charles Hall
58f113451f
remove section about cross compilation
...
It is very stale. Please just use Nix. Trying to do it outside of Nix
will be an exercise in frustration, I guarantee it.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
2e713753d5
bump ruma, rust-rocksdb, and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Charles Hall
831c452af9
avoid duplicating links in documentation
...
Because one might forget to update them. I did, initially, which is why
I'm making this change.
2024-03-23 01:49:27 -04:00
Charles Hall
2de47fc9c0
add mdbook to the devshell
2024-03-23 01:49:27 -04:00
renovate[bot]
99c38d2a5e
fix(deps): update rust crate jsonwebtoken to 9.3.0
2024-03-23 01:49:27 -04:00
strawberry
66a36a5576
significantly drop URL preview timeouts
...
theres no reason for us to spend so long trying to get
a preview
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
2470fa91d8
raise connection pooling idle timeout to 50 seconds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
1e07f417ba
raise get_keys_helper timeout even more
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
4dfefda03b
update book.toml for conduwuit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
55708949cc
slight request logging improvements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
5ed55da0dd
auto join rooms from admin room created users too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
f06f30ca2a
fix wrong error message about presence
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
9715b07b38
skip rooms we have not joined before for auto-join
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
dda3b0e7e2
default to None if "name" in m.room.name is empty
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
3e902836cc
simplify heroes get_avatar
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
7066b7b428
feat: automatically join rooms on registration
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
2ca357e44c
use unwrap_or_default if timestamp conversion fails
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
694986db29
check+clarify online backups are RocksDB only
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
7af78cf708
return helpful message instead of empty message if no backups
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
f9a60bf48b
make database_backup_path a PathBuf
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
strawberry
5a434e7f3d
make database_path a PathBuf
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
renovate[bot]
ab420e8a90
chore(deps): update docker docker tag to v25.0.5
2024-03-23 01:49:27 -04:00
strawberry
f7e8054a00
fix lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Jason Volk
fa942aedd7
add database backup with admin commands
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-23 01:49:27 -04:00
strawberry
ece817c562
db_cache_capacity_mb defaults to 256.0 now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Jason Volk
e9d67ecb53
reconfigure and optimize rocksdb options.
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Jason Volk
544c38341b
add sync() to db abstraction for fsync(2).
2024-03-23 01:49:27 -04:00
Jason Volk
d4cfee4e71
add rocksdb env to options. keep options in engine state.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-23 01:49:27 -04:00
Jason Volk
af605a03b7
add abstract fallbacks for kv batch methods.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-23 01:49:27 -04:00
strawberry
10e2eb5e08
bump rocksdb, deps, switch to hickory dns/resolver
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
renovate[bot]
5eb4010e03
fix(deps): update rust crate serde_yaml to 0.9.33
2024-03-23 01:49:27 -04:00
strawberry
a405f10f82
fix docs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-23 01:49:27 -04:00
Jason Volk
7b15f85c62
fix zealous client connection close (regression 809c9b4481)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-03-23 01:49:27 -04:00
strawberry
7809f0a6ae
bump ruma and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
85cb559002
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
61f49ecf0e
rename forbidden_room_names to forbidden_alias_names
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
5e880ac44a
declare various missing server capabilities
...
this should fix FluffyChat password resets, and
other possible client issues that expose features
based on server capabilities.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
7f7bd91e8a
add comment for future org.matrix.msc2285.stable
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
96e1938616
remove unnecessary assert for test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
694b926366
move docs/gh pages into separate workflow
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
c8c3a9ed43
docs: s/conduit-example/conduwuit-example
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
896c372cfe
disable broken assertions_on_result_states lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
2be43d3712
fix failing to register new appservice accounts
...
this is such a terribly named enum field.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
0301c7c083
fix Appservice AccessTokenOptional authentication type endpoints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
a2a7b81076
fix test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
ea6425712a
dont setup github pages if pull request
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
19f313b91d
deploy book to github pages
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
e2827a1a79
build documentation/book in github actions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
b1b88601ab
docs: dont point everyone to element
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Samuel Meenzen
e9ce642795
docs: build docs using mdBook, build in CI, deploy to gitlab pages
...
squashed from https://gitlab.com/famedly/conduit/-/merge_requests/604
added differences.md
Co-authored-by: Charles Hall <charles@computer.surgery >
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
a7966b8f05
config option to allow incoming remote read receipts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
b78d79a45a
ignore deactivated users and remote user profiles wih forbidden_usernames
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
8c3f946e97
bump conduwuit version to 0.1.8
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Jason Volk
abceae26de
add flush suite to sending service; trigger on read receipts.
...
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Jason Volk
95ea665649
complete federation destination caching preempting getaddrinfo(3).
...
fixed some clippy lints and spacing adjusted
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Jason Volk
6fe0ea05b8
add remove_batch with transaction to database abstraction.
...
adjusted to make building sqlite happy again
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Jason Volk
ba03d55879
clear dns and tls-override caches from !admin command.
...
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
9b5c4697bf
bump async-trait and ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
16572a868a
slight inclusive wording changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
b079b94715
track media uploads by user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
19135eaa58
document forbidden room aliases and usernames
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Matthias Ahouansou
e7c6b8c91b
feat(spaces): hierarchy over federation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
1ecbf55d68
check allow_federation in send_federation_request
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Matthias Ahouansou
4c841cd909
refactor: check if federation is disabled inside the authcheck where possible
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
Matthias Ahouansou
c48535ef32
fix: avoid panics when admin room is not available
...
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
5473631e1d
admin command to see a room's full state from our database
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
de8f773620
slight wording updates
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
strawberry
b4fa306a20
remove rocksdb optimize_level_style_compaction
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-19 00:17:41 -04:00
renovate[bot]
930bf3891c
fix(deps): update rust crate figment to 0.10.15
2024-03-16 11:18:07 -04:00
strawberry
8d8467a4ea
add legacy v1 routes for the remaining media endpoints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
c6cf3589f4
check if rocksdb_max_log_files is 0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
Samuel Meenzen
623478fa2d
chore: add EditorConfig
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
a9059afe21
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
1c67a1da45
update README.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
99efa6d622
bump rust-rocksdb, and transitive deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
8cc23671e0
treat non-appservice registrations as None auth
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
da9fdd2a60
add unimplemented default impl to fix sqlite building
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
1bfc5336f7
remove some conditional compilation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
8e3b9a3d17
Revert "switch to hickory-dns / hickory_resolver"
...
This reverts commit 2ea524bfab .
2024-03-16 00:09:48 -04:00
strawberry
dd1bdf0698
bump conduwuit version to 0.1.7
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
935f83af98
dont allow GetRemotePdu server to be ourselves
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
b0bee8f6ae
drop sync requests to debug
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
5ea1f18776
rocksdb_max_log_files must not be 0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
0bed5ca506
remove unnecessary variable qualifications
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
01b722beb0
add room alias server names for backfill, self check server name
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
9b2ccff7dd
add room ID server_name as backfill server, make servers a vector
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
690928ec81
(hopefully?) implement AuthScheme::AppserviceToken
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
ad8d1dc68a
silence unused_qualification clippys warning due to async traits
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
416c6b1778
bump ruma (cargo update)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
0ac2092888
check if federation is enabled in GetRemotePdu
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
f1507a4522
handle GetRemotePdu response as backfilled PDU
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
6c9f47a968
some more rocksdb conditional compilation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
a3c24bcc31
add rocksdb_bottommost_compression_level config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
9a9f7b9c54
add RocksDB rocksdb_compression_level and rocksdb_bottommost_compression
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
9dc4290438
split GetPdu and GetRemotePdu, handle response as incoming PDU
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
Jason Volk
10336f9af6
use WriteBatchWithTransaction for batched insertions.
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
fcca352795
apply Read/Write/FlushOptions where available for future usage
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
20c089b7ed
simplify/tune rocksdb options, config option for compression algo
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
Timo Kösters
6f77f7ee9e
dont leak users in room directory if sender is not allowed to see them
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
6df7f976db
log sync sender_user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
be5c13ab0d
make config PathBuf instead of String
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
0db3a43d1f
add multi_get (multi_get_cf) for rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
Samuel Meenzen
238c371ef4
fix(ci): avoid duplicate pipelines
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
e174686eeb
bump misc deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
Charles Hall
3160a36634
refactor clap into a separate file
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
5454b653fe
switch to hickory-dns / hickory_resolver
...
trust-dns rebranded to hickry-dns
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
ad54311c2e
attempt to use example config for debian package
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
3f01293a6f
fix User-Agent
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
307d42ccc7
disable update check by default
...
save the few bytes of bandwidth for something else
also now that we send our User-Agent, it is
technically sending conduwuit versions now
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
4bfcbf2b57
update image(-rs)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
c26ba6437e
clearly document where this code came from
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
renovate[bot]
4781e232db
fix(deps): update rust crate serde_html_form to 0.2.5
2024-03-16 00:09:48 -04:00
strawberry
c2317d5e83
use CFG when building on Windows
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
ccd149245f
adjust dev build args to speed up builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
33f0d111bc
use main branch for rusqlite
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
7d825690f7
admin cmd to fetch PDU from remote server
...
does not append to timeline/database yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-16 00:09:48 -04:00
strawberry
e888a0a745
drop dead server log spam to debug
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
742c869cc2
dont build default features for jemalloc
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
e435d48b6f
ci: run cargo deb version
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
efe6a90159
ci: run cargo audit version, run audit earlier
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
9ed7d36e8e
ci: run cargo doc for all features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
39d9cc9d33
fix sqlite lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
82247f7ab9
fix test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
781853603c
test all features in engage (CI)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
4a6d17b835
fix rocksdb hash
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
2f45ba8eac
link to CI page for artifacts
...
i need to figure out how to do programmatic releases soon
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
bed6953601
add CI status badge to README
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
0fb87cdbf8
document we officially support various OS's
...
i build/develop on a mac, i have a windows machine,
my servers run linux and i do prod builds on linux,
and BSD support is generally inherent with linux
and mac.
i don't think it hurts or would be difficult for me
to say i support all of these.
upstream conduit only officially supports Linux
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
a49e79caff
resolve windows-only lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
d52f03414e
add commandline arg to specify a conduwuit config file
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
aec7097cd3
tokio signals are actually used for CTRL+C
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
26982fbe05
make these variables unix only too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
fee6cad778
s/rocksdb/rust_rocksdb, fix copy paste errors
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
d84378db18
build unix socket support on unix platforms only
...
yes windows technically supports unix sockets,
but its not as good or the same as actual
nix platform unix sockets
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
39aef8d1b9
dont build sha2, opentelemetry, or zstd code if unused
...
reduces unnecessary crates being compiled. splits them
into features.
i have yet to see anyone use conduit's opentelemetry
stuff, and realistically those people who do
performance benchmarking and measurements will be
building stuff anyways so they can just enable this
feature.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
958b738e5a
drop querying _matrix SRV record to debug
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
3f06725261
reformat and improve cargo.toml significantly
...
makes it a LOT more readable, and found some ways
to reduce unnecessary crates being built.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
04e5d2c20a
document github ci in rust-toolchain.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
cd2f00e012
format flake, use rust-rocksdb fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-10 13:03:28 -04:00
strawberry
4d4c2cf5f8
bump conduwuit version to 0.1.6
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 18:09:41 -05:00
strawberry
5c94caa3bb
temp: dont fetch remote profiles for remote membership updates
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 18:09:41 -05:00
renovate[bot]
e4789cfc23
fix(deps): update rust crate reqwest to 0.11.25
2024-03-08 18:09:41 -05:00
strawberry
e4370b2f6f
bump ruma to fix Element Android URL previews
...
https://github.com/ruma/ruma/pull/1743
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 18:09:41 -05:00
strawberry
1a40171bc1
log warning for failed preview gen, better error message
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 18:09:41 -05:00
strawberry
1911f5a8fa
fix cargo doc lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
c58f93105a
implement legacy "v1" media request routes
...
if https://github.com/ruma/ruma/issues/1240 is to
be trusted, there are apparently still servers
and clients that may call these endpoints.
i'm unable to read the history of that matrix.to
link so i don't know the full context, but this
is trivial to implement so..
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
496a9c7af8
resolve some pedantic lints, reduce some allocations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
507baf20fa
bump conduwuit version to 0.1.5
...
lots of new stuff
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
c44d317907
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
Matthias Ahouansou
5ab76a1332
update ruma appservice Registration type MR
...
from https://gitlab.com/famedly/conduit/-/merge_requests/583
and fixed panic from blocking async call in timeline/mod.rs
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
Timo Kösters
019a82850d
improvement: do not save typing edus in db
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
a47923820c
bump rusqlite, ruma, and http
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
7c1624931d
remove various unnecessary qualifications
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
aedb5966fe
resolve nightly performance assigning_clones lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
4dfd5a7c15
add AuthScheme AccessTokenOptional in ruma_wrapper
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
5a15dab7a9
bump ruma and cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
dd22a14147
bump CI deps (CVE-2024-27297 / GHSA-2ffj-w4mj-pg37)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
Samuel Meenzen
d593d1825b
feat: run ci on demand to prevent unnecessary job executions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
f991dd381f
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
99fdf699ae
finish query_trusted_key_servers_first option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
d2060c8647
add config option for max RocksDB LOG files
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
7bfb86a851
set default rocksdb log level to error
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
e90cd48f61
remove unnecessary pubs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
139b0fdc3e
add global flush function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
7cbb0139f2
implement flush() and cleanup() for rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
0df17a4103
remove unused lifetimes for sqlite functions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
ce3e61a39a
document cleanup_second_interval, change default to 1800 seconds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
b5ef72826e
dont run perform_cleanup twice on shutdown
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
3b90932cff
bump deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
21f35d46c8
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
da34b7f90f
fix unused_must_use lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
f3df9437c2
allow broken lint (?)
...
the braces are required. removing them like
the suggestion says breaks everything.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
5c225ccbe7
mention RocksDB Direct IO in example config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
9c789bd82f
(hopefully correct) check if ATTIC_ENDPOINT is set in gh repo vars
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
446cb24c0b
use Default value of 0 if BE array is not valid
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
6c7bc8d7dd
add back more verbose nix build logging (-L)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
c8289f0886
partially make other docker compose files consistent
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
Tom Foster
37b6c1e7f7
Add extra example options
2024-03-08 12:51:21 -05:00
Charles Hall
a4ec0daafa
make CI more efficient (github and gitlab)
...
squashed from https://gitlab.com/famedly/conduit/-/merge_requests/596
ported the relevant parts to GitHub Actions
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
Matthias Ahouansou
4ec2d3ecb5
refactor: use async-aware RwLocks and Mutexes where possible
...
squashed from https://gitlab.com/famedly/conduit/-/merge_requests/595
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
46b543eebe
add .git-blame-ignore-revs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
f419c64aca
add rustfmt.toml, format entire codebase
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
9fd521f041
partial impl of query_trusted_key_servers_first option
...
65% finished
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
2832d8cb93
make CONDUIT_CONFIG optional
...
retains compatibility for container users
who set it to empty.
if the variable is unspecified, it will
use the CONDUIT_ variables as normal.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
3cfa34d8b8
update config comment for rocksdb threads
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
90d90c46da
use get_physical for only physical core count
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
0352ea7dda
add rocksdb parallelism threads config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
9251727d57
return proper error if fail fetching and dont have profile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
465533d32b
attempt keeping track/cache remote profiles locally again
...
also fixes logic error where we always say
we couldnt find the profile
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-08 12:51:21 -05:00
strawberry
b527ec4666
Revert "bump nix flake"
...
This reverts commit 68f2c637da .
2024-03-03 22:20:37 -05:00
strawberry
daaf4b7bea
add basic loopback address container checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
9202f18521
bump nix flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
ffcdbe2cc7
bump conduwuit version to 0.1.4, adjust example config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
023c16e4f4
specify if registration token is set in show-config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
d1b919ed07
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
608aa83ed2
check if invited user is an admin before rejecting instead
...
i think this makes more sense tbh than what synapse does
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
34e8fd38cf
extend room banning to local+remote room invites
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
ea66bff46b
config option to block non-admin room invites
...
works just like block_non_admin_invites from synapse
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
c97483dbd3
fix rocksdb-specific lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
e2c7afe69c
go through a ton of pedantic clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
33727a3423
replace database assert!s with if statements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
624b866ed5
adjust lints for CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
04d16ac544
remove two unnecessary string heap allocs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
a9f714ae8d
remove single-use lifetimes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
56f36fe7a7
add a lot more rustc and clippy workspace lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
71654f26b9
add todo for MockedKVDatabase get_all_media_keys
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
cde6fdd741
resolve or_fun_call clippy lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
93cc98a04c
fix cargo doc lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
d5bfef18a4
fix 1.77 clippy warning (multiple_bound_locations)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
6022d20797
remove useless rustfmt.toml
...
if it ends up being useful, add it back
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
103df55a43
dont use default features for argon2, dev build speedup
...
this seems to reduce a few crates when building
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
c7d950a52c
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
cd6a6b308b
remove unnecessary clone
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
27f61a2dee
add missing comment slash
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
b26c593a2a
adjust max rocksdb LOG files based on hard drive or SSD option
...
keeps 3 LOG files at most if on hard drive, else keeps 20
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
86de649742
cargo.lock maintenance
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
ee548bd2e7
admin command to delete all remote media within the past x time
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
5c94c9c0d4
bump ruma and base64
...
base64 0.22.0 has decoding perf improvements
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
3f4f0b0d3b
adjust nix build script for github actions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
dd57ce7d0c
bump trivy
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
5b6d05f2db
add missing CI error check, add package permission
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
strawberry
9bcbccc391
bump gitlab CI nix version
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-03-03 22:20:37 -05:00
sininenkissa
e71855cd0b
make conduwuit show up as the server software name on /_matrix/federation/v1/version ( #186 )
...
conduwuit > /_matrix/federation/v1/version
Co-authored-by: June <june@girlboss.ceo >
2024-03-01 19:29:21 -05:00
strawberry
82f10214b3
remove all unused lifetimes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-28 13:56:19 -05:00
strawberry
abf41f4c79
check if specified user belongs to us
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-28 13:56:19 -05:00
strawberry
5a8abaa54d
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-28 13:56:19 -05:00
strawberry
ee4f0a0ae5
admin cmd to list all rooms a user is in
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-28 13:56:19 -05:00
strawberry
fb53849b9d
adjust the nix README a bit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-28 13:56:19 -05:00
Timo Kösters
f0ae99125a
fix: avoid panic when client is confused about rooms
2024-02-28 13:56:19 -05:00
Timo Kösters
8e0f7b0d0a
Avoid federation when it is not necessary
2024-02-28 13:56:19 -05:00
olly1240
3d4ed3e4fc
Fixed nginx proxy_pass directive
2024-02-28 13:56:19 -05:00
strawberry
3c12c2b6ca
fix: add top level "redacts" key for v11 redactions
...
at least with Element Web: they still rely on the
"redacts" top level key. it was reported that
federated redactions were not working for v11 rooms
with conduwuit. after adding back the top level
key when appending a PDU to the timeline, they
now work again.
spec below says to continue adding the top level
key for compatibility with older clients.
https://spec.matrix.org/v1.9/rooms/v11/#moving-the-redacts-property-of-mroomredaction-events-to-a-content-property
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-28 13:56:19 -05:00
EPS-DEV
4e2ce16bb8
docs: Fix 2 Links To Config Example
2024-02-28 11:02:08 -05:00
June
ca281b21db
document conduwuit homeserver, slight README adjustments
2024-02-26 00:49:14 -05:00
strawberry
f76937a085
fix incorrect repo link on welcome msg
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
24625e9659
resolve nightly rust warnings
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
63fe9ef567
document nix binary cache in nix/README.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
6fc859e718
update DIFFERENCES.md and document multiple listening ports
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
598ac3e140
unmark v1 as experimental
...
it was reported that even with this, conduit
still cannot join those rooms.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
0a91a3e6cc
remove non-working key
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
12d2680862
disable incremental builds in CI (just to be safe)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
a9d232f064
remove a few unused deps (cargo machete)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
cdc644946d
admin cmd to delete MXCs via event_id
...
this can be used as a way to deal with the thumbnail
and the media file at the same time without knowing
the thumbnail MXC URL.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
da3297fdcb
add !admin as way to call conduit bot
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
9224e37472
helpful error msg upon failed db version assert
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
443bb244fc
bump ruma fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
50fb202382
admin cmd to delete multiple MXC URLs in bulk
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
45ad7b40b3
add support for dual HTTP/HTTPS, rm caddy from complement
...
complement sends C-S requests over HTTP, and federation
over HTTPS.
complement without caddy *almost* works. unfortunately
i am now dealing with invalid X-Matrix signatures
due to non-percent encoded URIs and it does not
seem trivial to percent-encode URIs that a
reverse proxy would normally do for you.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
5344cdbbca
correct rocksdb flake version override
...
this was causing rocksdb to be built with
a version of 8.3.2, but pulling 8.10.0
source code.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
ec2092cb43
add complement CA to conduit.toml dockerfile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
07772f2fed
document conduit direct TLS support + logging
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
67b307c75b
add support for listening on multiple ports
...
retains existing config compatibility using either:
`port = 6167`
`port = [80, 443, 8448]`
Co-authored-by: Charles Hall <charles@computer.surgery >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
99f7dad939
bump nix (rust crate) and add either
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-26 00:40:15 -05:00
strawberry
342400fe2d
fix tests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
43c2ac6c1c
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
ca42ec338b
replace accidental unwraps with if let's
...
this provides not only some future compatibility with MSC4051,
but it just makes sense to not crash/error if we can't get a server_name
from the room ID and should just use the server_name from the sender
user's invite event. there is already code ahead that accounts for
an empty vector so this is safe.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
81b8f7c380
bump ruma and image-rs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
47671606dd
bump nix version in gitlab CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
99b8a568d6
add .DS_Store to gitignore (lol)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
c038da21b4
adjust complement stuff a tad
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
4d624846ee
admin command to delete media via MXC url
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
27c29e6063
db functions to delete media via MXC
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
cc762c49e2
bump thread_local in cargo.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
1ecad225be
feat: custom text for user displayname suffix upon registration
...
replaces the lightning bolt emoji option with support for
your own text or emojis
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
0972079319
raise default systemd unit start/stop timeout
...
default of 90 seconds can be too low if hardware is not very fast
and rocksdb compaction or shutdown takes too long
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
strawberry
5a4403fa25
bump cargo.lock due to yanked crate
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-24 13:04:13 -05:00
K900
9602fefa7e
fix: update ruma commit hash
2024-02-24 11:07:26 -05:00
strawberry
0593dce8a6
add missing feature to DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
03d796e95e
support room aliases for room blocking, argument to disable federation
...
and makes parsing the room more generic (room ID or room alias)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
renovate[bot]
8fe42cb9e8
fix(deps): update rust crate serde to 1.0.197
2024-02-20 07:06:57 -05:00
renovate[bot]
ac3a3a84e2
fix(deps): update rust crate serde_json to 1.0.114
2024-02-20 07:06:57 -05:00
strawberry
36bc21193c
oops forgot import
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
renovate[bot]
54728ac440
chore(deps): update nixos/nix docker tag to v2.20.2
2024-02-20 07:06:57 -05:00
renovate[bot]
a8574fdfd7
fix(deps): update rust crate serde_yaml to 0.9.32
2024-02-20 07:06:57 -05:00
strawberry
3d26210eac
more useful database logging (compaction, time taken to load)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
ce1aae7abc
update transitive png dependency
...
thanks to cargo audit, 0.17.12 was yanked due
to build breakage.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
620206be91
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
renovate[bot]
856ea200ac
fix(deps): update rust crate ring to 0.17.8
2024-02-20 07:06:57 -05:00
strawberry
bdda875416
bump conduwuit version to 0.1.3
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
9a6a77974b
add support for bulk banning room IDs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
e25d574208
move room moderation stuff to a subcommand
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
c9364dc077
dont evict admins from room, allow admins to join banned rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
ed0c8e86f7
initial implementation of banning room IDs
...
takes a full room ID, evicts all our users from that room,
adds room ID to banned room IDs metadata db table, and
forbids any new local users from attempting to join it.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
a92f291bbf
feat: query param to return full state event or event content
...
query parameter `?format=event|content`
defaults to normal behaviour which is the event's content.
ruma impl: https://github.com/girlbossceo/ruma/commit/788ea6b00fab49b04a17d88caa0c840b7d74aa13
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
b80be6c709
remove unused database function
...
i have no idea what this is for
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
a2f7f6fda4
prefix every admin room help cmd with -
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
strawberry
a0205cd41d
implement deprecated user field for login requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-20 07:06:57 -05:00
renovate[bot]
5f007d8117
chore(deps): lock file maintenance
2024-02-16 19:30:28 -05:00
renovate[bot]
f2d4e626c0
fix(deps): update rust crate clap to 4.5.1
2024-02-16 17:40:29 -05:00
renovate[bot]
45698e310a
chore(deps): lock file maintenance
2024-02-15 01:27:13 -05:00
strawberry
b1d1f3a643
add my attic binary caches
...
conduit and conduwuit are the same
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-15 01:18:30 -05:00
strawberry
bef1061a51
that was not a valid option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-15 01:18:30 -05:00
strawberry
adb2059ea2
make ATTIC_TOKEN available in environment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-15 01:18:30 -05:00
strawberry
bb3d5b5d9f
add cargo audit as engage task
...
just in case trivy is useless
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-15 01:18:30 -05:00
strawberry
359a137d2e
add trivy for code and vulnerability scanning
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 20:14:21 -05:00
renovate[bot]
cf9d77d04e
chore(deps): update nixos/nix docker tag to v2.20.1
2024-02-14 19:36:13 -05:00
renovate[bot]
3c675dd08e
chore(deps): update docker docker tag to v25.0.3
2024-02-14 19:35:58 -05:00
renovate[bot]
aa8e534293
fix(deps): update rust crate tikv-jemallocator to 0.5.4
2024-02-14 19:35:29 -05:00
renovate[bot]
9f5b823b3a
fix(deps): update rust crate tikv-jemalloc-ctl to 0.5.4
2024-02-14 19:34:02 -05:00
strawberry
62603f2348
install nix-env engage for gitlab ci
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:31:30 -05:00
strawberry
3a72193c84
move nix config to NIX_CONFIG env variable
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
33e7dafc1a
fix incorrect comment about db_cache_capacity_mb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
5515d12edd
make gitlab CI work for conduwuit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
63bb00d902
error if using known placeholder server_name, log if using debug build
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
d1f55b59cf
fix wrong docker image in compose files
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
e09b2598ee
update attic URL, upload to conduwuit too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
5d7b8cd309
think this is the correct way
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
0e7ec9f2dd
update rocksdb to 8.10.0 in nix flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
strawberry
4bcedf7f4b
bump rocksdb (finally)
...
queue the CI errors
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 19:07:08 -05:00
renovate[bot]
c66fa14002
fix(deps): update rust crate serde_yaml to 0.9.31
2024-02-14 17:34:16 -05:00
renovate[bot]
8c074d1cf9
fix(deps): update rust crate serde_json to 1.0.113
2024-02-14 17:27:48 -05:00
renovate[bot]
7a08f0754b
fix(deps): update rust crate serde_html_form to 0.2.4
2024-02-14 17:23:53 -05:00
renovate[bot]
5ef46c63e6
fix(deps): update rust crate serde to 1.0.196
2024-02-14 17:22:57 -05:00
strawberry
5b31cdf1b5
ignore basically all the http dependencies we cant upgrade to
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-14 09:51:11 -05:00
Samuel Meenzen
8e03a79d35
feat: renovate all the way
...
Because dependabot is lazy on weekends.
2024-02-14 09:42:00 -05:00
dependabot[bot]
c98c71eb7c
Bump thiserror from 1.0.56 to 1.0.57
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.56 to 1.0.57.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.56...1.0.57 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-12 07:23:22 -05:00
strawberry
16d384271b
CI expects default features of rocksdb?
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
9724fe7d70
go back to outdated rocksdb (the fork breaks CI in a weird way now)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
4ef6c8a01a
does this commit work???
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
0052d7b669
use rust-rocksdb 8f65a73f0962edc4cc028f4012692043dc657a76
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
dac8b3db49
move these config checks to main.rs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
0ea8657070
default to Undefined if room avatar URL was not found despite checking if its Some
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
bb1edc3f1a
use zaidoon1's fork of rust-rocksdb
...
https://github.com/zaidoon1/rust-rocksdb
https://github.com/rust-rocksdb/rust-rocksdb/issues/855#issuecomment-1937412844
shame that this has resulted in yet another fork of software, but oh well...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
244c1f7190
config option to check root domain with URL previews
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
54ade97f96
add expect message when failing to send oneshot channel shutdown transaction
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
6ee6217f95
update DIFFERENCES.md and debian postinst config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
48e4b71dd1
remove hardcoded 300kb limit on spider size with config option of 1MB default
...
modern websites are sadly massive, 300kb is pretty low. 1MB should be enough.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
2ea895199a
dont drop true error with url str parse, fix url contains logic order, clarify config comment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
7786553cda
doc+check if user does not have local presence enabled if using outgoing presence
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
d069379d77
(please) dont drop true error in presence timer creation failures
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
8e6d52e7dd
dont follow more than 2 redirects for URL previews for security reasons
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
fb2eba722d
fix media tests for URL previews
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
Reiner Herrmann
c0dd5b1cc2
feat: URL preview support
...
from upstream MR https://gitlab.com/famedly/conduit/-/merge_requests/347
with the following changes (so far):
- remove hardcoded list of allowed hosts (strongly disagree with this,
even if it is desired, it should not be harcoded)
- add more allow config options for granularity via URL contains,
host contains, and domain is (explicit match) for security
- warn if a user is allowing all URLs to be previewed for security reasons
- replace an expect with proper error handling
- bump webpage to 2.0
- improved code style a tad
Co-authored-by: rooot <hey@rooot.gay >
Signed-off-by: rooot <hey@rooot.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
6f26be1c6e
eat less /ban endpoint fields, fix ban reason not consistently applied
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
9be73d341c
update debian systemd unit to use notify and harden/update it more
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
3ff5bc5298
ask systemd for more time when shutting down if needed, raise axum shutdown timeout to 3 mins
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
0b171a2b9c
bump default max_concurrent_requests to 500, update config comment
...
also raise 1024 bytes to 4096 bytes in minimum max_request_size check
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
da4b509940
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
b8ab4754a5
slight wording addition
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
7ddf08e8b7
filter out "config" as it's an expected config option
...
this seems to exist when using `CONDUIT_CONFIG`
environment variable, this is expected.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
6996d63a02
warn if a catchall config option (unknown config option) exists
...
a longer way of saying: warn if a config key is unknown
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
d4d8c6eb21
check if custom room ID is apart of forbidden room alias
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
Matthias Ahouansou
fc93b29abe
feat: forbid certain usernames & room aliases
...
squashed from https://gitlab.com/famedly/conduit/-/merge_requests/582
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
Matthias Ahouansou
784d307425
revamp appservice registration to ruma's Registration type
...
squashed from https://gitlab.com/famedly/conduit/-/merge_requests/583
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
Raito Bezarius
0e9eb22ee7
feat: support non-flake users
...
This uses flakes-compat to read the `flake.nix` and expose it
to non-flake users.
Signed-off-by: Raito Bezarius <masterancpp@gmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
strawberry
1f7ac6d112
update valid_until_ts comment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-02-11 21:56:55 -05:00
dependabot[bot]
e0cdcf66d3
Bump tokio from 1.35.1 to 1.36.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.35.1 to 1.36.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.35.1...tokio-1.36.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-02-06 21:08:17 -05:00
dependabot[bot]
3ac42129ac
Bump reqwest from 0.11.23 to 0.11.24
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.23 to 0.11.24.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.23...v0.11.24 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-01 19:39:24 -05:00
strawberry
1157994b49
update docker README with our links
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 21:12:09 -05:00
strawberry
71d5361703
bit of repo cleanup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 21:12:09 -05:00
strawberry
ee90f66450
remove test branch, only publish if not PR
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 19:39:26 -05:00
strawberry
03080c5677
bump ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 19:39:26 -05:00
strawberry
1b780fdbfa
i think its docker.io
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 19:39:26 -05:00
strawberry
c239ff5e42
make image_name variable work, OCI uses/expects conduit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 19:39:26 -05:00
strawberry
2dd8d372de
username is not secret, use conduwuit and main branch
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 19:39:26 -05:00
strawberry
4be2948afc
fix syntax error, add test branch
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 19:39:26 -05:00
strawberry
29d7257a41
attempt to push OCI images to docker hub and ghcr
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 19:39:26 -05:00
strawberry
98b54caca5
remove test branch from CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:27:13 -05:00
strawberry
ab22dc4bc8
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
83f7ea54df
update gh actions OCI image paths to match gitlab
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
Samuel Meenzen
d8e7ea78ed
Publish oci image to the gitlab registry
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
Charles Hall
c33fd35c1c
(upstream) update DEPLOY.md with new build links
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
25d9cc28d6
remove removing rustup and default cargo, remove building aarch64 deb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
4cebb282ab
(prob doesnt work) build aarch64 deb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
fedbe0dc66
build deb, update deb metadata and files
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
1581a3ca84
force copy
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
d11b03feab
dont compress OCI images, copy result to tar.gz
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
Charles Hall
621c85fd3b
run cargo update
...
`IndexMap::remove` was deprecated in favor of explicitly named methods.
I assume that we actually needed to be using `shift_remove`, otherwise
we probably wouldn't be bothering with `indexmap` here in the first
place. I wonder if this fixes any bugs lol
from: https://gitlab.com/famedly/conduit/-/merge_requests/580
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
950d69eb66
build OCI images for x86_64 and aarch64 in CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
468009fce5
fix wrong artifact path in gitlab ci
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
1f3b91accd
remove redundant copy and just use path
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
Charles Hall
d68268da2e
pass pkgsCrossStatic to mkOciImage, not pkgsHost
...
This fixes a bug where the aarch64 OCI image had metadata saying it was
an x86_64 OCI image. On top of that, I think the metadata was actually
right (aside from Conduit's binary): since all other packages were being
pulled from `pkgsHost`, an OCI image cross compiled for aarch64 from a
different architecture would result in unexecutable binaries (e.g. tini)
since they were compiled for the completely wrong architecture.
from: https://gitlab.com/famedly/conduit/-/merge_requests/579
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
fb1fa4364d
downgrade rust-rocksdb back to latest stable
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
Charles Hall
8954243457
switch crane input back to upstream
...
Thanks to the crane maintainer to fixing my issue in a way that doesn't
suck, unlike my attempt in the fork we were briefly using.
from: https://gitlab.com/famedly/conduit/-/merge_requests/576
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
Charles Hall
79750b9685
make complement (mostly) work again
...
Well, kinda. It crashed on me after 10 minutes because the tests timed
out like in <https://github.com/matrix-org/complement/issues/394 >.
Sounds like this means it's a them problem though.
I want to use Nix to build this image instead in the future but this
will at least make it work for now and give me a reference for while I'm
porting it. I also want to make Conduit natively understand Complement's
requirements instead of `sed`ing a bunch of stuff and needing a reverse
proxy in the container. Should be more reliable that way.
I'm not making this run in CI until the above stuff is addressed and
until I can decide on a way to pin the revision of Complement being
tested against.
from: https://gitlab.com/famedly/conduit/-/merge_requests/575
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
bc421ec96b
add -L to nix build command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
33847b8b4b
fix syntax error (both uses and run)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
77e8a6e5ae
port some of artifacts building to gh actions (attempt 1)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-31 16:20:26 -05:00
strawberry
aa3fd6a47e
switch cargo.toml pkg name back to conduit
...
we already make it clear this is a fork with
our version and such
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-27 16:47:33 -05:00
strawberry
24605e151d
make allow_federation default to true
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-27 16:47:33 -05:00
Charles Hall
c329eb197d
add ca certificates to the OCI image
...
Without this, checking the authority of TLS certificates fails, making
Conduit (rightly) refuse to connect to anything.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-27 16:47:33 -05:00
strawberry
81a4f9e539
use main instead of latest for docker tag
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-27 16:47:33 -05:00
strawberry
fd19d132eb
make nix-build-and-cache executable
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-26 20:39:01 -05:00
strawberry
8793abf41f
does this work
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-26 19:47:54 -05:00
strawberry
331b63ca40
upstream nix changes, make rocksdb git work
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-26 19:47:54 -05:00
strawberry
35ebc459fa
add explicit_outlives_requirements rustc lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-26 19:47:54 -05:00
strawberry
5a8a3c742d
s/15000/10000
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-26 19:47:54 -05:00
Charles Hall
620bfacc30
ci: cross compile static binaries for x86_64 and aarch64
...
from https://gitlab.com/famedly/conduit/-/merge_requests/569
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-26 19:47:54 -05:00
kubo6472
7588790c3b
bump nix cache
...
Fix nodejs v16 incompatible/deprecation
2024-01-25 20:20:27 -05:00
strawberry
4ac568769b
improvement: registration token now only works when registration is enabled
...
Co-authored-by: Timo Kösters <timo@koesters.xyz >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
ab0b52ef1e
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
8b6bd8e89e
add cargo clippy
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
2c51cdc23b
update nix flake for gitlab CI building docker images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
0e8267656f
fix room ID messages, remove comments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
08a183e8c7
assume well-known is None if text length exceeds 10000 chars
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
Charles Hall
ec7aeb1096
move resolver logic into the resolver
...
Honestly not sure why it wasn't done like this before. This code is much
less awkward to follow and more compartmentalized.
These changes were mainly motivated by a clippy lint triggering on the
original code, which then made me wonder if I could get rid of some of
the `Box`ing. Turns out I could, and this is the result of that.
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
1536f08d81
use both is_ip_literal and IPAddress is_valid checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
9858b33b37
just remove double quotes if found instead
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
e0419d9c5d
custom room ID checks, dont use format! macro due to quotes being added
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
7eff572e77
check if room ID already exists instead of erroring on auth check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
8754f0e2a5
additional character check on room alias
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
e272f0f34f
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
89d9cdeb3a
IP range denylist logging, and fix logic error
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
382347353e
add custom room ID support using room_id field
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
2980af6490
move room creation config check higher up
...
dont bother wasting resources if we know we
arent even allowed to make the room to begin with
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
ead9a58dce
dont crash failing to deserialise room creation content
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
3453dcc344
add error checking to room aliases
...
length, colon, and spaces. also dont crash.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
b51d148899
remove random space
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
6c1358d0c8
send home_server on login response again
...
a 6+ year old deprecated field that isnt even spelled
right, and no clients use it must still be sent
according to spec
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
9d1ca3e84a
update deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
114369bcf6
delete Dockerfile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
fa0c083555
don't send requests to specified list of IP CIDRs
...
this can most definitely be improved but this is a decent attempt.
the only annoying this is i couldn't just use a Vec<IPAddress> which
would have significantly simplified all of this, but serde can't
deserialise it on the config side i guess.
i may find a better way to do this in the future, but this should cover
most areas anyways.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
71d247232d
oops forgot that endpoint too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
6c75087863
eat less of client parameters for media requests
...
still cantt respect allow_redirect yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
ab6cb4ad2d
switch back to expect for sender_user
...
as far as i can tell, it will return a normal
error in the auth token handling code so this is fine.
we also shouldnt assume all errors from this are
access_token related.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
02bc818633
match explicit URI to see if we should authenticate the user
...
first attempt at forcing an endpoint to be authenticated
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
1de7980143
update DIFFERENCES.md so far
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
dc9c86d3db
bump ruma, rusqlite, and rocksdb
...
latest rocksdb now has WriteBufferManager support
i hope no one is using sqlite with conduwuit, but if they are let's
bump it to latest git too for the latest sqlite version available.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
9d0c85ab17
use ruma JsOption, bump figment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
4e8823dedb
add warning about outgoing presence PDU/EDU relationship
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
1460a82f54
use engage for gitlab CI
...
from https://gitlab.com/famedly/conduit/-/merge_requests/564
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
11bc725268
return joined member count of room for pushrules instead of hardcoded 10
...
im not sure what the TODO is trying to say here,
but since it's many years old and conduwuit is
fast, i dont see an issue with this.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
b50c47e1c2
silence loud tower_http errors (move to info)
...
these are benign errors that are from things like
conduwuit fetching remote media from dead servers
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
34bac4d1d9
support sending well_known client response in /login using well_known_client
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
cf62cb0d0a
send avatar_url on invite member events like synapse
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
f275a0dfbe
fix obvious copy-paste error
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
982eec178b
add conduwuit-example.toml (new example config)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
fb1ade551a
revamp example config, document lots of config options
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
a7aa91739f
make warning and slight changes to DEPLOY.md for conduwuit
...
this is not finished yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
fae00e5136
remove rocksdb_max_open_files option
...
default for RocksDB is -1 and conduwuit already raises the
soft and hard nofile limits at startup.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-25 19:28:33 -05:00
strawberry
6ffc54e241
support blocking servers from fetching remote media from
...
akin to synapse's `prevent_media_downloads_from`
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 23:57:45 -05:00
strawberry
1a06c8c9d3
more error checking for deserialising events and canonical JSON
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 23:57:45 -05:00
strawberry
c83acabfb0
return proper error if we fail to convert to canonical JSON
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 23:57:45 -05:00
strawberry
3d6b499b88
log error and PDU for failed auth checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 23:57:45 -05:00
strawberry
3ffca25f6f
update few endpoint docs versions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 23:57:45 -05:00
strawberry
2bbc75d68e
why did i have to run cargo fmt twice
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
de303d9480
update rust toolchain in flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
40f5345586
fix formatting and links of user reports more
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
6063a671c3
bump MSRV to 1.75.0 for latest ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
632276ae99
bump ruma to aa3acd88d21dfbb7595f54e619f52761bcb0259e
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
e944ed5eb4
fix /report endpoint a lot
...
in short, the `/report` endpoint now checks if:
- the reporting room in the URI matches the PDU/event reported
- sender user is in the room reported
- raises report reasoning to 750 characters (spec doesn't say to limit
these, but thorough and informative reports for server admins are not
a bad thing)
- (hopefully) fixes some broken formatting
- add a random short delay before sending a successful response to the
client to make it more annoying to enumerate for events on our server
(security by obscurity but spec suggests it)
basically, secure reports better lol
see https://spec.matrix.org/v1.9/client-server-api/#post_matrixclientv3roomsroomidreporteventid
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
7eb57a9fd5
explicitly fallback to None for invalid/empty room topics
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
1f117582ca
update all transitive dependencies (cargo update)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
9a3866afff
return M_INVALID_PARAM instead of M_BAD_JSON for bad room aliases
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
92641d0628
first of many small code documentation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
ad1d272e2a
fix blocks_in_conditions clippy lint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
8d42351e34
add presence options to show-config admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
0252e9c2c7
split max build optimisations into release-high-perf build profile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
a85ebdeaa0
require sender_user being in the reporting room for /report events
...
Matrix 1.8 change:
https://spec.matrix.org/v1.9/client-server-api/#post_matrixclientv3roomsroomidreporteventid
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
efa6308172
actually we can remove loole (for now) and crossbeam
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
bfc738d80e
default to None for room topic event in spaces or /publicRooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
ef10a2df36
add more lints, bump image and crossbeam
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
strawberry
59c7f93656
fix more clippy lints (part 1)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-17 14:26:26 -05:00
renovate[bot]
44440f745f
chore(deps): update actions/cache action to v4
2024-01-17 12:04:47 -05:00
strawberry
2074e36aa4
add missing ban reason to ban events
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
2f16726bac
raise generated passwords to 25 chars
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
2b031e40a2
partially revert keeping track of remote user profiles
...
this seems to require some more work to properly ignore
dead server errors without breaking the entire room join
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
149d22eef7
make set avatar, displayname, and blurhash async and forgot another let _
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
9ec1532580
ignore potential errors when updating user profiles
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
4d410d7304
update DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
0297cfe307
remove cached destination for a destination if request fails
...
this can help if users change their well-known or such and we don't want
to keep on hitting the old destination.
from https://gitlab.com/Aranjedeath/conduit/-/commit/11357d1f1af27b0cbd06ee2d8431bd965bc6d95e
Co-authored-by: Jacob Taylor <jacob@explodie.org >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
ad792f4565
oops dedup only works on consecutive elements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
52884abff6
don't validate or add signature if room is not v8 or above or not using restricted joins
...
should resolve https://github.com/matrix-org/matrix-spec/issues/1708 on
for conduwuit until spec clarifies.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
5c4b8ad7a3
replace panics on unknown room versions with errors
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
c70ce49ec0
don't allow non-local users to have their creds modified in Deactivate admin cmds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
edd74efbf2
dedup servers in get_alias_helper
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
da539efb98
only follow up to 6 redirects in default reqwest ClientBuilder
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
ae11e378d2
debug log well-known response body and text
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
14a0d12002
declare support for Matrix 1.5 in our federation requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
acc0bdad1a
update rocksdb to 8.10.0
...
https://github.com/rust-rocksdb/rust-rocksdb/pull/852
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
424f02466c
DIFFERENCES.md: suggest servers to join via at room directory
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
0b0b52c33b
add all possible workspace clippy lints (with commenting out most for now)
...
this will be a major pain to work through. for now, let's
just add them and overtime work through these.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
49b6f338fd
feat: suggest servers to join at /_matrix/client/v3/directory/room/{roomAlias}
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
da3ac7a2f1
deps updates again
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
15ffc4951e
oops forgot to bump 1.70.0 in flake and gitlab dockerfile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
8e569b8d29
we also support webp images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
6ea07da24d
nix: update flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
468e5a48f3
add more stuff to DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
ee2f1c3084
the great persy, sled, and heed purge (and bump MSRV to 1.74.1)
...
these database backends are either unmaintained, broken in conduit, or
incredibly niche for something like conduwuit.
also i want to bump the MSRV.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
b28a2fad97
feat: keep track of remote profiles for user directory and local requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
ef8dcdfe3c
declare explicit support for room filtering (MSC3827)
...
conduit has supported this for a while now and is a Matrix 1.4 feature
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
c75674faf5
bump default_presence_offline_timeout to 30 minutes (too low imo)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
966cca25f1
bump conduwuit version as we've made a lot of changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
85b2c6681b
allow HEAD HTTP requests in CORS
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
20aa2cfca6
update device lists for user upon logout
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-14 20:55:56 -05:00
strawberry
830cd0e6d7
document we shutdown cleaner and safer
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-09 12:24:42 -05:00
strawberry
7021c52c9b
send a User-Agent on all requests
...
amazing that this wasn't done in the first place. a lack of a UA is
suspicious and some providers may block our requests just for the sake
of no UA.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-07 22:26:27 -05:00
strawberry
aa40e07d2d
add some new things/fixes to DIFFERENCES.md
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-07 22:26:27 -05:00
strawberry
8586b15e1a
add support for serving client+server well-known and /client/server.json endpoints from conduwuit
...
the last endpoint is a non-standard health check endpoint used by at
least Element Web as a weird way to determine if syncv3 is available
there can also be some valid use-cases for serving well-knowns from the
application itself
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-07 22:26:27 -05:00
strawberry
bb2f213ac3
more helpful panic msg on failing to increase soft/hard FD limits
...
this can be caused by security policies, hardening, etc
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-07 22:26:27 -05:00
strawberry
1308574db0
bump ruma to latest commit (syncv3 JsOption and push optional power levels)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-07 22:26:27 -05:00
strawberry
5422d0cedd
declare support for various missing matrix versions
...
this is another one of those things that upstream has neglected
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-07 22:26:27 -05:00
dependabot[bot]
bead35d460
Bump clap from 4.4.12 to 4.4.13
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.12 to 4.4.13.
- [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/v4.4.12...v4.4.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-06 16:17:14 -05:00
dependabot[bot]
8b57ebe9a2
Bump opentelemetry_sdk from 0.21.1 to 0.21.2
...
Bumps [opentelemetry_sdk](https://github.com/open-telemetry/opentelemetry-rust ) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases )
- [Commits](https://github.com/open-telemetry/opentelemetry-rust/compare/v0.21.1...v0.21.2 )
---
updated-dependencies:
- dependency-name: opentelemetry_sdk
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-06 16:17:07 -05:00
dependabot[bot]
16a0cd4ed4
Bump loole from 0.1.13 to 0.3.0
...
Bumps [loole](https://github.com/mahdi-shojaee/loole ) from 0.1.13 to 0.3.0.
- [Commits](https://github.com/mahdi-shojaee/loole/commits )
---
updated-dependencies:
- dependency-name: loole
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-06 16:17:00 -05:00
dependabot[bot]
673febe9a4
Bump serde from 1.0.193 to 1.0.194
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.193 to 1.0.194.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.193...v1.0.194 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-06 16:16:53 -05:00
strawberry
2161630b54
raise reqwest client timeout to 300 seconds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-06 16:16:44 -05:00
strawberry
3ba129e80c
remove unnecessary else logic in sha256_media db migration
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-06 16:16:44 -05:00
strawberry
3723d37b14
raise report reason limit to 500 (though spec doesnt say to limit these)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-06 16:16:44 -05:00
strawberry
d56e76c23e
raise various timeouts, make exp backoff consistent
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-06 16:16:44 -05:00
strawberry
8c04dffbbd
add DIFFERENCES.md (changes conduwuit makes from upstream)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-06 14:51:08 -05:00
strawberry
c534027fa4
revamp README.md to conduwuit
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-01-06 14:51:08 -05:00
dependabot[bot]
7a8aa969fa
Bump thiserror from 1.0.52 to 1.0.56
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.52 to 1.0.56.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.52...1.0.56 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-02 19:36:40 -05:00
dependabot[bot]
c82f662e0e
Bump async-trait from 0.1.75 to 0.1.77
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.75 to 0.1.77.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/commits )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-02 19:27:21 -05:00
dependabot[bot]
4ed6de2919
Bump figment from 0.10.12 to 0.10.13
...
Bumps [figment](https://github.com/SergioBenitez/Figment ) from 0.10.12 to 0.10.13.
- [Commits](https://github.com/SergioBenitez/Figment/commits )
---
updated-dependencies:
- dependency-name: figment
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-02 19:21:23 -05:00
dependabot[bot]
796dea43cb
Bump serde_json from 1.0.108 to 1.0.109
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.108 to 1.0.109.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.108...v1.0.109 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-02 19:21:15 -05:00
dependabot[bot]
712da2b354
Bump clap from 4.4.11 to 4.4.12
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.11 to 4.4.12.
- [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/v4.4.11...v4.4.12 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-29 19:18:17 -05:00
dependabot[bot]
e38c595a6d
Bump tokio from 1.34.0 to 1.35.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.34.0 to 1.35.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.34.0...tokio-1.35.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-27 13:20:33 -05:00
dependabot[bot]
14a880257e
Bump thiserror from 1.0.51 to 1.0.52
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.51...1.0.52 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-26 18:11:29 -05:00
dependabot[bot]
56282414fe
Bump serde_yaml from 0.9.27 to 0.9.29
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.9.27 to 0.9.29.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.27...0.9.29 )
---
updated-dependencies:
- dependency-name: serde_yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-26 17:53:56 -05:00
dependabot[bot]
06685874b7
Bump reqwest from 0.11.22 to 0.11.23
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.22 to 0.11.23.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.22...v0.11.23 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-26 17:53:49 -05:00
strawberry
06e0360142
change welcome message
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
91c7c15bb3
log where we are listening at/on
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
7e447765fe
remove warning in error message, drop 2nd error down to warn
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
09d0c13d6f
remove unused config global function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
d4c360c135
replace run_server() unwrap just to be safe
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
757ba60ff9
add comment about the blocking await above this config check
...
comment saying this would have been nice. moved the config checks above
that blocking call.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
071f9959a6
remove false_fn as just default alone always evaluates to false
...
ideally we could just do true/false but it is almost 2024 and this is
not possible in serde.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
d214371423
add option for explicit opt-in allow open registration and make it clear
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
strawberry
5e641e2886
move default rocksdb logging from info to warn
...
info is still logging useless database statistics and metrics that will
accumulate, less I/O activity.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 17:07:24 -05:00
dependabot[bot]
b7cfca5e7b
Bump futures-util from 0.3.29 to 0.3.30
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.29 to 0.3.30.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.29...0.3.30 )
---
updated-dependencies:
- dependency-name: futures-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-25 16:02:19 -05:00
dependabot[bot]
f1d978f139
Bump tracing from 0.1.37 to 0.1.40
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.37 to 0.1.40.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.37...tracing-0.1.40 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-25 16:02:12 -05:00
dependabot[bot]
49a92f08d6
Bump crossbeam from 0.8.2 to 0.8.3
...
Bumps [crossbeam](https://github.com/crossbeam-rs/crossbeam ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-0.8.2...crossbeam-0.8.3 )
---
updated-dependencies:
- dependency-name: crossbeam
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-25 15:46:09 -05:00
dependabot[bot]
cb23dba67d
Bump persy from 1.4.4 to 1.4.7
...
Bumps [persy](https://gitlab.com/tglman/persy ) from 1.4.4 to 1.4.7.
- [Changelog](https://gitlab.com/tglman/persy/blob/master/release-checklist.md )
- [Commits](https://gitlab.com/tglman/persy/compare/1.4.4...1.4.7 )
---
updated-dependencies:
- dependency-name: persy
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-25 15:45:59 -05:00
strawberry
14fc20e31e
cargo fmt
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-25 11:09:19 -05:00
Val Lorentz
89c3679e9a
Add missing pub key in send_join handling
2023-12-25 11:09:19 -05:00
Val Lorentz
33cae7eaab
Explicitly match RoomVersionId::V11
2023-12-25 11:09:19 -05:00
Val Lorentz
f3045be622
Reuse existing get_room_version
2023-12-25 11:09:19 -05:00
Nineko
fdc3e07be6
feat: replaced flaky argon2 with better argon2 crate ( #37 )
...
* feat: replaced flaky argon2 with better argon2 crate
* fix: applied cargo fmt nightly
* docs: added comment specifying what the settings for Argon2 mean
* fix: made hashing error a bit more descriptive
* fix: fixed incorrect value for Kib
2023-12-25 10:28:56 -05:00
Charles Hall
6a9f8dfa6f
add shebang to .envrc
...
All this really does is make syntax highlighting and shellcheck work by
default in more editors.
2023-12-24 01:56:56 -05:00
Charles Hall
629efaa910
use constructor to avoid deprecation warnings
2023-12-24 01:05:13 -05:00
Charles Hall
827af38cc9
comment out heed backend; code doesn't compile
2023-12-24 01:05:13 -05:00
strawberry
5bb6128149
remove wrong else logic
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-23 11:49:14 -05:00
strawberry
dd8a6ede09
dont allow guest registration if registration disabled with token configured
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-23 11:49:14 -05:00
strawberry
6664259e64
forbid guest users from registering if no real admin user exists
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-23 11:49:14 -05:00
strawberry
01a8f6323d
log next steps if a guest account registered and attempted to get admin
...
this might be an unreachable state with the next commit, but let's be
extra sure here just in case a guest still managed to register before
a real admin was created.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-23 11:49:14 -05:00
strawberry
c026ef77fb
document allow_guest_registration in conduit-example.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-23 11:49:14 -05:00
strawberry
dc73df763a
don't grant guest users admin, slight user + guest logging improvements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-23 11:49:14 -05:00
strawberry
b0fdc1351b
add config option for guest registration, make guest registration respect allow_registration
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-23 11:49:14 -05:00
dependabot[bot]
f20beae8dc
Bump nix from 0.26.4 to 0.27.1
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.26.4 to 0.27.1.
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.26.4...v0.27.1 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 18:56:36 -05:00
dependabot[bot]
09f68f9f78
Bump serde_html_form from 0.2.2 to 0.2.3
...
Bumps [serde_html_form](https://github.com/jplatte/serde_html_form ) from 0.2.2 to 0.2.3.
- [Changelog](https://github.com/jplatte/serde_html_form/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jplatte/serde_html_form/compare/v0.2.2...v0.2.3 )
---
updated-dependencies:
- dependency-name: serde_html_form
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 18:39:35 -05:00
dependabot[bot]
ba40582412
Bump ring from 0.17.5 to 0.17.7
...
Bumps [ring](https://github.com/briansmith/ring ) from 0.17.5 to 0.17.7.
- [Commits](https://github.com/briansmith/ring/commits )
---
updated-dependencies:
- dependency-name: ring
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 18:32:38 -05:00
dependabot[bot]
d502357a0f
Bump tracing-subscriber from 0.3.17 to 0.3.18
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 18:32:28 -05:00
Charles Hall
d76ea86909
update opentelemetry things
...
Upstream's changelogs are unhelpful :/
2023-12-22 18:24:03 -05:00
strawberry
a3336902a0
bump rust-rockdb to latest git for 8.9.1
...
Co-authored-by: Charles Hall <charles@computer.surgery >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-21 22:47:28 -05:00
dependabot[bot]
b977d94261
Bump thiserror from 1.0.48 to 1.0.51
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.48 to 1.0.51.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.48...1.0.51 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-21 19:17:27 -05:00
dependabot[bot]
65c9b1721f
Bump jsonwebtoken from 9.1.0 to 9.2.0
...
Bumps [jsonwebtoken](https://github.com/Keats/jsonwebtoken ) from 9.1.0 to 9.2.0.
- [Changelog](https://github.com/Keats/jsonwebtoken/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Keats/jsonwebtoken/compare/v9.1.0...v9.2.0 )
---
updated-dependencies:
- dependency-name: jsonwebtoken
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-21 19:17:06 -05:00
strawberry
b239de551d
remove deprecated recommended vscode extension
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-20 23:03:18 -05:00
dependabot[bot]
b49e43d8bb
Bump clap from 4.4.8 to 4.4.11
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.8 to 4.4.11.
- [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/v4.4.8...v4.4.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-20 22:37:04 -05:00
dependabot[bot]
f5d2df5483
Bump async-trait from 0.1.74 to 0.1.75
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.74 to 0.1.75.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.74...0.1.75 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-20 22:32:46 -05:00
renovate[bot]
4db66496a8
chore: Configure Renovate ( #15 )
...
* Add renovate.json
* remove default preset, add nix, allow non-office hours
Signed-off-by: strawberry <strawberry@puppygock.gay >
* enable lockfile maintenance
Signed-off-by: strawberry <strawberry@puppygock.gay >
* will this make nix work
Signed-off-by: strawberry <strawberry@puppygock.gay >
---------
Signed-off-by: strawberry <strawberry@puppygock.gay >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: strawberry <strawberry@puppygock.gay >
2023-12-20 22:26:36 -05:00
Jakub Kubík
cc4e6e213f
fix(sync): correctly update presence properties
2023-12-20 21:50:18 -05:00
Jakub Kubík
69025d30f7
style(presence): use flat_map instead of matching Results in filter
2023-12-20 21:50:13 -05:00
strawberry
e93b4aa08e
fix typo
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-20 21:46:54 -05:00
dependabot[bot]
a4afe2111b
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-20 21:46:54 -05:00
strawberry
0927754d37
add dependabot
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-20 21:46:54 -05:00
strawberry
b3252dd1d4
remove old gitlab stuff and issue templates
...
not really important enough for us to have these right now
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-20 21:46:54 -05:00
Charles Hall
216d83ea1d
run engage in github actions
2023-12-20 21:46:54 -05:00
Charles Hall
6910a68699
use engage for ci
2023-12-20 21:46:54 -05:00
Charles Hall
311c7d83ca
fix rustdoc warnings
...
Also removed all instances of `#[command(verbatim_doc_comment)]` because
I'm pretty sure it's not necessary anymore. The `[commandbody]` things
were making rustdoc upset about broken link syntax. I also normalized
"code-block" to "code block" in that file since the latter appears more
often.
2023-12-20 21:46:54 -05:00
Charles Hall
f54dd1c0fb
improve the nix flake
...
It's pretty much the same as it was before but now it's more better.
2023-12-20 21:46:54 -05:00
nat
118a061ac9
nix: bump inputs and update rocksdb
...
otherwise bindings are too new and it doesn't build
2023-12-06 22:30:08 +01:00
strawberry
8454773275
log rejected sendjoin, remove unnecessary clone
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-03 20:20:25 -05:00
strawberry
0ed891b3a1
bump version
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-03 01:16:08 -05:00
strawberry
d9d1ce3cb5
fix refering uninit static, use upstream rocksdb again, don't compile debug info
...
even rust-analyzer themselves don't compile with debug info because it
makes cargo checks and builds in general a lot longer. helps speed
things up and we mainly care about panics/stacktraces and compiler
errors.
https://github.com/rust-lang/rust-analyzer/blob/master/Cargo.toml#L12-L15
upstream rust-rocksdb is active again finally
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-03 01:00:23 -05:00
strawberry
4d52dd2f44
use puppy check for updates endpoint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-02 21:45:09 -05:00
strawberry
f62f641545
add rocksdb configurable options and tweaks, logging improvements, exp. room v11 support
...
split out the spinning disk focused options into a configurable option, current
conduwuit users are NVMe/SSDs anyways so those options are just hindering performance.
rocksdb logging builds up overtime with no cleanup or anything, adds support for
configuring the amount of logging, size of files, log rotate, etc.
fixes https://gitlab.com/girlbossceo/conduwuit/-/issues/1
misc conduit logging improvements for help debugging issues and maybe a future feature
experimental Room V11 support from https://gitlab.com/famedly/conduit/-/merge_requests/562
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-12-02 21:30:06 -05:00
strawberry
56e4166ee8
never let clippy fail, use CARGO_PKG_NAME, allow issues on gh, simplify regex a tad
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-11-29 23:19:53 -05:00
strawberry
1a3051eb4a
remove nightly only feature, small housekeeping stuff
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2023-11-29 21:59:18 -05:00
strawberry
150364b07d
rename to conduwuit and use proper version number
...
Signed-off-by: strawberry <june@girlboss.ceo >
2023-11-29 21:37:12 -05:00
strawberry
87d6a17f0a
fix all the warnings!!!! (0 clippy and rustc warnings now)
...
too many changes to list, codebase significantly better than it was a few weeks ago though
Signed-off-by: strawberry <june@girlboss.ceo >
2023-11-29 21:36:02 -05:00
strawberry
20b686cac5
add some ruma features, fix futures warning
...
Signed-off-by: strawberry <june@girlboss.ceo >
2023-11-27 21:34:45 -05:00
strawberry
b06ed1b92f
remove # from internal room ID list
...
internal room IDs do not have #, they start with !
Signed-off-by: strawberry <june@girlboss.ceo >
2023-11-27 01:35:30 -05:00
strawberry
e2ec2a98ba
make rooms alias list command more nicer
...
room IDs in conduit have a server name attached to them already
outputting the server name again just makes it look incorrect
also add codeblock to the internal room ID portion
Signed-off-by: strawberry <june@girlboss.ceo >
2023-11-27 01:25:20 -05:00
strawberry
54a3f47851
fix every clippy warning possible, remove io_uring as default feature
...
this project's codebase is so horrendous, im shocked that no one has ran
clippy at all. it had ~200 total lint warnings, some with performance
issues and unsoundness, and the rest just very ugly codebase. i have sat
down and fixed as many of these as possible and i am exhausted.
i haven't fixed some extremely complex ones, but i brought it down from
~200 to ~30.
i have also removed io_uring as a default feature due to it falling
under the same category as linux eBPF: major kernel attack surface for
minimal performance gains. this also makes it impossible to cross-compile
from macOS to Linux because io_uring does not exist in Darwin land.
there are far better ways to achieve better performance than io_uring on
the codebase level.
Signed-off-by: strawberry <june@girlboss.ceo >
2023-11-27 00:50:55 -05:00
tezlm
19d1b484e0
split out room info into its own function
2023-11-26 22:16:38 -05:00
tezlm
c2b103514b
Make commands plural
2023-11-26 22:16:38 -05:00
tezlm
5fc5076517
Room directory admin commands
2023-11-26 22:16:32 -05:00
tezlm
b30884c7ac
reply to messages
2023-11-26 22:14:59 -05:00
tezlm
ebb94341c8
Admin room alias commands
...
- room alias set
- room alias remove
- room alias which
- room alias list
2023-11-26 22:14:59 -05:00
tezlm
6fdeec1108
Add appservice show command to show config
2023-11-26 22:14:59 -05:00
tezlm
562eaa1dea
Allow using languages in code blocks.
...
```yaml
This works now
```
2023-11-26 22:14:59 -05:00
tezlm
3e9c564209
Rework admin commands to use subcommands.
...
This commit doesn't add, remove, or change any
commands, it only organizes them
2023-11-26 22:14:59 -05:00
strawberry
5106203d67
drop iouring, add 2 info logs, silence clippy warning
...
iouring falls into the same category as eBPF and is a major source of kernel vulnerabilities. the benefits gained here are too minimal to bother keeping this enabled, and makes cross-compiling from macOS impossible
Signed-off-by: strawberry <june@girlboss.ceo >
2023-11-26 22:14:59 -05:00
strawberry
dd544fad29
use cache_capacity_modifier for spaces/hierarchy cache
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-26 22:14:59 -05:00
strawberry
2dc1c1fdcb
fix clippy performance and sus warnings, remove 1 unwrap, forgot to increment db version
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-26 22:14:43 -05:00
strawberry
b4e2f7ca37
log error for invalid room member events in db
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-25 20:42:38 -05:00
AndSDev
d13e3827ce
feat: send push notification on invite to invited user and etc
2023-11-25 20:28:25 -05:00
strawberry
6958c720d0
make pdu stuff async, remove unnecessary db version check
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-25 18:29:38 -05:00
strawberry
4d7b5eb759
add version argument, move import to test body
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-25 15:53:33 -05:00
strawberry
8fffb6ea04
fix compilation with no zstd, use correct key, bump 2 deps
...
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-25 15:46:03 -05:00
strawberry
0c4604b482
bump ruma, add wrong room keys error code, tiny logging change
...
can't update ruma to very latest commit because of the weird JsOption thing for syncv4 that i can't wrap my head around how to use, not important anyways
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-25 12:42:05 -05:00
strawberry
e9cd8caaed
add feature flagged support for migrating from base64 file name keys to sha256 ones
...
core implementation and tests from https://gitlab.com/famedly/conduit/-/merge_requests/467
feature flag, base64 encode update, and tweaks were me
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-25 11:38:28 -05:00
Val Lorentz
d092820699
Fetch server keys concurrently
...
This speeds up handling of /_matrix/federation/v1/send/:transaction_id
when more than one event contains unknown keys.
In particular, when receiving multiple PDUs with dead servers in their
auth chain, timeouts of each server accumulate and can make handling of
incoming requests take several minutes, to the point the client closes
the connection (eg. matrix.org has a 2 minute timeout), causing new
events to be dropped eventually.
2023-11-25 11:38:28 -05:00
strawberry
87d1040386
bump various deps (except for the HTTP libs currently), use my
...
rust-rocksdb fork, add optional opt-in zstd response body compression
config, add webp support for images
cant upgrade things like axum, http, tower, hyper, etc due to the 1.0
release of http which are breaking all of these libs
Signed-off-by: strawberry <strawberry@pupbrain.dev >
2023-11-25 11:36:55 -05:00
girlbossceo
3533645959
bump rust-argon2
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-11-10 20:50:36 -05:00
girlbossceo
65b682c841
bump rocksdb
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-11-10 20:47:09 -05:00
girlbossceo
af1f7404f1
add notification_push_path global
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 23:43:41 -04:00
girlbossceo
16c3a38761
remove another unnecessary unwrap/expect
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 23:43:08 -04:00
girlbossceo
6931f4b778
reduce more unnecessary logging and improve a tad
...
dead servers in rooms are not relevant to log, keep it as info/debug
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 23:40:44 -04:00
girlbossceo
64084fb2d0
use a proper function for this instead of checking 200
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 22:36:47 -04:00
girlbossceo
9bb1dca5f1
mark unused variables as unusued
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 22:34:50 -04:00
girlbossceo
03af588efb
don't unwrap reqwest requests for appservice and pushers too
...
this is another denial of service vector, but less severe than the federation one.
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 22:34:09 -04:00
girlbossceo
8b95399387
add support for modifying the default notification pusher path
...
this is not officially in spec yet, but who cares? matrix team certainly doesn't care.
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 22:31:11 -04:00
girlbossceo
b8acacfb3e
use light owasp defs instead of argon2 defs
...
the ones now used by default in rust-argon2 are extremely aggressive and
resource intensive. owasp's 2nd default is very reasonable with the same
security.
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 22:15:36 -04:00
tezlm
23ec725923
remove unnecessary config overwrite
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 22:14:21 -04:00
girlbossceo
95187419f9
do not expect/unwrap requests
...
causes tokio runtime worker to panic as we attempt to convert an HTTP
Request from ruma (try_into_http_request) into a reqwest Request so the
reqwest http client on the server can execute said request. error
message is not ideal ("invalid port number") but core issue is fixed.
Co-authored-by: infamous <ehuff007@gmail.com >
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-28 09:05:23 -04:00
girlbossceo
8b28225af9
add lz4 to rocksdb features
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-23 22:22:42 -04:00
Rohan Kumar
d08beada62
Stop using default features for rocksdb
...
We only need zstd and snappy
2023-10-21 21:18:45 -07:00
Jakub Kubík
58a83f06b1
feat(presence): add granular allow configuration
2023-10-21 22:31:16 -04:00
Jakub Kubík
ba03edfae9
feat(presence): implement presence functionality
2023-10-21 22:31:06 -04:00
girlbossceo
22eff2d29c
clean up few unnecessary warnings
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-21 16:15:42 -04:00
girlbossceo
05c08c8529
fix device name federation control
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-21 12:19:21 -04:00
girlbossceo
6e46f56929
error log thing
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-21 12:18:59 -04:00
girlbossceo
a3d219e401
tweak rocksdb, use direct io
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-21 12:18:41 -04:00
girlbossceo
c223f8284c
bump deps, update rocksdb
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-10-21 12:18:07 -04:00
girlbossceo
e486c35faa
don't skip tracing for event_handler
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-24 13:01:54 -04:00
girlbossceo
f72fd67a71
remove dbg's, update rocksdb, use iouring
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-24 10:17:26 -04:00
girlbossceo
0390d19b56
log state res error
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-24 10:17:06 -04:00
girlbossceo
28b63e913f
unix sockets
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 21:49:53 -04:00
girlbossceo
fda30f5602
fix: add destination field authorization handler (not my commit)
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 21:47:37 -04:00
girlbossceo
ebd2ec45b1
fix: Do not allow fetching cached remote users' profiles over federation (nyaaori)
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 21:47:37 -04:00
girlbossceo
1b75d384d7
option to control federating device display names
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 21:47:35 -04:00
girlbossceo
81e8df3102
options to control public room directory visibility
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 21:46:43 -04:00
girlbossceo
76c00283de
woof woof
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 21:46:41 -04:00
June
84338cc827
aggressive optimisations
...
Signed-off-by: June <june@girlboss.ceo >
2023-09-13 21:46:06 -04:00
June
100cae49b6
add my Cross config
...
Signed-off-by: June <june@girlboss.ceo >
2023-09-13 21:46:06 -04:00
Tobias Bucher
9c3b3daafc
Use upstream reqwest instead of vendored one
...
This uses the `ClientBuilder::dns_resolver` function that was added in
reqwest 0.11.13, instead of the homebrew `ClientBuilder::resolve_fn`.
2023-09-13 21:46:06 -04:00
girlbossceo
42efc9deaf
Implement UNIX sockets
...
Initial implementation done in https://gitlab.com/famedly/conduit/-/merge_requests/507 ,
*substantially* reworked, corrected, improved by infamous <ehuff007@gmail.com >,
and few parts done by me.
Co-authored-by: infamous <ehuff007@gmail.com >
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 20:49:02 -04:00
girlbossceo
81e68434d8
update few deps
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 20:39:03 -04:00
girlbossceo
618036dc31
support querying _matrix-fed and _matrix
...
_matrix-fed is the new IANA registered SRV record service name
per MSC4040. _matrix is now considered deprecated in Matrix 1.8.
see 3.3 and 3.4 of https://spec.matrix.org/v1.8/server-server-api/#resolving-server-names
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 20:36:03 -04:00
girlbossceo
6695b8d8b6
mark room versions 1 and 2 as unstable
...
even though these rooms would be quite broken as they typically would be
super super old rooms, people seem to still complain about conduit not
"supporting" room versions 1 and 2. to make them happy, just make them
as unstable so they can at least join it.
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 20:36:03 -04:00
girlbossceo
87c527ad79
remove unused trace
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 20:36:03 -04:00
girlbossceo
6e672a3592
mark room version 11 as unstable
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 20:36:03 -04:00
girlbossceo
40908b24e7
set default room version to 10
...
this has been the new default since Matrix 1.6, and V10 has been flagged
as stable for a while in Conduit
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-09-13 20:36:03 -04:00
Timo Kösters
3bfdae795d
Merge branch 'sliding' into 'next'
...
Sliding sync improvements and redaction fixes
See merge request famedly/conduit!549
2023-09-13 18:57:57 +00:00
Timo Kösters
75c80df271
Sliding sync improvements and redaction fixes
2023-09-13 20:54:53 +02:00
Timo Kösters
094cb888d4
Merge branch 'badacl' into 'next'
...
fix: ACL error shouldn't break the whole request
See merge request famedly/conduit!542
2023-09-13 18:46:03 +00:00
Timo Kösters
fa725a14e2
Merge branch 'lukehmcc-next-patch-37096' into 'next'
...
Update README.md to fix typo & fix compatibility with new versions of docker compose
See merge request famedly/conduit!545
2023-09-11 18:34:06 +00:00
Luke McCarthy
9b3664aeeb
Update README.md to fix typo & fix compatibility with new versions of docker compose
2023-08-27 02:14:03 +00:00
Jonas Zohren
90fea00dc7
Merge branch 'docs-docker-coturn' into 'next'
...
Docs: coturn instructions for docker
See merge request famedly/conduit!498
2023-08-23 14:18:42 +00:00
Jonas Zohren
20924a44f1
Suggestion on how to generate a secure key
2023-08-23 11:17:47 +02:00
purplemeteorite
38d6426b0e
coturn setup instructions for docker
2023-08-23 11:09:21 +02:00
Timo Kösters
9b55ce933a
Back off from more events, don't retry auth events
2023-08-12 09:53:32 +02:00
Timo Kösters
f73a657a23
fix: ACL error shouldn't break the whole request
2023-08-11 20:29:22 +02:00
Timo Kösters
6dfb262ddf
Merge branch 'patch-3' into 'next'
...
log handling previous event time as debug
See merge request famedly/conduit!540
2023-08-11 09:27:42 +00:00
Timo Kösters
75cdc3a1f6
Merge branch 'roomversionwarnings' into 'next'
...
Do not show "Invalid room version" errors when server is not in room
See merge request famedly/conduit!541
2023-08-11 09:27:23 +00:00
Timo Kösters
11103a92ed
Do not show "Invalid room version" errors when server is not in room
2023-08-11 10:48:48 +02:00
girlbossceo
ce2017a10e
log handling previous event time as debug
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-08-10 23:12:37 +00:00
Timo Kösters
0c2cfda3ae
Merge branch 'next' into 'master'
...
Merge remote-tracking branch 'origin/next'
See merge request famedly/conduit!538
2023-08-10 17:01:56 +00:00
Timo Kösters
4bf8ee1f74
Merge branch 'nextversion' into 'next'
...
Bump version to v0.6.0
See merge request famedly/conduit!537
2023-08-10 16:58:47 +00:00
Timo Kösters
5d16948030
Bump version to v0.6.0
2023-08-10 18:57:52 +02:00
Timo Kösters
b7b2eb9d05
Merge branch 'trust' into 'next'
...
improvement: matrix.org is default trusted server if unspecified
See merge request famedly/conduit!536
2023-08-10 15:50:16 +00:00
Timo Kösters
19bfee1835
improvement: matrix.org is default trusted server if unspecified
2023-08-10 17:45:58 +02:00
Timo Kösters
9db87550fd
Merge branch 'admincommands' into 'next'
...
improvement: more forgiving admin command syntax
See merge request famedly/conduit!535
2023-08-10 15:36:29 +00:00
Timo Kösters
606b25b9e7
improvement: more forgiving admin command syntax
2023-08-10 17:26:55 +02:00
Timo Kösters
fd9e52a559
More sanity checks
2023-08-10 11:45:31 +02:00
Timo Kösters
0a0f227601
Merge branch 'registrationtokens' into 'next'
...
Registrationtokens
Closes #372
See merge request famedly/conduit!533
2023-08-09 20:27:19 +00:00
Timo Kösters
183558150d
fix: don't show removed rooms in space
2023-08-09 22:21:21 +02:00
Timo Kösters
c028e0553c
feat: registration tokens
2023-08-09 18:27:30 +02:00
Timo Kösters
2581f7a10b
Merge branch 'fix-broken-links' into 'next'
...
Docs: Fix broken links in docker documentation
See merge request famedly/conduit!520
2023-08-09 07:55:49 +00:00
Timo Kösters
3e518773e2
Merge branch 'improvements' into 'next'
...
cross signing fixes
See merge request famedly/conduit!532
2023-08-07 16:11:11 +00:00
Timo Kösters
888f7e4403
Merge branch 'more-logging-enrichment' into 'next'
...
Slightly more logging improvements
See merge request famedly/conduit!530
2023-08-07 16:04:12 +00:00
Timo Kösters
d82c26f0a9
Avatars for sliding sync DMs
2023-08-07 17:54:08 +02:00
Timo Kösters
c1e2ffc0cd
improvement: maybe cross signing really works now
2023-08-07 13:55:44 +02:00
June
06fccbc340
debug log before and after nofile soft limit increases
...
Signed-off-by: June <june@girlboss.ceo >
2023-08-03 14:51:39 -10:00
girlbossceo
fbd8090b0b
log room ID for invalid room topic event errors
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-08-03 08:54:47 -10:00
Timo Kösters
06ab707c79
Merge branch 'rusqlite-update' into 'next'
...
bump rusqlite to 0.29.0
See merge request famedly/conduit!529
2023-08-02 05:06:54 +00:00
Timo Kösters
174a580319
Merge branch 'base64-update' into 'next'
...
update base64 to 0.21.2
See merge request famedly/conduit!528
2023-08-02 05:06:24 +00:00
June
fbb256dd91
bump rusqlite to 0.29.0
...
Signed-off-by: June <june@girlboss.ceo >
2023-08-01 15:09:55 -10:00
June
5a7bade476
update base64 to 0.21.2
...
Signed-off-by: June <june@girlboss.ceo >
2023-08-01 14:48:50 -10:00
Timo Kösters
d2bfcb018e
Merge branch 'error-leak-fix' into 'next'
...
sanitise potentially sensitive errors
See merge request famedly/conduit!523
2023-08-01 11:25:06 +00:00
Timo Kösters
08f0f17ff7
Merge branch 'msteenhagen-next-patch-18830' into 'next'
...
Removed ambiguity in deploy.md
See merge request famedly/conduit!525
2023-08-01 11:23:47 +00:00
Timo Kösters
57b86f1130
Merge branch 'msteenhagen-next-patch-22350' into 'next'
...
Correct option error adduser in DEPLOY.md
See merge request famedly/conduit!526
2023-08-01 11:23:28 +00:00
Maarten Steenhagen
3a6eee7019
Correct option error adduser in DEPLOY.md
2023-08-01 11:03:31 +00:00
Maarten Steenhagen
9ce1cad983
Changed 'right' to 'appropriate' to avoid ambiguity (original could be read as right-hand-side)
2023-08-01 10:58:07 +00:00
Timo Kösters
10da9485a5
Merge branch 'threads' into 'next'
...
fix: threads get updated properly
See merge request famedly/conduit!524
2023-07-31 14:24:11 +00:00
Timo Kösters
acfe381dd3
fix: threads get updated properly
...
Workaround for element web while waiting for https://github.com/matrix-org/matrix-js-sdk/pull/3635
2023-07-31 16:18:23 +02:00
girlbossceo
83805c66e5
sanitise potentially sensitive errors
...
prevents errors like DB or I/O errors from leaking filesystem paths
Co-authored-by: infamous <ehuff007@gmail.com >
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-30 17:30:16 +00:00
Timo Kösters
afd8112e25
Merge branch 'spaces' into 'next'
...
Automatic update checker
See merge request famedly/conduit!522
2023-07-29 19:55:51 +00:00
Timo Kösters
b8c164dc60
feat: version checker
2023-07-29 21:53:57 +02:00
Timo Kösters
0453a72890
Merge branch 'patch-1' into 'next'
...
fix: s/ok_or/ok_or_else in relevant places
See merge request famedly/conduit!521
2023-07-29 19:19:05 +00:00
girlbossceo
e2c914cc11
fix: s/ok_or/ok_or_else in relevant places
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-29 19:17:12 +00:00
Timo Kösters
da907451e7
Admin commands to sign and verify jsons
2023-07-29 20:00:12 +02:00
Timo Kösters
2b4a6c96ee
Merge branch 'small-logging-improvements' into 'next'
...
Slight logging improvements
See merge request famedly/conduit!517
2023-07-29 15:00:42 +00:00
girlbossceo
d7061e6984
cargo fmt
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-29 14:30:48 +00:00
girlbossceo
3494d7759e
Return "Hello from Conduit!" on the / route
...
akin to Synapes's "It works!" page, removing an unnecessary warning
about / route being unknown
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-29 14:29:26 +00:00
girlbossceo
cc5dcceacc
Log the room ID, event ID, PDU, and event type where possible
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-29 14:29:26 +00:00
girlbossceo
863103450c
Log the unknown login type in warning level
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-29 14:29:26 +00:00
girlbossceo
a0148a9996
Print relevant room ID and ACL'd server in informational level
...
These are room ACLs, not server ACLs. Causes confusion where people
think their Conduit homeserver was ACL'd. Print where these are coming from
in informational level.
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-29 14:29:26 +00:00
girlbossceo
1f867a2c86
Only print raw malformed JSON body in debug level
...
Signed-off-by: girlbossceo <june@girlboss.ceo >
2023-07-29 14:29:26 +00:00
purplemeteorite
c0a2acb869
Merge branch 'next' into 'fix-broken-links'
...
# Conflicts resolved:
# docker/README.md
2023-07-29 08:02:56 +00:00
Timo Kösters
97835541ce
Merge branch 'uak-next-patch-77212' into 'next'
...
Change link from docker-compose.override.traefik.yml to docker-compose.override.yml in README.md
See merge request famedly/conduit!514
2023-07-29 07:13:58 +00:00
purplemeteorite
081cc66eda
fixed broken traefik links in docker README
2023-07-29 08:26:34 +02:00
purplemeteorite
7489e2c4f6
moved docker-compose.yml into the docker folder
2023-07-29 08:23:17 +02:00
Timo Kösters
1e675dbb68
Merge branch 'next' into 'next'
...
Docs: OCI image registries and tags
See merge request famedly/conduit!492
2023-07-28 19:34:42 +00:00
Timo Kösters
f4c1748ab1
Merge branch 'bugfix/well-known-missing' into 'next'
...
It's ok not being able to find a .well-known response.
See merge request famedly/conduit!519
2023-07-28 15:45:59 +00:00
Tobias Tom
7990822f72
It's ok not being able to find a .well-known response.
2023-07-28 16:26:40 +01:00
Timo Kösters
2a100412fa
Merge branch 'relax-rocksdb' into 'next'
...
relax recovery mode
See merge request famedly/conduit!516
2023-07-27 06:12:31 +00:00
Timo Kösters
3e7652909b
Merge branch 'maximize-fd-limit' into 'next'
...
maximize fd limit
See merge request famedly/conduit!515
2023-07-27 06:11:05 +00:00
Charles Hall
9fb8498067
relax recovery mode
2023-07-26 15:32:36 -07:00
Charles Hall
291290db92
maximize fd limit
2023-07-26 13:24:44 -07:00
uak
54a115caf3
Change link from docker-compose.override.traefik.yml to docker-compose.override.yml in README.md
2023-07-26 18:53:19 +00:00
Timo Kösters
81866170f0
Merge branch 'spaces' into 'next'
...
fix: spaces with restricted rooms
See merge request famedly/conduit!513
2023-07-26 06:40:00 +00:00
Timo Kösters
bf46829595
fix: spaces with restricted rooms
2023-07-26 08:34:12 +02:00
Timo Kösters
9f14ad7125
Merge branch 'sync-up-debian-packaging' into 'next'
...
Sync up Debian packaging
See merge request famedly/conduit!510
2023-07-24 17:10:45 +00:00
Timo Kösters
90a10c84ef
Merge branch 'slidingfixes' into 'next'
...
Better sliding sync
See merge request famedly/conduit!511
2023-07-24 08:48:27 +00:00
Timo Kösters
d220641d64
Sliding sync subscriptions, e2ee, to_device messages
2023-07-24 10:42:52 +02:00
Timo Kösters
caddc656fb
slightly better sliding sync
2023-07-24 10:42:47 +02:00
Paul van Tilburg
b1a591a06c
Also create the conduit (system) group
...
The `chown` command mentioned later in `DEPLOY.md` needs this group to
exist. Also make sure this account cannot be used to login with by
disabling its password and its shell.
This is similar to how the Debian `postinst` script does this.
2023-07-23 12:53:43 +02:00
Paul van Tilburg
3cd3d0e0ff
Add section about how to download/install/deploy
...
This refers to `DEPLOY.md` as to not duplicate the information.
2023-07-23 12:53:36 +02:00
Paul van Tilburg
433dad6ac2
Turn README.Debian into a markdown file
...
It is common to have a markdown file per deployment subdirectory.
Still install it as `README.Debian` to `/usr/share/doc/matrix-conduit`
as per Debian policy.
Also update the link in the main `README.md` file.
2023-07-23 12:37:38 +02:00
Paul van Tilburg
8cf408e966
Fix up permissions of the database path
...
Also apply the database creation and ownership change on every
installation and upgrade.
2023-07-23 12:37:38 +02:00
Timo Kösters
1e560529d8
Merge branch 'nix-upkeep' into 'next'
...
Nix upkeep
See merge request famedly/conduit!505
2023-07-23 09:23:41 +00:00
Timo Kösters
ff98444d03
Merge branch 'nogroup' into 'next'
...
[Security fix] Create dedicated user group
See merge request famedly/conduit!509
2023-07-23 09:22:39 +00:00
x4u
82f31d6b72
Replace nogroup with dedicated user group
2023-07-23 14:21:36 +08:00
Charles Hall
6ae5143ff5
only listen on IPv6 since that's what conduit does
2023-07-21 12:12:37 -07:00
purplemeteorite
bd8fec3836
changed registry options
...
1. Recommended GitLab's own registry over Docker Hub. (Reason: https://gitlab.com/famedly/conduit/-/merge_requests/492#note_1457220261 )
2. Added the development image :next to the list of options.
3. Displayed text for Docker Hub now contains "docker.io" as part of the link for easier copy-paste for podman users. Clicking on the link still takes to the website.
2023-07-21 20:33:32 +02:00
Charles Hall
742331e054
Revert "only use musl on x86_64"
...
This reverts commit 56f0f3dfa4 .
This shouldn't be needed anymore since [this][0] reached nixos-unstable.
[0]: https://github.com/NixOS/nixpkgs/pull/242889
2023-07-16 13:48:05 -07:00
Charles Hall
abd8e1bf54
nixpkgs' rocksdb is now new enough :)
...
This reverts commit abd0a014e8 .
2023-07-16 13:47:42 -07:00
Charles Hall
fa3b1fd9bd
update flake.lock
...
Flake lock file updates:
• Updated input 'crane':
'github:ipetkov/crane/75f7d715f8088f741be9981405f6444e2d49efdd' (2023-06-13)
→ 'github:ipetkov/crane/8b08e96c9af8c6e3a2b69af5a7fa168750fcf88e' (2023-07-07)
• Updated input 'crane/rust-overlay':
'github:oxalica/rust-overlay/c535b4f3327910c96dcf21851bbdd074d0760290' (2023-06-03)
→ 'github:oxalica/rust-overlay/f9b92316727af9e6c7fee4a761242f7f46880329' (2023-07-03)
• Updated input 'fenix':
'github:nix-community/fenix/df0a6e4ec44b4a276acfa5a96d2a83cb2dfdc791' (2023-06-17)
→ 'github:nix-community/fenix/39096fe3f379036ff4a5fa198950b8e79defe939' (2023-07-16)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/a5a71c75e62a0eaa1b42a376f7cf3d348cb5dec6' (2023-06-16)
→ 'github:rust-lang/rust-analyzer/996e054f1eb1dbfc8455ecabff0f6ff22ba7f7c8' (2023-07-15)
• Updated input 'flake-utils':
'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31)
→ 'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/04af42f3b31dba0ef742d254456dc4c14eedac86' (2023-06-17)
→ 'github:NixOS/nixpkgs/8acef304efe70152463a6399f73e636bcc363813' (2023-07-15)
2023-07-16 13:37:40 -07:00
Timo Kösters
e9946f81a0
Merge branch 'e2eefed' into 'next'
...
fix: e2ee over federation
See merge request famedly/conduit!504
2023-07-16 14:54:44 +00:00
Timo Kösters
a9ba067e77
fix: e2ee over federation
2023-07-16 16:50:03 +02:00
Timo Kösters
706148f941
Merge branch 'nhekobug' into 'next'
...
fix: nheko e2ee verification bug
See merge request famedly/conduit!503
2023-07-15 21:46:12 +00:00
Timo Kösters
24402312c5
fix: could not verify own events
2023-07-15 23:43:25 +02:00
Jonas Zohren
17180a3e08
capitalize names
2023-07-13 16:54:56 +00:00
Timo Kösters
3c6ffd88bf
Merge branch 'unbreak-aarch64-nix' into 'next'
...
only use musl on x86_64
See merge request famedly/conduit!502
2023-07-11 14:11:45 +00:00
Timo Kösters
c3966f501c
fix: nheko e2ee verification bug
2023-07-10 23:10:27 +02:00
Charles Hall
56f0f3dfa4
only use musl on x86_64
...
Since that's all I've tested it on. Apparently this caused issues on
aarch64 even though it allegedly shouldn't.
2023-07-10 11:06:19 -07:00
Timo Kösters
ad06d475de
Merge branch 'sliding' into 'next'
...
Very basic Element X support and fixes
See merge request famedly/conduit!501
2023-07-10 14:35:35 +00:00
Timo Kösters
0b4e3de9c0
fix: spaces with restricted rooms
2023-07-10 16:28:08 +02:00
Timo Kösters
edd4a3733f
fix: actually clear memory in the admin commands
2023-07-10 16:27:42 +02:00
Timo Kösters
c17187777f
fix: never try federation with self
2023-07-10 16:26:36 +02:00
Timo Kösters
78e7b711df
fix: better sliding sync
2023-07-10 16:25:33 +02:00
Timo Kösters
4b7d3e24dd
bump ruma
2023-07-10 16:24:57 +02:00
Timo Kösters
e4f769963f
feat: very simple sliding sync implementation
2023-07-06 10:32:25 +02:00
Jonas Zohren
eab5dac6e8
Merge branch 'fix-docker-build-image-size' into 'next'
...
ci: Fix "0 B" image size display
See merge request famedly/conduit!499
2023-07-04 21:18:25 +00:00
Jonas Zohren
c4824a6ebc
ci: Fix "0 B" image size display
...
works around gitlab issue https://gitlab.com/gitlab-org/gitlab/-/issues/388865#workaround
2023-07-04 21:13:11 +00:00
Timo Kösters
f8a36e7554
Merge branch 'memory' into 'next'
...
improvement: better memory usage and admin commands to analyze it
See merge request famedly/conduit!497
2023-07-03 17:43:27 +00:00
Timo Kösters
a2c3256ced
improvement: better memory usage and admin commands to analyze it
2023-07-03 19:41:07 +02:00
Timo Kösters
833c1505f1
Merge branch 'hierarchy' into 'next'
...
feat: space hierarchies
See merge request famedly/conduit!495
2023-07-03 13:56:47 +00:00
Timo Kösters
bac13d08ae
fix: cache invalidation
2023-07-02 22:50:50 +02:00
Timo Kösters
f0a27dcb00
Merge branch 'next' into 'next'
...
update example configurations in DEPLOY.md for Apache and Nginx which include...
See merge request famedly/conduit!493
2023-07-02 20:20:31 +00:00
Timo Kösters
9d49d599f3
feat: space hierarchies
2023-07-02 22:12:06 +02:00
Jacob Taylor
2640f67e4b
remove comments
2023-07-02 18:00:30 +00:00
Timo Kösters
eb8bc1af8d
Merge branch 'jplatte/axum06' into 'next'
...
Upgrade axum to 0.6
See merge request famedly/conduit!494
2023-07-02 07:02:04 +00:00
Jonas Platte
0ded637b4a
Upgrade axum to 0.6
2023-06-29 11:20:52 +02:00
Jacob Taylor
dc50197a13
update example configurations in DEPLOY.md for Apache and Nginx which include upstream proxy timeouts of 5 minutes to allow for room joins which take a while
2023-06-29 02:42:32 +00:00
purplemeteorite
06a1321e56
easier-to-read docker setup instructions
2023-06-28 18:51:44 +02:00
Timo Kösters
6a6f8e80f1
Merge branch 'joinfix' into 'next'
...
improvement: randomize server order for alias joins
See merge request famedly/conduit!491
2023-06-28 15:47:36 +00:00
Timo Kösters
fd1ccbd3ad
improvement: randomize server order for alias joins
2023-06-28 17:44:30 +02:00
Timo Kösters
3a1a72df98
Merge branch 'stateres' into 'next'
...
Make state resolution more resistant and some sync performance improvements
See merge request famedly/conduit!490
2023-06-28 10:46:32 +00:00
Timo Kösters
84784970b2
Merge branch 'fix/docker-ci-pipeline' into 'next'
...
ci: Adjust to current docker
See merge request famedly/conduit!488
2023-06-27 18:54:40 +00:00
Timo Kösters
d64a56d88b
Do soft fail check before doing state res to allow leave events
2023-06-27 18:48:34 +02:00
Timo Kösters
be877ef719
Improve sync performance with more caching and wrapping things in Arcs to avoid copies
2023-06-27 13:15:11 +02:00
Timo Kösters
7c6d25dcd1
Do state res even if the event soft fails
2023-06-27 13:13:33 +02:00
Timo Kösters
b671238aa0
Merge branch 'rumafix' into 'next'
...
bump ruma
See merge request famedly/conduit!489
2023-06-26 21:11:20 +00:00
Timo Kösters
91180e011d
bump ruma
2023-06-26 23:10:26 +02:00
Jonas Zohren
26b8605fa0
ci: Adjust to current docker
2023-06-26 22:26:33 +02:00
Timo Kösters
dbd360ebb9
Merge branch 'unbreak' into 'next'
...
fix rustc version, nix upkeep
See merge request famedly/conduit!482
2023-06-26 19:12:46 +00:00
Timo Kösters
48e6e0659f
Merge branch 'relations' into 'next'
...
Add relations endpoints, edits and threads work now
See merge request famedly/conduit!487
2023-06-26 19:11:57 +00:00
Timo Kösters
72eb1972c1
Add relations endpoints, edits and threads work now
2023-06-26 12:38:51 +02:00
Timo Kösters
63cbaedb79
Merge branch 'bearerfix' into 'next'
...
fix: send correct bearer token to appservices
Closes #358
See merge request famedly/conduit!486
2023-06-26 07:16:20 +00:00
Timo Kösters
db6def8800
fix: send correct bearer token to appservices
2023-06-26 09:15:52 +02:00
Timo Kösters
caa841c434
Merge branch 'contextfix' into 'next'
...
fix: /context for element android. start and end must be set even with limit=0
See merge request famedly/conduit!485
2023-06-26 06:34:10 +00:00
Timo Kösters
49a0f3a60d
fix: /context for element android. start and end must be set even with limit=0
2023-06-26 08:33:31 +02:00
Timo Kösters
bac82f43af
Merge branch 'compressionoff' into 'next'
...
Disable compression, see https://en.wikipedia.org/wiki/BREACH
See merge request famedly/conduit!484
2023-06-25 21:46:34 +00:00
Timo Kösters
15cc801840
Disable compression, see https://en.wikipedia.org/wiki/BREACH
2023-06-25 23:43:54 +02:00
Timo Kösters
5f9ca8e458
Merge branch 'threads' into 'next'
...
feat: WIP relationships and threads
See merge request famedly/conduit!483
2023-06-25 20:59:53 +00:00
Timo Kösters
c7e0ea525a
feat: WIP relationships and threads
2023-06-25 19:40:33 +02:00
Charles Hall
abd0a014e8
nixpkgs' rocksdb is too old :(
2023-06-17 17:04:57 -07:00
Charles Hall
4a7d3c7301
upgrade rust in Cargo.toml/flake.nix
...
Looks like this should've happened as part of !479 .
2023-06-17 17:04:11 -07:00
Charles Hall
15e60818c9
pin nixos-unstable, update flake.lock
...
`nixos-unstable` is the rolling release channel of NixOS. The default is
the master branch, which doesn't always have a populated binary cache
and so may result in compiling a bunch of stuff unnecessarily.
2023-06-17 17:02:10 -07:00
Timo Kösters
def079267d
Merge branch 'adjust-to-rust-version-bumps' into 'next'
...
chore(ci): Adjust to rust version bumps
See merge request famedly/conduit!479
2023-06-10 15:35:22 +00:00
Jonas Zohren
a3a9b60abc
chore(ci): Adjust to rust version bumps
2023-06-10 15:35:22 +00:00
Timo Kösters
808b12f618
Merge branch 'restricted' into 'next'
...
fix: restricted room error is now FORBIDDEN
See merge request famedly/conduit!478
2023-06-08 18:52:03 +00:00
Timo Kösters
faa9208a3e
cargo fmt
2023-06-08 20:51:34 +02:00
Timo Kösters
1ea27c4f97
fix: restricted room error is now FORBIDDEN
2023-06-08 20:49:42 +02:00
Timo Kösters
422ee40107
Merge branch 'mr-conduit-appservice-login' into 'next'
...
feat: support end to bridge encryption
See merge request famedly/conduit!454
2023-05-26 12:48:23 +00:00
Timo Kösters
0280fa5793
Merge branch 'next' into 'next'
...
fix nix readme to work with ipv6
See merge request famedly/conduit!475
2023-05-26 12:30:02 +00:00
digital
664d6baace
fix: make requested changes
2023-05-26 13:06:28 +02:00
Jade
be9196430d
fix nix readme to work with ipv6
2023-05-25 18:21:01 +00:00
Jonas Zohren
533bccad8f
Merge branch '350-debian-package-from-docker-packager-result-doesn-t-seem-to-install-configuration-files' into 'next'
...
Fix CI + Debian packaging
Closes #350
See merge request famedly/conduit!474
2023-05-21 20:41:08 +00:00
Jonas Zohren
a4261aac76
* Fix Debian builds by actually including the whole debian directory into deb creation
...
* Fix CI by explicitly setting hostname of docker in docker service
* Fix Docker build by bumping the Rust version to 1.69
* Fix cargo check in CI by bumping the Rust version to 1.69
2023-05-21 20:41:08 +00:00
Timo Kösters
c38df57279
Merge branch 'deploymd' into 'next'
...
Minor DEPLOY.md changes
See merge request famedly/conduit!473
2023-05-21 13:17:29 +00:00
Timo Kösters
4e2bbf9d6a
Minor DEPLOY.md changes
2023-05-21 15:16:23 +02:00
Timo Kösters
7a9ec851fc
Merge branch 'bump' into 'next'
...
Bump dependencies
See merge request famedly/conduit!472
2023-05-21 11:45:20 +00:00
Timo Kösters
d62cd2ae51
chore: bump dependencies
2023-05-21 13:42:59 +02:00
Timo Kösters
49b5af6d45
chore: bump rocksdb
2023-05-21 13:41:51 +02:00
Timo Kösters
1f1444da8c
Merge branch 'pushrules' into 'next'
...
Improvements to pushrules endpoints
Closes #316
See merge request famedly/conduit!461
2023-05-21 10:41:31 +00:00
Timo Kösters
2a9a908343
Merge branch 'x4u/add-apache-cloudflare-deploy-info' into 'next'
...
X4u/add apache cloudflare deploy info
See merge request famedly/conduit!471
2023-05-21 07:04:59 +00:00
x4u
921b266d86
X4u/add apache cloudflare deploy info
2023-05-21 07:04:58 +00:00
Timo Kösters
dbbd164e39
Merge branch 'admin-command-fix' into 'next'
...
Recognize admin commands without : after tag
See merge request famedly/conduit!470
2023-05-17 19:09:54 +00:00
Jonathan Flueren
f5e3b0e2dd
Recognize admin commands without : after tag
...
Very useful since many Matrix clients don't insert : after user tags
2023-05-15 19:25:57 +00:00
Timo Kösters
1b9e63f426
Merge branch 'unbreak-nix' into 'next'
...
Fix Nix builds (actually) (for real) (it seriously builds this time)
See merge request famedly/conduit!466
2023-04-05 09:59:09 +00:00
Charles Hall
eb4323cc0f
use mold on linux
2023-04-04 19:16:07 -07:00
Charles Hall
a6712627e4
tiny refactor
2023-04-04 19:15:09 -07:00
Charles Hall
3be32c4dac
factor out shared things
2023-04-04 17:52:15 -07:00
Charles Hall
55149e3336
use crane instead of naersk
...
I guess naersk still doesn't support git dependencies using workspace
inheritance, but crane does.
2023-04-04 17:42:24 -07:00
Charles Hall
2b63e46fc5
use system rocksdb
...
This mostly just improves build times.
2023-04-04 17:42:13 -07:00
Charles Hall
a0c449e570
update flake.lock
2023-04-04 17:09:49 -07:00
Charles Hall
c997311bea
Revert "build(nix): fix flake builds"
...
This reverts commit 5d913f7010 .
Sorry, I don't understand how any of this works, and it seems pretty
opaque/difficult to fine-tune.
2023-04-04 17:02:34 -07:00
Kévin Commaille
1929ca5d9d
Add a database migration to fix and update the default pushrules
2023-03-18 15:03:57 +01:00
Kévin Commaille
88c6bf7595
Always return an error if a push rule is not found
2023-03-18 15:03:57 +01:00
Kévin Commaille
4635644e21
Use the ruma methods for managing rulesets
2023-03-18 15:03:57 +01:00
Kévin Commaille
f53ecaa97d
Bump Ruma
2023-03-18 15:03:56 +01:00
Timo Kösters
f704169aeb
Merge branch 'fixjoin' into 'next'
...
fix: let requests continue event if client disconnects
See merge request famedly/conduit!464
2023-03-18 07:59:36 +00:00
Timo Kösters
2a7c4693b8
fix: don't accept new requests when shutting down
2023-03-18 08:58:20 +01:00
Timo Kösters
da3871f39a
fix: let requests continue event if client disconnects
2023-03-17 22:45:13 +01:00
Timo Kösters
664ee7d89a
Merge branch 'backfill' into 'next'
...
feat: handle backfill requests
See merge request famedly/conduit!459
2023-03-16 13:32:42 +00:00
Timo Kösters
42b12934e3
Don't crash when a room errors
2023-03-13 10:43:09 +01:00
Timo Kösters
63f787f635
Reduce logs from info to debug
2023-03-13 10:39:19 +01:00
Timo Kösters
a1bd348977
fix: history visibility
2023-03-13 10:39:19 +01:00
Timo Kösters
27f29ba699
fix: SRV lookups should end with a period
2023-03-13 10:39:19 +01:00
Timo Kösters
cb0ce5b08f
Logs for server resolution
2023-03-13 10:39:18 +01:00
Timo Kösters
b7c99788e4
All the logs
2023-03-13 10:39:18 +01:00
Timo Kösters
2316d89048
Even more logging
2023-03-13 10:39:18 +01:00
Timo Kösters
bde4880c1d
fix: don't unwrap server keys
2023-03-13 10:39:18 +01:00
Timo Kösters
8b648d0d3f
fix: force abort federation requests after 2 minutes
2023-03-13 10:39:18 +01:00
Timo Kösters
4617ee2b6b
More logging for remote joins
2023-03-13 10:39:18 +01:00
Timo Kösters
10fa686c77
feat: respect history visibility
2023-03-13 10:39:18 +01:00
Timo Kösters
2a16a5e967
fix: don't send nulls as unsigned content
2023-03-13 10:39:17 +01:00
Timo Kösters
2aa0a2474b
fix: ignore unparsable pdus in /send
2023-03-13 10:39:17 +01:00
Timo Kösters
d39003ffc0
Allow backfilling create event itself
2023-03-13 10:39:17 +01:00
Timo Kösters
eae0989c40
fix: refactor backfill and add support for search
2023-03-13 10:39:17 +01:00
Timo Kösters
17a6431f5f
fix: make backfilled events reachable
2023-03-13 10:39:17 +01:00
Timo Kösters
fcfb06ffa6
fix: allow handling create event itself
2023-03-13 10:39:17 +01:00
Timo Kösters
7bdd9660aa
feat: ask for backfill
2023-03-13 10:39:17 +01:00
Timo Kösters
23b18d71ee
feat: handle backfill requests
...
Based on https://gitlab.com/famedly/conduit/-/merge_requests/421
2023-03-13 10:39:16 +01:00
Timo Kösters
84cfed5231
Merge branch 'fix-nix-build' into 'next'
...
Fix Nix flake build
See merge request famedly/conduit!456
2023-02-18 21:18:51 +00:00
Timo Kösters
cdcf4a017d
Merge branch 'fixreset' into 'next'
...
fix: allow reactivation of users using reset-password admin command
See merge request famedly/conduit!458
2023-02-11 11:49:54 +00:00
Timo Kösters
fc0aff20cf
fix: allow reactivation of users using reset-password admin command
2023-02-11 12:43:41 +01:00
Timo Kösters
4223288cdf
Merge branch 'fixbadservernameusers' into 'next'
...
fix: ignore bad user ids in migration
See merge request famedly/conduit!457
2023-02-07 16:19:59 +00:00
Timo Kösters
a4f18f99ad
fix: ignore bad user ids
2023-02-07 16:29:41 +01:00
Jonas Zohren
06df04f61c
Merge branch 'fix_docker_healthcheck_for_address' into 'next'
...
Add a dynamic address resolution to the Docker healthcheck
See merge request famedly/conduit!434
2023-01-27 22:43:04 +00:00
Moritz Heiber
cfcc9086ff
Add a dynamic address resolution to the Docker healthcheck
2023-01-27 22:43:04 +00:00
Yusuf Bera Ertan
11b9cfad5e
docs: update nix comment for rust-version in Cargo.toml
2023-01-28 00:14:58 +03:00
Yusuf Bera Ertan
5d913f7010
build(nix): fix flake builds
2023-01-28 00:10:21 +03:00
Jonas Zohren
d68dad580b
Merge branch 'complement-improvements' into 'next'
...
Complement improvements
See merge request famedly/conduit!404
2023-01-27 16:41:34 +00:00
Jonathan de Jong
e13dc7c14a
add little readme
2023-01-26 18:28:33 +01:00
Jonathan de Jong
b158896396
Merge remote-tracking branch 'origin/next' into complement-improvements
2023-01-26 18:19:39 +01:00
Timo Kösters
f95dd4521c
Merge branch 'validate-state-of-admins-room' into 'next'
...
Validate PDU in admins room
See merge request famedly/conduit!382
2023-01-24 13:46:49 +00:00
Timo Kösters
1e77373332
Merge branch 'braid/ci-magic' into 'next'
...
fix: adjust CI config to runner requirements
See merge request famedly/conduit!455
2023-01-19 07:46:36 +00:00
The one with the braid
f01b96588d
fix: adjust CI config to runner requirements
...
- make use of more stable BTRFS driver
- set default pull policy to `if-not-present`
Signed-off-by: The one with the braid <the-one@with-the-braid.cf >
2023-01-19 07:42:23 +01:00
digital
4d589d9788
feat: support end to bridge encryption
...
by implementing appservice logins
2023-01-18 23:34:18 +01:00
Timo Kösters
815db0d962
Merge branch 'joinfix' into 'next'
...
Maybe fix room joins
See merge request famedly/conduit!453
2023-01-14 20:22:55 +00:00
Timo Kösters
809c9b4481
Maybe fix room joins
...
This is a workaround for https://github.com/hyperium/hyper/issues/2312
2023-01-14 21:20:16 +01:00
Timo Kösters
c6e3438e76
Merge branch 'trusted-servers-doc' into 'next'
...
document `trusted_servers` option
See merge request famedly/conduit!451
2023-01-09 16:35:54 +00:00
Charles Hall
844508bc48
document trusted_servers option
2023-01-09 08:14:13 -08:00
Timo Kösters
b3aec63d67
Merge branch 'partial-nix-fix' into 'next'
...
partial nix fix
See merge request famedly/conduit!446
2023-01-09 15:58:40 +00:00
Timo Kösters
2da4ae6b3b
Merge branch 'code-of-conduct' into 'next'
...
Add Contributor's Covenant Code of Conduct
See merge request famedly/conduit!448
2023-01-09 15:37:19 +00:00
Timo Kösters
5e6b498c22
Merge branch 'fix-nix-docs' into 'next'
...
fix nix docs
See merge request famedly/conduit!449
2023-01-09 15:35:39 +00:00
Charles Hall
391beddaf4
fix nix docs
...
I made some silly copy paste errors while writing this...
2023-01-08 12:44:59 -08:00
r3g_5z
112b76b1c1
Add Contributor's Covenant Code of Conduct
...
Signed-off-by: r3g_5z <june@girlboss.ceo >
2023-01-08 02:44:25 -05:00
Charles Hall
315944968b
remind people to update the hash
...
And offer help since it's pretty easy but impossible if you don't have
Nix installed.
2022-12-23 00:30:36 -08:00
Charles Hall
9f74555c88
update flake.lock
2022-12-23 00:29:43 -08:00
Charles Hall
0a4e8e5909
update rust toolchain hash
2022-12-23 00:29:43 -08:00
Timo Kösters
19156c7bbf
Update Cargo.lock
2022-12-21 16:16:07 +01:00
Timo Kösters
2a66ad4329
Bump version to 0.6.0-alpha
2022-12-21 16:08:05 +01:00
Timo Kösters
53f14a2c4c
Merge remote-tracking branch 'origin/next'
2022-12-21 15:51:47 +01:00
Timo Kösters
d20f21ae32
Merge branch 'nextversion' into 'next'
...
Preparing for v0.5.0 release
See merge request famedly/conduit!443
2022-12-21 13:12:18 +00:00
Timo Kösters
f7db3490f6
Bump version to v0.5.0
2022-12-21 14:08:09 +01:00
Timo Kösters
c7a7c913d4
Bump ruma
2022-12-21 14:08:08 +01:00
Timo Kösters
76a82339a2
tweak default rocksdb settings
2022-12-21 13:44:23 +01:00
Timo Kösters
94df9cdbba
Merge branch 'Nyaaori/prev_events-config-option' into 'next'
...
Make prev_events fetch limit configurable
See merge request famedly/conduit!422
2022-12-21 11:06:42 +00:00
Timo Kösters
b231d7f15c
Merge branch 'Nyaaori/membership-events-reason' into 'next'
...
Implement membership ban/join/leave/invite reason
See merge request famedly/conduit!442
2022-12-21 10:58:05 +00:00
Nyaaori
7cc346bc18
feat: Implement membership ban/join/leave/invite reason support
2022-12-21 11:45:12 +01:00
Timo Kösters
48bc0db723
Merge branch 'Nyaaori/code-cleanup' into 'next'
...
Code Cleanup
See merge request famedly/conduit!441
2022-12-21 10:00:40 +00:00
Nyaaori
7c196f4e00
feat: Add max prev events config option, allowing adjusting limit for prev_events fetching
2022-12-21 10:55:32 +01:00
Nyaaori
c86313d4fa
chore: code cleanup
...
https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
2022-12-21 10:42:12 +01:00
Timo Kösters
7b98741163
Merge branch 'restrictedjoinlocally' into 'next'
...
improvement: handle restricted joins locally
See merge request famedly/conduit!439
2022-12-18 08:51:31 +00:00
Timo Kösters
2a04c213f9
improvement: handle restricted joins locally
2022-12-18 09:44:46 +01:00
Timo Kösters
d7eaa9c5cc
Merge branch 'logging-cleanup' into 'next'
...
Replace println/dbg calls with corresponding macros from tracing crate
See merge request famedly/conduit!424
2022-12-18 06:57:23 +00:00
Timo Kösters
2a0515f528
Replace println/dbg calls with corresponding macros from tracing crate
2022-12-18 07:52:22 +01:00
Timo Kösters
3930fd08d7
Merge branch 'docs' into 'next'
...
Update README
See merge request famedly/conduit!438
2022-12-18 06:06:26 +00:00
Timo Kösters
683eefbd0b
Update README
2022-12-18 07:02:07 +01:00
Timo Kösters
d963ad8cc1
Merge branch 'jaegerfix' into 'next'
...
fix: jaeger support
See merge request famedly/conduit!437
2022-12-18 05:52:49 +00:00
Timo Kösters
6d5e54a66b
fix: jaeger support
2022-12-18 06:37:03 +01:00
Timo Kösters
2b2bfb91c2
Merge branch 'up-ruma' into 'next'
...
Upgrade Ruma
See merge request famedly/conduit!435
2022-12-18 05:05:33 +00:00
Timo Kösters
f1d2574651
finish upgrade ruma
2022-12-17 09:28:08 +01:00
Jonas Platte
d39ce1401d
WIP: Upgrade Ruma
2022-12-16 11:57:32 +01:00
Jonas Platte
7fd5b22e3b
The procMacro option has long been on by default
...
… and it's good to let people have their own local configs that won't be
tracked by git.
2022-12-16 10:12:11 +01:00
Timo Kösters
db7a7085f4
Merge branch 'fix/pushrules_database' into 'next'
...
Migrate database to use correct rule id in pushrules.
See merge request famedly/conduit!405
2022-12-16 08:38:49 +00:00
Timo Kösters
5894d35eb2
Merge branch 'fixrestrictedjoin' into 'next'
...
fix: rejoining restricted rooms over federation
See merge request famedly/conduit!431
2022-11-30 21:32:12 +00:00
Timo Kösters
b9fd6127e2
fix: rejoining restricted rooms over federation
2022-11-30 22:30:55 +01:00
Jonas Zohren
bb9bc0a001
Merge branch 'dockerdoc-nginx-content-type' into 'next'
...
Describe a better way to enforce Content-Type in nginx
See merge request famedly/conduit!415
2022-11-29 17:56:14 +00:00
Timo Kösters
f4dd051a1d
Merge branch 'sd-notify' into 'next'
...
call sd-notify after init and before exit
See merge request famedly/conduit!426
2022-11-28 15:50:12 +00:00
Vladan Popovic
06d3efc4d0
feat(systemd): call sd-notify after init and before exit
2022-11-27 22:17:15 +01:00
Vladan Popovic
66ad114e19
feat: add systemd feature flag
2022-11-27 22:17:15 +01:00
Jonas Zohren
4b737b46ac
Merge branch 'cross-compiling' into 'next'
...
Added cross-compilation instructions
See merge request famedly/conduit!430
2022-11-27 20:15:48 +00:00
Orhideous
bcd522e75f
Added cross-compilation instructions to DEPLOY.md
2022-11-27 20:15:47 +00:00
Jonas Zohren
249960b111
Merge branch 'fix-lock' into 'next'
...
Update Cargo.lock
See merge request famedly/conduit!427
2022-11-25 21:44:31 +00:00
Andriy Kushnir (Orhideous)
583aea187b
Update Cargo.lock
2022-11-25 23:13:58 +02:00
Timo Kösters
396dac6d82
Merge branch 'fixroomleave' into 'next'
...
fix: unable to leave room
See merge request famedly/conduit!419
2022-11-21 20:04:27 +00:00
Timo Kösters
9149be31af
Merge branch 'logs-cleanup' into 'next'
...
Clean some noisy logs
See merge request famedly/conduit!423
2022-11-21 20:03:17 +00:00
Timo Kösters
32a4ded4a1
Merge branch 'Nyaaori/reduce-generated-token-length' into 'next'
...
Reduce length of generated access tokens and session ids
See merge request famedly/conduit!386
2022-11-21 20:02:20 +00:00
Timo Kösters
e3dabdf525
Merge branch 'Nyaaori/cleanup' into 'next'
...
misc. cleanup
See merge request famedly/conduit!420
2022-11-21 19:59:45 +00:00
Nyaaori
b59304a4df
Reduce length of generated access tokens and session ids
...
Reduces generated tokens and session ids down to 32 characters (~190 bits of entropy) in length
2022-11-21 20:51:59 +01:00
Nyaaori
66bc41125c
refactor: cleanup
2022-11-21 20:50:39 +01:00
Nyaaori
6786c44f4d
chore: Fix MSRV
...
Ruma requires Rust 1.64
2022-11-21 20:50:30 +01:00
Andriy Kushnir (Orhideous)
a3a1db124d
Clean some noisy logs
2022-11-21 21:48:06 +02:00
Timo Kösters
3b3c451c83
fix: unable to leave room
2022-11-21 19:50:48 +01:00
Timo Kösters
cf99316082
Merge branch 'dendritefix' into 'next'
...
Dendrite invite fix
See merge request famedly/conduit!416
2022-11-09 20:27:22 +00:00
Timo Kösters
c063700255
fix: invite dendrite users
2022-11-09 21:14:17 +01:00
Timo Kösters
7540227388
chore: bump dependencies
2022-11-09 18:46:10 +01:00
Ticho 34782694
09015f113c
Describe a better way to enforce Content-Type in nginx
...
add_header will not override the Content-Type header set by the server,
but will instead add another header below, which is obviously not ideal.
The proposed change will instead tell nginx to set the correct value for
this header straight away.
2022-11-08 15:56:24 +00:00
Paul Beziau
a2d8aec1e3
Moving the unwraping of a variable
...
Moving the unwraping of the variable "rule" inside the condition instead of the if body, for the migration of the database from version 11 to 12.
2022-11-03 13:12:53 +00:00
Timo Kösters
ccdaaceb33
Merge branch 'ci-revamp-2022-10' into 'next'
...
Fix CI
See merge request famedly/conduit!414
2022-11-02 16:47:48 +00:00
Jonas Zohren
b37876f3b2
fix(ci): Only build in (remote host) docker and switch to glibc
2022-11-02 12:12:48 +01:00
Timo Kösters
e8e0a4dcc5
Merge branch 'Nyaaori/fix-trusted-server-panic' into 'next'
...
Cleanly handle invalid response from trusted server instead of panicking
See merge request famedly/conduit!411
2022-10-31 11:35:55 +00:00
Nyaaori
23cf39c525
Cleanly handle invalid response from trusted server instead of panicking
2022-10-31 12:28:30 +01:00
Nyaaori
00996dd834
Cargo Clippy
2022-10-31 09:31:17 +01:00
Timo Kösters
2a52f666dc
Merge branch 'fixtyping' into 'next'
...
Fix typing indicators and unencrypted messages in encrypted rooms
See merge request famedly/conduit!409
2022-10-30 20:25:45 +00:00
Timo Kösters
0cf6545116
fix: not sending enough state on join
2022-10-30 21:23:43 +01:00
Timo Kösters
5d691f405e
fix: stuck typing indicators
2022-10-30 21:22:32 +01:00
Timo Kösters
c61914c8e1
Merge branch 'fixhead' into 'next'
...
fix: HEAD requests should continue to produce METHOD_NOT_ALLOWED
See merge request famedly/conduit!402
2022-10-30 19:45:58 +00:00
Timo Kösters
9548c84d32
Merge branch 'fixnotifcount' into 'next'
...
fix: element android did not reset notification counts
See merge request famedly/conduit!408
2022-10-30 19:43:39 +00:00
Timo Kösters
02dd3d32f2
fix: element android did not reset notification counts
2022-10-30 20:41:32 +01:00
Timo Kösters
7c98ba64aa
fix: HEAD requests should produce METHOD_NOT_ALLOWED
2022-10-30 19:53:05 +01:00
Jonathan de Jong
52018c3967
allow complement dockerfile to copy over target folder
2022-10-28 21:04:05 +02:00
Timo Kösters
e86fb11512
Merge branch 'nabulator-next-patch-84388' into 'next'
...
Update nginx configuration to allow for larger uploads.
See merge request famedly/conduit!407
2022-10-28 13:32:02 +00:00
Timo Kösters
20e3c42456
Merge branch 'add-nix-flake' into 'next'
...
add nix flake
See merge request famedly/conduit!403
2022-10-28 13:31:21 +00:00
Nabulator
1aff2a54ef
comment typo
2022-10-27 04:23:07 +00:00
Nabulator
238ebcfcac
Update nginx configuration to allow for larger uploads.
2022-10-27 04:20:56 +00:00
Timo Kösters
876fdf480d
Merge branch '3pid_403_next' into 'next'
...
Return 403 to 3pid token routes to signal not implemented
See merge request famedly/conduit!375
2022-10-25 20:47:41 +00:00
James Blachly
3bc0a1924b
Return 403 to 3pid token routes to signal not implemented
2022-10-25 20:47:41 +00:00
Timo Kösters
4af998963b
Merge branch 'fix-axum-request-size' into 'next'
...
fix(main): fix request size limit to max_request_size (axum defaults 2MB)
See merge request famedly/conduit!406
2022-10-25 20:34:33 +00:00
AndSDev
10d2da3009
fix(main): fix request size limit to max_request_size (axum defaults 2MB)
2022-10-25 12:53:58 +03:00
Paul Beziau
d47c1a8ba6
Fix database version check & code formating
2022-10-21 12:27:11 +00:00
Paul Beziau
9c0c74f547
Migrate database to use correct rule id in pushrules.
...
it convert :
- ".m.rules.call" to ".m.rule.call"
- ".m.rules.room_one_to_one" to ".m.rule.room_one_to_one"
- ".m.rules.encrypted_room_one_to_one" to ".m.rule.encrypted_room_one_to_one"
- ".m.rules.message" to ".m.rule.message"
- ".m.rules.encrypted" to ".m.rule.encrypted"
related to issue #264
2022-10-18 09:15:07 +00:00
Jonathan de Jong
215d909e59
More debug info when try_from_http_request fails
2022-10-17 18:41:59 +02:00
Jonathan de Jong
ada15ceacc
Complement improvements
2022-10-17 18:41:45 +02:00
Charles Hall
716f82db6d
add nix/nixos deployment documentation
2022-10-16 10:50:52 -07:00
Charles Hall
fe7d8c4f12
add nix flake
...
Also add `.envrc` for direnv + Nix users. This makes developing locally
easier for us NixOS folks.
The flake itself will allow NixOS users to pull code directly from
Conduit's repository, making it completely trivial to stay up-to-date
with every commit.
I'd also like to add a NixOS module directly to this repository at some
point so that new configuration options will be available in the NixOS
module faster. But for now, NixOS users can simply override
`serivces.matrix-conduit.package` and get pretty much all the
functionality.
I've added myself to the `CODEOWNERS` file for the Nix files, since I am
willing to maintain this stuff. I use Conduit on NixOS so I'm personally
invested in having this work.
Lastly, `.gitignore` was updated to exclude symlinks created by `direnv`
and `nix build` and other such Nix commands.
This doesn't come without maintenance burden, however:
* The `sha256` in `flake.nix` will need to be updated whenever Conduit's
MSRV is updated, but that should be pretty infrequent.
* `nix flake update` should be run every so often to pull in updates to
`nixpkgs` and other flake inputs. I think downstream users can also
override this themselves with `inputs.<name>.inputs.<name>.follows`.
* `nix flake check` should be run in CI to ensure Nix builds keep
working.
* `nixpkgs-fmt --check $(fd '\.nix')` (or similar) should be run in CI
to ensure style uniformity.
2022-10-15 19:26:53 -07:00
Timo Kösters
cb2b5beea8
Merge branch 'fix_persy' into 'next'
...
fix: update persy implementation after refactor
See merge request famedly/conduit!396
2022-10-15 12:13:36 +00:00
Timo Kösters
2231a69b4c
fix: make previous MR compile
2022-10-15 14:07:27 +02:00
Timo Kösters
13052388a7
Merge branch 'conduit-next' into next
2022-10-15 13:55:39 +02:00
Max Cohen
6fd39ae174
Raise 404 when room doesn't exist
...
Raise 404 "Room not found" when changing or accessing room visibility
settings (`GET` and `PUT
/_matrix/client/r0/directory/list/room/{roomId}`).
See issue #290
2022-10-15 13:52:58 +02:00
Timo Kösters
2627ca5e3d
Merge branch 'update-rust' into 'next'
...
update rust to avoid a cargo problem
See merge request famedly/conduit!395
2022-10-15 11:50:55 +00:00
Timo Kösters
ed5b8d6a46
Merge branch 'Nyaaori/fix-whoami-appservices' into 'next'
...
Fix is_guest value on whoami for appservice users
Closes #310
See merge request famedly/conduit!401
2022-10-15 11:32:49 +00:00
Nyaaori
2d0fdddd34
Do not return true for is_guest on whoami for appservice users
2022-10-15 13:17:58 +02:00
Timo Kösters
3054af41ba
Merge branch 'Nyaaori/bump-default-room-version' into 'next'
...
Bump default room version to V9
See merge request famedly/conduit!400
2022-10-15 11:02:44 +00:00
Nyaaori
1e1a144dfa
Move room version 10 out of experimental/unstable
2022-10-15 12:17:06 +02:00
Nyaaori
cc3e1f58cc
Bump default room version to V9; per matrix spec recommendation
2022-10-15 12:16:02 +02:00
Timo Kösters
b1991c8f4f
Merge branch 'Nyaaori/rejoin-fix' into 'next'
...
Rejoin over federation if we are not participating
See merge request famedly/conduit!399
2022-10-15 09:56:55 +00:00
Timo Kösters
6f7f2820ce
Merge branch 'Nyaaori/restricted-join-fix' into 'next'
...
Fix doing restricted joins into rooms we are not participating in
See merge request famedly/conduit!398
2022-10-15 09:50:25 +00:00
Nyaaori
e9697f13d6
Handle initiating restricted joins over federation
...
Allows Conduit users to join restricted rooms if we are not currently participating
2022-10-15 10:46:50 +02:00
Nyaaori
3b0aa23fdf
Rejoin room over federation if we are not participating in it; do not include invited users in participating servers calculation
2022-10-15 10:38:30 +02:00
Timo Kösters
aca6218c0a
Merge branch 'unrecognizedmethods' into 'next'
...
fix: send unrecognized error on wrong http methods
See merge request famedly/conduit!397
2022-10-15 08:35:39 +00:00
Timo Kösters
3a45628e1d
fix: send unrecognized error on wrong http methods
2022-10-15 00:28:43 +02:00
AndSDev
e923f63c49
fix(service/rooms/timeline): fix validating for non-joined members
2022-10-14 14:45:05 +03:00
Tglman
842feabced
fix: update persy implementation after refactor
2022-10-13 20:02:36 +01:00
Charles Hall
286936db32
msrv is 1.63 in Cargo.toml; use that
2022-10-13 08:26:46 -07:00
Charles Hall
bf7c4b4001
update rust to avoid a cargo problem
...
We were hitting [this bug][0] when trying to select a version for clap
^4.
[0]: https://github.com/rust-lang/cargo/issues/10623
2022-10-13 08:06:49 -07:00
AndSDev
d755a96c2c
refactor(service/rooms/timeline): add cache for server_name
2022-10-13 11:19:51 +00:00
Timo Kösters
c948324cf2
Merge branch 'fix-admin-help' into 'next'
...
fix `@conduit help` not working in the admin room
See merge request famedly/conduit!392
2022-10-13 11:15:49 +00:00
AndSDev
76f81ac201
feat(db/rooms): disable banning for last user and conduit user in admins room
2022-10-13 14:15:23 +03:00
Timo Kösters
ce188daccb
Merge branch 'conduit-lower-default-log-level' into HEAD
2022-10-13 13:13:03 +02:00
exin
98702da4e6
Lower default log level for docker
2022-10-13 13:11:15 +02:00
exin
92f7f0c849
Lower log level commented config options
2022-10-13 13:11:15 +02:00
exin
7451abe3ea
Lower default log level for docker and debian
2022-10-13 13:11:14 +02:00
exin
3e6c66b899
Fix formatting
2022-10-13 13:11:14 +02:00
exin
3a40bf8ae0
Add error for invalid log config
...
Log config falls back to "warn"
2022-10-13 13:11:14 +02:00
exin
9c922db14b
Lower default log level
...
Update config-example.toml to accordingly
Closes #281
2022-10-13 13:11:13 +02:00
Timo Kösters
175fba5739
Merge branch 'fix-login-token' into 'next'
...
fix(client/login): username in lowercase for login by token
See merge request famedly/conduit!380
2022-10-13 11:08:04 +00:00
AndSDev
912491cb28
style(db/rooms): refactor admin room pdu validating
2022-10-13 14:04:26 +03:00
AndSDev
da2dbd2877
feat(db/rooms): disable leaving from admin room for last user
2022-10-13 13:09:26 +03:00
AndSDev
c67f95ebff
feat(db/rooms): disable leaving from admin room for conduit user
2022-10-13 13:01:18 +03:00
AndSDev
3a8321f9ad
feat(db/rooms): encryption is not allowed in the admins room
2022-10-13 12:50:23 +03:00
Timo Kösters
f46d64e52f
Merge branch 'unstability' into 'next'
...
Mark unstable versions as unstable in /capabilities
See merge request famedly/conduit!394
2022-10-13 09:39:45 +00:00
Timo Kösters
8c6e75a0cd
Mark unstable versions as unstable in /capabilities
2022-10-13 10:27:42 +02:00
Timo Kösters
c23b4946c5
Merge branch 'fixallthebugs' into 'next'
...
fix: all the e2ee problems
See merge request famedly/conduit!393
2022-10-13 08:21:12 +00:00
Timo Kösters
ac52b234fa
fix: all the e2ee problems
2022-10-13 10:15:35 +02:00
AndSDev
9a47069f45
fix(client/login): username in lowercase for login by token
2022-10-13 06:40:17 +00:00
Charles Hall
7ef9fe3454
add regression tests
...
This way we don't regress on accident again in the future.
2022-10-12 17:58:43 -07:00
Charles Hall
fc852f8be6
resolve cargo check --features clap/deprecated
...
This has no functional effects.
2022-10-12 17:55:12 -07:00
Charles Hall
4710f739c0
clap v4 turned more things into optional features
...
So we need to re-enable some things. See their changelog[0] for details.
[0]: https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#migrating
2022-10-12 17:55:12 -07:00
Charles Hall
3c20c1b72e
fix cargo test
2022-10-12 17:55:12 -07:00
Timo Kösters
37eb686b5b
Merge branch 'fixfluffy' into 'next'
...
fix: fluffychat login works again
See merge request famedly/conduit!391
2022-10-12 15:37:50 +00:00
Timo Kösters
fdd64fc966
fix: fluffychat login works again
2022-10-12 17:18:01 +02:00
Timo Kösters
4d982d05af
Merge branch 'claimfast' into 'next'
...
improvement: more efficient /claim
See merge request famedly/conduit!389
2022-10-12 09:09:23 +00:00
Timo Kösters
1e725bc548
Merge branch 'fixmakejoin' into 'next'
...
fix: make join should not send event id
See merge request famedly/conduit!390
2022-10-12 09:08:58 +00:00
Timo Kösters
dd8f4681a2
fix: make join should not send event id
2022-10-12 10:57:54 +02:00
Timo Kösters
0290f1f355
improvement: more efficient /claim
2022-10-12 10:43:30 +02:00
Timo Kösters
cd835fc7a8
Merge branch 'initialSyncFix' into 'next'
...
Initial sync fix
See merge request famedly/conduit!388
2022-10-11 21:24:19 +00:00
Timo Kösters
2b70d9604a
fix: element gets stuck in /initialSync
2022-10-11 23:07:03 +02:00
Timo Kösters
d3968c2fd1
fix: bump ruma again to fix state res problems
2022-10-11 21:51:20 +02:00
Timo Kösters
8105c5cc60
cargo fmt
2022-10-11 18:10:51 +02:00
Timo Kösters
d1e5acd7b3
fix: don't panic on missing events in state
2022-10-11 17:59:49 +02:00
Timo Kösters
68227c06c3
fix: state for left rooms
2022-10-11 17:10:56 +02:00
Timo Kösters
31d1801912
fix: workaround for missing avatars on element and rooms becoming historical
2022-10-11 17:10:09 +02:00
Timo Kösters
fb6bfa9753
fix: missing field origin error with synapse servers
2022-10-11 15:25:10 +02:00
Timo Kösters
c30cc6120b
fix: send right errors on make/send join in restricted rooms
2022-10-11 11:53:13 +02:00
Nyaaori
2b7c19835b
Add room version 10 to experimental versions
2022-10-10 15:00:44 +02:00
Timo Kösters
c2a5315e9f
Merge branch 'm0dex/fix-signature-upload' into 'next'
...
fix(client/keys): ignore all but signed keys in signature upload route
See merge request famedly/conduit!378
2022-10-10 14:42:23 +02:00
Jakub Kubík
0ddc3c01ef
style(client/keys): rename signature key to signed key
2022-10-10 14:41:43 +02:00
Jakub Kubík
c15205fb46
fix(client/keys): ignore non-signature keys in signature upload route
2022-10-10 14:41:00 +02:00
Jonas Zohren
cb837d5a1c
Merge branch 'conduit-dockerfile-db-path' into 'next'
...
Dockerfile: changing DB path to be same as we are using in CI
See merge request famedly/conduit!371
2022-10-10 14:40:19 +02:00
majso
18ca2e4c29
Dockerfile: changing DB path to be same as we are using in CI
2022-10-10 14:39:36 +02:00
Timo Kösters
a10dae38e2
Merge branch 'v4' into 'next'
...
Bump version to 0.4
See merge request famedly/conduit!368
2022-10-10 14:38:56 +02:00
Timo Kösters
7cf060ae5b
Bump version to 0.4
2022-10-10 14:38:17 +02:00
Timo Kösters
de9b0cec50
Merge branch 'lightning_bolt_option' into 'next'
...
Lightning bolt optional
See merge request famedly/conduit!366
2022-10-10 14:35:56 +02:00
Jonas Zohren
773eded0af
Merge branch 'ci-split-cargo-test-and-clippy' into 'next'
...
Feat(ci): Split clippy into own fallible job
See merge request famedly/conduit!367
2022-10-10 14:35:15 +02:00
Jim
df8703cc13
Lightning bolt optional
2022-10-10 14:34:28 +02:00
Jonas Zohren
71cffcd537
feat(ci): Split clippy into own fallible job
...
For some reason, the clippy build does not work.
This change allows the cargo:test job to still succeed
and the pipeline to pass
2022-10-10 14:13:18 +02:00
Nyaaori
f430b87459
cargo clippy
2022-10-10 14:09:11 +02:00
Timo Kösters
ca82b2940d
fix: sending does not work
...
We were inserting one too many 0xff bytes
2022-10-10 14:02:05 +02:00
Timo Kösters
229444c932
Use ring-compat feature so out signing keys work again
2022-10-10 14:02:04 +02:00
Timo Kösters
076e9810ba
cargo fix
2022-10-10 14:02:04 +02:00
Timo Kösters
6b131202b9
Bump ruma
2022-10-10 14:02:04 +02:00
Timo Kösters
275c6b447d
Bump some dependencies
2022-10-10 14:02:04 +02:00
Timo Kösters
1a7893dbbd
fix: update state_cache on join over federation
2022-10-10 14:02:03 +02:00
Timo Kösters
5a04559cb4
fix: maintain server list again
2022-10-10 14:02:03 +02:00
Timo Kösters
25c3d89f28
Bump rust version for const fn RwLock::new
2022-10-10 14:02:03 +02:00
Timo Kösters
8b5b7a1f63
fix: panic on launch
...
Now we start the admin and sending threads at a later time.
2022-10-10 14:02:02 +02:00
Timo Kösters
50b0eb9929
cargo fix
2022-10-10 14:02:02 +02:00
Timo Kösters
7822a385bb
cargo fmt
2022-10-10 14:02:02 +02:00
Timo Kösters
d5b4754cf4
0 errors left!
2022-10-10 14:02:02 +02:00
Timo Kösters
f47a5cd5d5
cargo fix
2022-10-10 14:02:01 +02:00
Timo Kösters
a4637e2ba1
cargo fmt
2022-10-10 14:02:01 +02:00
Timo Kösters
33a2b2b772
37 errors left
2022-10-10 14:02:01 +02:00
Timo Kösters
44fe6d1554
127 errors left
2022-10-10 14:02:00 +02:00
Timo Kösters
cff52d7ebb
messing around with arcs
2022-10-10 14:02:00 +02:00
Timo Kösters
face766e0f
messing with trait objects
2022-10-10 14:02:00 +02:00
Timo Kösters
8708cd3b63
431 errors left
2022-10-10 14:02:00 +02:00
Timo Kösters
bd8b616ca0
Fixed more compile time errors
2022-10-10 13:54:00 +02:00
Nyaaori
785ddfc4aa
refactor: prepare for more splits
2022-10-10 13:52:52 +02:00
Nyaaori
232978087a
refactor: prepare database/key_value/media.rs from service/media.rs
2022-10-10 13:52:07 +02:00
Nyaaori
7946c5f29e
refactor: prepare service/account_data/mod.rs from service/account_data.rs
2022-10-10 13:52:07 +02:00
Nyaaori
efad401751
refactor: prepare service/account_data/data.rs from service/account_data.rs
2022-10-10 13:52:07 +02:00
Nyaaori
e1e87b8d0c
refactor: prepare service/admin/mod.rs from service/admin.rs
2022-10-10 13:52:07 +02:00
Nyaaori
c6d1421e81
refactor: prepare service/key_backups/mod.rs from service/key_backups.rs
2022-10-10 13:52:06 +02:00
Nyaaori
5a29511d34
refactor: prepare service/key_backups/data.rs from service/key_backups.rs
2022-10-10 13:52:06 +02:00
Nyaaori
d024d205c0
refactor: prepare service/media/mod.rs from service/media.rs
2022-10-10 13:52:06 +02:00
Nyaaori
4649cd82b5
refactor: prepare database/key_value/globals.rs from service/globals.rs
2022-10-10 13:52:05 +02:00
Timo Kösters
057f8364cc
fix: some compile time errors
...
Only 174 errors left!
2022-10-10 13:25:01 +02:00
Timo Kösters
82e7f57b38
refactor state accessor, state cache, user, uiaa
2022-10-10 13:21:09 +02:00
Nyaaori
3e22bbeecd
refactor: prepare for state accessor, state cache, user, and uiaa
2022-10-10 13:20:05 +02:00
Nyaaori
213579ee9d
refactor: prepare database/key_value/uiaa.rs from service/uiaa/mod.rs
2022-10-10 13:19:31 +02:00
Nyaaori
810a6baf34
refactor: prepare service/uiaa/data.rs from service/uiaa/mod.rs
2022-10-10 13:19:31 +02:00
Nyaaori
61f6ac0d66
refactor: prepare service/rooms/state_accessor/data.rs from service/rooms/state_accessor/mod.rs
2022-10-10 13:19:31 +02:00
Nyaaori
6d981f37a2
refactor: prepare database/key_value/rooms/state_accessor.rs from service/rooms/state_accessor/mod.rs
2022-10-10 13:19:30 +02:00
Nyaaori
7e0b8ec0ac
refactor: prepare database/key_value/rooms/user.rs from service/rooms/user/mod.rs
2022-10-10 13:19:30 +02:00
Nyaaori
19743ae195
refactor: prepare service/rooms/user/data.rs from service/rooms/user/mod.rs
2022-10-10 13:19:30 +02:00
Jakub Kubík
fd0ea4bf71
feat(database/presence): add skeleton for presence maintenance
2022-10-10 13:00:55 +02:00
Timo Kösters
f56424bc8d
Refactor appservices, pusher, timeline, transactionids, users
2022-10-10 13:00:53 +02:00
Nyaaori
01bf348811
refactor: prepare for appservices, pusher, timeline, transactionids, and users
2022-10-10 13:00:06 +02:00
Nyaaori
bea5d1e0d8
refactor: prepare database/key_value/rooms/timeline.rs from service/rooms/timeline/mod.rs
2022-10-10 12:56:13 +02:00
Nyaaori
e8b33e8c5a
refactor: prepare service/rooms/timeline/data.rs from service/rooms/timeline/mod.rs
2022-10-10 12:56:13 +02:00
Nyaaori
dc7670f3a8
refactor: prepare service/users/mod.rs from service/users.rs
2022-10-10 12:56:12 +02:00
Nyaaori
94ce06bb76
refactor: prepare service/users/data.rs from service/users.rs
2022-10-10 12:56:12 +02:00
Nyaaori
70863260f6
refactor: prepare service/pusher/mod.rs from service/pusher.rs
2022-10-10 12:56:12 +02:00
Nyaaori
cb9458122c
refactor: prepare service/pusher/data.rs from service/pusher.rs
2022-10-10 12:56:12 +02:00
Nyaaori
e62b0904ea
refactor: prepare database/key_value/pusher.rs from service/pusher.rs
2022-10-10 12:56:11 +02:00
Nyaaori
306ff5ee4e
refactor: prepare database/key_value/users.rs from service/users.rs
2022-10-10 12:56:11 +02:00
Timo Kösters
e045abe961
refactor: work on auth chain and state compressor
2022-10-10 11:18:53 +02:00
Nyaaori
0daa3209db
refactor: prepare for auth chain and state compressor
2022-10-10 11:17:43 +02:00
Nyaaori
8d0ed3ec51
refactor: prepare database/key_value/rooms/state_compressor.rs from service/rooms/state_compressor/mod.rs
2022-10-10 11:17:34 +02:00
Nyaaori
691e69847f
refactor: prepare database/key_value/rooms/auth_chain.rs from service/rooms/state_compressor/mod.rs
2022-10-10 11:17:34 +02:00
Nyaaori
c8f64844ab
refactor: prepare service/rooms/auth_chain/mod.rs from service/rooms/state_compressor/mod.rs
2022-10-10 11:17:34 +02:00
Timo Kösters
b0029c49b9
refactor: work on search
2022-10-10 10:46:39 +02:00
Nyaaori
91ad250177
refactor: prepare for search work
2022-10-10 10:43:52 +02:00
Nyaaori
f6040ef2d7
refactor: prepare database/key_value/rooms/search.rs from service/rooms/timeline/mod.rs
2022-10-09 18:52:58 +02:00
Nyaaori
877ee48480
refactor: prepare database/key_value/rooms/search.rs from service/rooms/search/mod.rs
2022-10-09 18:52:58 +02:00
Timo Kösters
03e6e43ecd
refactor: split up database/key_value.rs
2022-10-09 18:23:59 +02:00
Nyaaori
6ace16abf6
refactor: prepare to split up database/key_value.rs
2022-10-09 18:23:59 +02:00
Nyaaori
158de9ca08
refactor: prepare src/database/key_value/room/outlier.rs from src/database/key_value.rs
2022-10-09 18:23:58 +02:00
Nyaaori
ea2dcf4ff0
refactor: prepare src/database/key_value/room/pdu_metadata.rs from src/database/key_value.rs
2022-10-09 18:23:58 +02:00
Nyaaori
332e7c9dba
refactor: prepare src/database/key_value/room/state.rs from src/database/key_value.rs
2022-10-09 18:23:58 +02:00
Nyaaori
0213a32e6a
refactor: prepare src/database/key_value/room/edus/typing.rs from src/database/key_value.rs
2022-10-09 18:23:57 +02:00
Nyaaori
cd3a163816
refactor: prepare src/database/key_value/room/lazy_load.rs from src/database/key_value.rs
2022-10-09 18:23:57 +02:00
Nyaaori
2950349adf
refactor: prepare src/database/key_value/room/metadata.rs from src/database/key_value.rs
2022-10-09 18:23:57 +02:00
Nyaaori
56cacf6f1c
refactor: prepare src/database/key_value/room/alias.rs from src/database/key_value.rs
2022-10-09 18:23:56 +02:00
Nyaaori
0f77ae14e4
refactor: prepare src/database/key_value/room/directory.rs from src/database/key_value.rs
2022-10-09 18:23:56 +02:00
Nyaaori
8fa990330f
refactor: prepare src/database/key_value/room/edus/presence.rs from src/database/key_value.rs
2022-10-09 18:23:56 +02:00
Nyaaori
84630f90b7
refactor: prepare src/database/key_value/room/edus/read_receipt.rs from src/database/key_value.rs
2022-10-09 18:23:56 +02:00
Jakub Kubík
1869a38b85
refactor(edus): split edus into separate modules
2022-10-09 18:23:55 +02:00
Nyaaori
e39358d375
refactor: prepare to split edus into separate modules
2022-10-09 18:23:55 +02:00
Nyaaori
c7e601eb0b
refactor: prepare service/rooms/edus/typing/data.rs from service/rooms/edus/data.rs
2022-10-09 17:38:46 +02:00
Nyaaori
ac4724e82c
refactor: prepare service/rooms/edus/read_receipt/data.rs from service/rooms/edus/data.rs
2022-10-09 17:38:23 +02:00
Nyaaori
73217f238c
refactor: prepare service/rooms/edus/presence/data.rs from service/rooms/edus/data.rs
2022-10-09 17:37:57 +02:00
Nyaaori
d410f08642
refactor: prepare src/service/rooms/edus/typing/mod.rs from src/service/rooms/edus/mod.rs
2022-10-09 17:36:08 +02:00
Nyaaori
bfccd4f136
refactor: prepare src/service/rooms/edus/presence/mod.rs from src/service/rooms/edus/mod.rs
2022-10-09 17:35:14 +02:00
Nyaaori
c21820083b
refactor: prepare src/service/rooms/edus/read_receipt/mod.rs from src/service/rooms/edus/mod.rs
2022-10-09 17:34:24 +02:00
Timo Kösters
865e35df17
Work on rooms/state, database, alias, directory, edus services, event_handler, lazy_loading, metadata, outlier, and pdu_metadata
2022-08-15 19:03:37 +02:00
Nyaaori
604b1a5cf1
refactor: Prepare src/database/key_value.rs
2022-08-15 18:58:03 +02:00
Nyaaori
81ac01c2f5
refactor: restore src/service/rooms/pdu_metadata/mod.rs
2022-08-15 18:47:01 +02:00
Nyaaori
1ccc226c6b
refactor: prepare src/database/key_value.rs from src/service/rooms/pdu_metadata/mod.rs
2022-08-15 18:47:01 +02:00
Nyaaori
0ce4446b1a
refactor: restore src/service/rooms/metadata/mod.rs
2022-08-15 18:47:00 +02:00
Nyaaori
daa969508f
refactor: restore src/service/rooms/outlier/mod.rs
2022-08-15 18:47:00 +02:00
Nyaaori
715b30a2b5
refactor: prepare src/database/key_value.rs from src/service/rooms/outlier/mod.rs
2022-08-15 18:47:00 +02:00
Nyaaori
42fe118cbe
refactor: restore src/service/rooms/edus/mod.rs
2022-08-15 18:46:59 +02:00
Nyaaori
06bfddf0da
refactor: restore src/service/rooms/lazy_loading/mod.rs
2022-08-15 18:46:59 +02:00
Nyaaori
931c8ece4a
refactor: prepare src/database/key_value.rs from src/service/rooms/metadata/mod.rs
2022-08-15 18:46:59 +02:00
Nyaaori
85e571badd
refactor: prepare src/database/key_value.rs from src/service/rooms/lazy_loading/mod.rs
2022-08-15 18:46:59 +02:00
Nyaaori
0071a9cbf4
refactor: restore src/service/rooms/directory/mod.rs
2022-08-15 18:46:58 +02:00
Nyaaori
a563b1ba9a
refactor: prepare src/database/key_value.rs from src/service/rooms/edus/mod.rs
2022-08-15 18:46:58 +02:00
Nyaaori
9e1ab74bb4
refactor: prepare src/database/key_value.rs from src/service/rooms/directory/mod.rs
2022-08-15 18:46:58 +02:00
Nyaaori
adafb335ff
refactor: restore src/service/rooms/state/mod.rs
2022-08-15 18:46:57 +02:00
Nyaaori
05487c7c15
refactor: restore src/service/rooms/alias/mod.rs
2022-08-15 18:46:57 +02:00
Nyaaori
a2a327af7c
refactor: prepare src/database/key_value.rs from src/service/rooms/state/mod.rs
2022-08-15 18:46:57 +02:00
Nyaaori
33c0e0f430
refactor: prepare src/database/key_value.rs from src/service/rooms/alias/mod.rs
2022-08-15 18:46:57 +02:00
Nyaaori
1442c64420
refactor: restore src/service/rooms/state/data.rs
2022-08-15 18:46:50 +02:00
Nyaaori
28644f236e
refactor: prepare src/database/key_value.rs from src/service/rooms/state/data.rs
2022-08-15 18:46:50 +02:00
Timo Kösters
cc80152889
refactor: split up force_state
2022-08-15 17:17:53 +02:00
Timo Kösters
dcdbcc0851
refactor: event handling code
2022-08-15 17:12:22 +02:00
Nyaaori
1b0477d569
refactor: Preparation commit to split src/service/rooms/state.rs and src/api/server_server.rs
2022-08-15 17:09:41 +02:00
Nyaaori
57c92f8044
refactor: restore src/api/server_server.rs
2022-08-15 17:09:22 +02:00
Nyaaori
e1d8c03e47
refactor: prepare splitting src/api/server_server.rs to src/service/rooms/event_handler/mod.rs
2022-08-15 17:09:15 +02:00
Nyaaori
7d2b22f58d
refactor: prepare splitting src/service/rooms/state.rs to src/service/rooms/state_accessor/mod.rs
2022-08-15 17:08:33 +02:00
Nyaaori
9efd9f06c6
refactor: prepare splitting src/service/rooms/state.rs to src/service/rooms/state/data.rs
2022-08-15 17:07:33 +02:00
Nyaaori
d0cbe46ff0
refactor: prepare splitting src/service/rooms/state.rs to src/service/rooms/state/mod.rs
2022-08-15 17:07:33 +02:00
Timo Kösters
025b64befc
refactor: renames and split room.rs
2022-08-15 16:30:34 +02:00
Nyaaori
92e59f14e0
refactor: Preparation commit to split src/database/rooms.rs
2022-08-15 16:25:38 +02:00
Nyaaori
7989c7cdda
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/timeline.rs
2022-08-15 16:22:38 +02:00
Nyaaori
e22f5fef1f
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/user.rs
2022-08-15 16:22:38 +02:00
Nyaaori
64a022a4d2
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/state.rs
2022-08-15 16:22:37 +02:00
Nyaaori
751be39376
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/state_cache.rs
2022-08-15 16:22:37 +02:00
Nyaaori
d05b84d0f5
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/state_compressor.rs
2022-08-15 16:22:37 +02:00
Nyaaori
54bf91b76e
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/outlier.rs
2022-08-15 16:22:36 +02:00
Nyaaori
8ed79a00fd
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/pdu_metadata.rs
2022-08-15 16:22:36 +02:00
Nyaaori
8dffdadfd3
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/search.rs
2022-08-15 16:22:36 +02:00
Nyaaori
2dbfbd45a2
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/short.rs
2022-08-15 16:22:36 +02:00
Nyaaori
249440115b
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/lazy_loading.rs
2022-08-15 16:22:35 +02:00
Nyaaori
baa8224cce
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/metadata.rs
2022-08-15 16:22:35 +02:00
Nyaaori
bd7b49b098
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/mod.rs
2022-08-15 16:22:35 +02:00
Nyaaori
27e2f0d545
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/alias.rs
2022-08-15 16:22:34 +02:00
Nyaaori
4dc14e1580
refactor: prepare splitting src/database/rooms.rs to src/service/rooms/directory.rs
2022-08-15 16:22:34 +02:00
Timo Kösters
df16012661
Merge branch 'next' into 'master'
...
Release v0.4.0
See merge request famedly/conduit!369
2022-06-23 07:43:05 +00:00
Timo Kösters
e8cd85fee4
Merge branch 'v4' into 'next'
...
Bump version to 0.4
See merge request famedly/conduit!368
2022-06-23 07:07:44 +00:00
Timo Kösters
35fd732b04
Bump version to 0.4
2022-06-23 09:06:39 +02:00
Timo Kösters
10b1557c0e
Merge branch 'lightning_bolt_option' into 'next'
...
Lightning bolt optional
See merge request famedly/conduit!366
2022-06-23 06:58:34 +00:00
Jim
49bd75b856
Lightning bolt optional
2022-06-23 06:58:34 +00:00
Jonas Zohren
02f8218867
Merge branch 'ci-split-cargo-test-and-clippy' into 'next'
...
Feat(ci): Split clippy into own fallible job
See merge request famedly/conduit!367
2022-06-22 23:16:45 +00:00
Jonas Zohren
40eebbd9d8
feat(ci): Split clippy into own fallible job
...
For some reason, the clippy build does not work.
This change allows the cargo:test job to still succeed
and the pipeline to pass
2022-06-22 22:14:53 +00:00
Timo Kösters
9ee199b0c3
Merge branch 'deactivate-user-command' into 'next'
...
Deactivate user command
See merge request famedly/conduit!337
2022-06-19 19:38:07 +00:00
Zeyphros
1c31f7905f
Update command comment to coincide with the default action
2022-06-19 18:59:49 +02:00
Zeyphros
f6183e457d
Implement command to deactivate user from admin channel
...
Use `leave_room` in `leave_all_rooms`
WIP: Add command to delete a list of users
also implements a flag to prevent the user from being removed from their joined rooms.
Report user deactivation failure reason
Don't send leave events by default when mass deactivating user accounts
Don't stop leaving rooms if an error was encountered
WIP: Rename command, make flags consistent, don't deactivate admin accounts.
Accounts should be deactivated as fast as possible and removing users from joined groups is completed afterwards.
Fix admin safety logic, improve command output
Continue leaving rooms if a room_id is invalid
Ignore errors from leave_room
Add notice to the list-local-users command
Output form list-local-users can be used directly without modification with the deactivate-all command
Only get mutex lock for admin room when sending message
2022-06-19 18:59:48 +02:00
Timo Kösters
2ecbcdda42
Merge branch 'upgrades' into 'next'
...
Upgrade dependencies
See merge request famedly/conduit!363
2022-06-19 15:11:21 +00:00
Timo Kösters
0c8e51e1b7
Upgrade dependencies
2022-06-19 15:40:14 +02:00
Timo Kösters
86b23338dd
Merge branch 'password-length-consistency' into 'next'
...
Length of passwords consistently use the constant
See merge request famedly/conduit!361
2022-06-19 07:35:06 +00:00
Dietrich
7bee9c1c69
Length of passwords consistently use the constant
2022-06-19 07:10:47 +02:00
Timo Kösters
6ef1e8c4f9
Merge branch 'timo' into 'next'
...
More async
See merge request famedly/conduit!359
2022-06-18 20:56:26 +00:00
Timo Kösters
0bc03e90a1
improvement: make more things async
2022-06-18 22:55:37 +02:00
Timo Kösters
9b898248c7
feat: more admin commands, better logging
2022-06-18 22:55:34 +02:00
Timo Kösters
566dc0a6a2
Merge branch 'next' into 'next'
...
Remove outdated rust version info
See merge request famedly/conduit!360
2022-06-18 15:02:31 +00:00
Jim
b4be087a46
Merge branch 'JimZAH-next-patch-83655' into 'next'
...
Remove rust version requirement from deploy.md
See merge request JimZAH/conduit!2
2022-06-18 14:57:30 +00:00
Jim
722e553c6e
Remove rust version requirement from deploy.md
2022-06-18 14:47:32 +00:00
Timo Kösters
f8547ecba4
Merge branch 'create-user-command' into 'next'
...
added a command to the admin bot to create a new user, even with registration disabled
See merge request famedly/conduit!354
2022-06-18 13:08:51 +00:00
Timo Kösters
e70cff196b
Merge branch 'fix-deb-postinst-config' into 'next'
...
Remove the address override in deb generated config
See merge request famedly/conduit!344
2022-06-18 11:21:31 +00:00
Timo Kösters
0286a804f4
Merge branch 'filter-users' into 'next'
...
Hide users from user directory if they are only in private rooms and they don't share a room
Closes #24
See merge request famedly/conduit!325
2022-06-18 11:17:09 +00:00
Radek Stępień
7239243163
Hide users from user directory if they are only in private rooms and they don't share a room
2022-06-18 11:17:09 +00:00
Timo Kösters
124471199c
Merge branch 'registration-without-username' into 'next'
...
Allow registration without username
Closes #111
See merge request famedly/conduit!340
2022-06-18 11:13:37 +00:00
Radek Stępień
84ec057f6e
Allow registration without username
2022-06-18 11:13:37 +00:00
Timo Kösters
8e08a72229
Merge branch 'bump-docker-image-to-alpine-3-16-0' into 'next'
...
chore(docker): Bump base image to alpine 3.16.0
See merge request famedly/conduit!355
2022-06-18 11:05:42 +00:00
Jonas Zohren
e03a2b8636
chore(docker): Bump base image to alpine 3.16.0
2022-06-18 11:05:42 +00:00
Timo Kösters
83d3cbfa99
Merge branch 'rmsthebest-next-patch-62586' into 'next'
...
Added Caddy to the web proxy examples
See merge request famedly/conduit!352
2022-06-18 11:05:22 +00:00
Timo Kösters
84cb0667f3
Merge branch 'to_device-existing-txn-id' into 'next'
...
feat: if txn id exists in the db, skip the event
See merge request famedly/conduit!353
2022-06-18 11:04:16 +00:00
Jakub Kubík
c3924b566b
feat: if txn id exists in the db, skip the event
2022-06-18 11:04:16 +00:00
Timo Kösters
0f86506288
Merge branch 'Miepee-next-patch-24570' into 'next'
...
Mention different database backends in DEPLOY.md
See merge request famedly/conduit!358
2022-06-18 11:03:09 +00:00
Miepee
b862283ed9
Mention different databse backends in DEPLOY.md
2022-06-16 13:23:45 +00:00
Timo Kösters
ba682fa3b4
Merge branch 'kubo6472-next-patch-16934' into 'next'
...
Fix FluffyChat Compatibility
See merge request famedly/conduit!357
2022-06-15 20:42:40 +00:00
Jakub Doboš
8a63a2cc68
Fix FluffyChat Compatibility
2022-06-15 13:07:07 +00:00
Timo Kösters
f6dc22127a
Merge branch 'next' into 'next'
...
Add portforwarding + opening to the docs (+recommended extension fix)
See merge request famedly/conduit!356
2022-06-13 19:28:00 +00:00
Dietrich
bd3f9e0dbe
Fix spelling.
2022-06-13 20:45:12 +02:00
Dietrich
58d784aa29
Adding a hint to closed ports in the testing section
2022-06-13 20:23:08 +02:00
Dietrich
ae8e143fe9
Add a section to Ports and forwarding
2022-06-13 20:08:18 +02:00
Dietrich
d9782c508a
rust-analyzer-extension moved to rust-lang
...
The recommended extension id could not be found as rust-analyzer now has the id `rust-lang.rust-analyzer`
2022-06-13 20:03:30 +02:00
Timo Kösters
39bc84d81c
Merge branch 'fix_panic_on_long_message' into 'next'
...
Don't panic when signing event fails.
Closes #232
See merge request famedly/conduit!343
2022-05-28 20:47:15 +00:00
Timo Kösters
89eb54b7ff
Merge branch 'unignore-feddest-doc-test' into 'next'
...
enable FedDest doc-test
See merge request famedly/conduit!349
2022-05-28 20:43:37 +00:00
Jonas Zohren
8bb58061fd
Merge branch 'adopt-aur-patches' into 'next'
...
Adjust some files to the AUR patches
See merge request famedly/conduit!351
2022-05-10 07:26:20 +00:00
Jonas Zohren
8392809eb1
Adjust some files to the AUR patches
2022-05-10 07:26:19 +00:00
=
bb033fe02a
added a command to the admin bot to create a new user, even with registration disabled
2022-05-01 17:49:02 +02:00
rmsthebest
23f29d1bda
Added Caddy to the web proxy examples
2022-04-17 23:08:17 +00:00
Jan Christian Grünhage
efe9d5000e
enable FedDest doc-test
...
Doc rendering is exactly as before, but it now actually tests the code
2022-04-14 16:42:11 +02:00
Zeyphros
090d0fe684
Fix typo
2022-04-13 00:08:55 +02:00
Timo Kösters
2fcb3c8b93
Merge branch '262-missing_room_keys_endpoint' into 'next'
...
feat: re-register missing add_backup_keys route
Closes #262
See merge request famedly/conduit!346
2022-04-11 16:05:59 +00:00
Jakub Kubík
729d66aa11
feat: register missing add_backup_keys route
2022-04-10 14:56:43 +02:00
Paul van Tilburg
b10dbc747b
Remove the address override in deb generated config
...
This override was accidentally introduced by commit de6c331 .
The Debian postinst script will ask for and generate a config with the
address set. This should not be overriden by what is set in the default
config and is thus a deviation from the standard docs.
2022-04-09 15:13:01 +02:00
Zeyphros
07a3a6fa9a
Return an error when signing an event fails
...
Prevents the server from crashing/become unresponsive when overly long
messages are sent
2022-04-08 22:05:13 +02:00
Timo Kösters
6e106b5732
Merge branch 'v9' into 'next'
...
Support all room versions from V3 to V9
Closes #161
See merge request famedly/conduit!257
2022-04-07 15:27:58 +00:00
Timo Kösters
00b362b43b
fix: cors warning
2022-04-07 17:09:07 +02:00
Timo Kösters
b6b27b66c8
fix: don't allow unjoined users to send typing notifications
2022-04-07 17:07:33 +02:00
Timo Kösters
3573d40027
fix warnings
2022-04-07 17:04:29 +02:00
Timo Kösters
e4600ccfef
bump ruma
2022-04-07 17:02:49 +02:00
Timo Kösters
0ae39807a4
Add V9 to list of allowed versions
2022-04-07 16:50:09 +02:00
Timo Kösters
686319e2e3
fix: error handling
2022-04-07 16:50:07 +02:00
Nyaaori
d655f4c1be
Cleanup rooms.rs, globals.rs, and pdu.rs
2022-04-07 16:48:37 +02:00
Nyaaori
4b28146ee7
Support room version 3
2022-04-07 16:44:50 +02:00
Nyaaori
d8a3b257f2
Enable room version 4
2022-04-07 16:36:27 +02:00
Nyaaori
714873694d
Refactor room version support, add default room version config
2022-04-07 16:35:10 +02:00
Timo Kösters
d81216cad7
improvement: preparing for room version 9
2022-04-07 16:26:50 +02:00
Timo Kösters
9e29dc808f
Merge branch '198-support-user-password-resets' into 'next'
...
feat: support user password resets
Closes #198
See merge request famedly/conduit!339
2022-04-07 12:11:55 +00:00
Jakub Kubík
ada07de204
feat: support user password resets
2022-04-07 12:11:55 +00:00
Timo Kösters
2556e29984
Merge branch 'up-ruma-went-too-far' into 'next'
...
Upgrade Ruma
See merge request famedly/conduit!342
2022-04-07 11:37:53 +00:00
Timo Kösters
df4c38cb61
fix: remove warnings
2022-04-07 13:22:32 +02:00
Timo Kösters
2808dd2000
Ruma upgrade
2022-04-07 12:58:48 +02:00
Timo Kösters
17ad5f0595
fix: checks for incoming cross signing changes
2022-04-07 12:56:18 +02:00
Timo Kösters
b8411ae2fd
refactor: rename endpoints to match ruma
2022-04-07 12:56:17 +02:00
Timo Kösters
566833111c
refactor: small improvements
2022-04-07 12:56:16 +02:00
chenyuqide
ee96a03d60
Update ruma
2022-04-07 12:56:16 +02:00
chenyuqide
21bc099ccf
Update ruma
2022-04-07 12:56:12 +02:00
Timo Kösters
1ce03059a0
Merge branch 'next' into 'next'
...
Fix wrong associated type in OutgoingKind::Appservice
See merge request famedly/conduit!324
2022-04-03 19:48:25 +00:00
Timo Kösters
9ed352d4c0
Merge branch '199-fix-kick-ban-over-federation' into 'next'
...
fix: fix kick and ban events over federation
Closes #199
See merge request famedly/conduit!338
2022-04-03 17:59:15 +00:00
Jakub Kubík
a08c667230
docs: add comments for clarification of recent changes
2022-04-03 19:27:48 +02:00
Jakub Kubík
414c7c40c4
fix: remove our server from the list of servers to send the event PDU to
2022-04-03 19:19:57 +02:00
Jakub Kubík
1712e63e06
fix: fix kick and ban events over federation
...
Fix the scenario where a MembershipState change event was not sent to the server of a user kicked/banned from a room on a Conduit instance if there were not any other users from that server in the room.
2022-04-03 18:58:45 +02:00
Timo Kösters
272e27ae01
Merge branch 'appservice-pdu-send-fix' into 'next'
...
Send PDU to appservice if state_key is their user ID
Closes #110
See merge request famedly/conduit!331
2022-04-03 12:32:23 +00:00
Andrej Kacian
9046223e7f
Send PDU to appservice if state_key is their user ID
...
Fixes #110 .
2022-04-01 19:38:38 +02:00
Timo Kösters
0066f20bdd
Merge branch 'trailingslash' into 'next'
...
fix: allow trailing slashes for /state/<type>/ again
See merge request famedly/conduit!336
2022-04-01 14:17:21 +00:00
Timo Kösters
a5465dfd3e
fix: allow trailing slashes for /state/<type>/ again
2022-04-01 16:00:04 +02:00
Timo Kösters
8086bee146
Merge branch 'show-config' into 'next'
...
Add show-config admin command
See merge request famedly/conduit!295
2022-04-01 09:01:00 +00:00
Timo Kösters
b11a3b80bc
Merge branch 'shutdown-msg' into 'next'
...
Log caught Ctrl+C or SIGTERM for operator feedback
See merge request famedly/conduit!319
2022-04-01 08:49:28 +00:00
Timo Kösters
554146f46e
Merge branch 'notify-admin-room-on-user-register' into 'next'
...
Notify admin room for user registrations, deactivations and password changes
See merge request famedly/conduit!318
2022-04-01 08:41:51 +00:00
Timo Kösters
7bc84dc971
Merge branch 'jplatte/up-axum' into 'next'
...
Upgrade axum to 0.5
See merge request famedly/conduit!335
2022-04-01 08:33:22 +00:00
Timo Kösters
d89141100c
Merge branch 'insensitive-login' into 'next'
...
Case insensitive username login
Closes #248
See merge request famedly/conduit!323
2022-04-01 08:20:45 +00:00
Timo Kösters
f9bf465578
Merge branch 'readable' into 'next'
...
Fix security issue.
See merge request famedly/conduit!316
2022-04-01 07:30:05 +00:00
Jonas Platte
3933bd9a8e
Update axum feature set used
2022-03-31 22:52:16 +02:00
Jonas Platte
db0659cb3d
Upgrade axum to 0.5
2022-03-31 22:50:17 +02:00
Timo Kösters
1219535e56
Merge branch 'fix/bad-uid-crash' into 'next'
...
Fix crash when a bad user ID is in the database
See merge request famedly/conduit!334
2022-03-31 19:23:41 +00:00
LordMZTE
4a12a7cbc8
Fix crash when a bad user ID is in the database
...
To my understanding, a bad user ID can sometimes make it into the
database, which lead to a panic prior to this change.
2022-03-31 20:59:59 +02:00
Jonas Zohren
08072d2c8d
Merge branch 'docker/ci-bump-alpine-version' into 'next'
...
chore: Bump alpine version for CI generated docker
See merge request famedly/conduit!333
2022-03-30 20:30:56 +00:00
Jonas Zohren
1ebf417c11
chore: Bump alpine version for CI generated docker
2022-03-30 20:23:04 +00:00
Jonas Zohren
a2a7c61872
Merge branch 'docker-bump-alpine-version' into 'next'
...
chore(docker): Bump alpine (base image) version
Closes #255
See merge request famedly/conduit!330
2022-03-18 17:52:50 +00:00
Jonas Zohren
61277452af
chore(docker): Bump alpine (base image) version
2022-03-18 18:44:05 +01:00
Timo Kösters
6be5e83e61
Merge branch 'reqwest-tls-native-roots' into 'next'
...
Use native root CA certificates for reqwest
See merge request famedly/conduit!329
2022-03-14 14:27:12 +00:00
Timo Kösters
c70c0129f8
Merge branch 'proxy-config-examples' into 'next'
...
Fix proxy config examples in config/proxy.rs
See merge request famedly/conduit!321
2022-03-14 14:26:28 +00:00
Andrej Kacian
b5b8181851
Notify admin room for user registrations, deactivations and password changes
2022-03-13 09:13:45 +01:00
Andrej Kacian
194a85d4c5
Use native root CA certificates for reqwest
2022-03-12 15:44:22 +01:00
kk
a6edf00810
Merge remote-tracking branch 'origin/next' into insensitive-login
...
pulling next into dev branch
2022-03-09 19:12:02 -08:00
Jonas Zohren
738f5e8f68
Merge branch 'ci-fix-cross-musl-builds' into 'next'
...
CI: Fix musl builds
See merge request famedly/conduit!328
2022-03-08 22:13:31 +00:00
Jonas Zohren
5a9462c9ab
fix(ci): Fix musl builds
...
This pins the image to use for cross to a working image's sha256
2022-03-08 21:52:57 +00:00
chenyuqide
5695121f38
Fix wrong associated type in OutgoingKind::Appservice
2022-03-02 23:48:01 +08:00
reti4
8bafdc4623
fixed location of lowercase fn
2022-03-02 02:25:15 +00:00
Jonas Zohren
36a6d724fe
Merge branch 'writable' into 'next'
...
Fix permissions
See merge request famedly/conduit!317
2022-03-01 23:55:10 +00:00
reti4
9385ea0e7c
fmt fix
2022-03-01 21:23:34 +00:00
reti4
9f059ad4c3
make username login case insensitive
2022-03-01 21:03:55 +00:00
TomZ
5c6c6f272c
Fix security issue.
...
The docs state that you need to make the config file _readable_
and then proceeds to make the file writable.
This changes it to make the file to be owned by root and readable by
anyone. This is the default for unix / linux and suggested practice
for files in /etc.
2022-02-23 10:15:33 +01:00
Andrej Kacian
65fa4b2ca4
Fix proxy config examples in config/proxy.rs
2022-02-22 22:32:38 +01:00
Jonas Zohren
6788225cac
Merge branch 'fix-docker-db-dir-permissions' into 'next'
...
Fix(docker): Make conduit own default db path
See merge request famedly/conduit!320
2022-02-22 15:34:14 +00:00
Jonas Zohren
a5bb6786c8
fix(docker): Make conduit own default db path
...
When a user mounts a volume into the default volume path,
it uses the permissions and ownership from the host volume.
In most cases, this is 1000:1000, which it also uses on the inside.
If you don't mount a volume though (e.g., for testing), conduit cries:
“The database couldn't be loaded or created.”
This fix chowns the default db dir to remedy this.
2022-02-22 16:26:30 +01:00
Andrej Kacian
3b2b35aab7
Log caught Ctrl+C or SIGTERM for operator feedback
2022-02-22 00:28:46 +01:00
TomZ
949f2523f9
Fix permissions
...
The text just sets the ownership and ignores that defaults on unix
are to have newly created dirs be readable by everyone.
This closes the database to unauthorized users on multi-user systems.
2022-02-21 22:35:08 +01:00
Andrej Kacian
196c83939c
Add show-config admin room command
2022-02-21 22:27:19 +01:00
Jonas Zohren
237645e975
Merge branch 'docs' into 'next'
...
docs: make all configs match
Closes #205
See merge request famedly/conduit!301
2022-02-20 10:59:56 +00:00
Jonas Zohren
86162c2c20
Merge branch 'next' into docs
2022-02-20 11:43:50 +01:00
Jonas Zohren
199c84195a
Merge branch 'improve-docker-documentation' into 'next'
...
Improve docker documentation some
See merge request famedly/conduit!314
2022-02-20 10:43:05 +00:00
Jonas Zohren
57ac4160b7
Merge branch 'next' into docs
2022-02-20 11:42:19 +01:00
Jonas Zohren
91c648253a
Merge branch 'docs-remove-obsolete-cross-readme' into 'next'
...
Remove the now obsolete cross readme
See merge request famedly/conduit!315
2022-02-20 10:22:47 +00:00
Jonas Zohren
5a80507006
chore(docs): Remove the now obsolete cross readme
2022-02-20 11:12:49 +01:00
Jonathan de Jong
cc14727888
revert reflow
2022-02-20 10:55:17 +01:00
Jonathan de Jong
94573a3a61
improve docker documentation some
2022-02-19 17:06:06 +01:00
Jonas Zohren
0ba0fa5f6c
Merge branch 'ci-audit-dependencies' into 'next'
...
CI: audit dependencies
See merge request famedly/conduit!313
2022-02-19 11:25:30 +00:00
Jonas Zohren
ad6eb92bbd
feat(ci): Add dependency audit to CI tests
2022-02-19 12:19:06 +01:00
Timo Kösters
ce76041c03
Merge branch 'up-ruma' into 'next'
...
Update Ruma
See merge request famedly/conduit!312
2022-02-19 09:46:56 +00:00
Jonas Zohren
8f063c99d5
chore(ci): Split up tests
2022-02-18 22:29:55 +01:00
Jonathan de Jong
557d119bee
change search_events_v3 to search_events::v3
2022-02-18 19:54:26 +01:00
Jonathan de Jong
e9f87e1952
update ruma
2022-02-18 15:33:14 +01:00
Jonas Zohren
f3795846b5
Merge branch 'readme' into 'next'
...
Slight clarification
See merge request famedly/conduit!310
2022-02-18 12:19:51 +00:00
Timo Kösters
b8eaa3be85
Merge branch 'redactfix' into 'next'
...
Redaction fix
Closes #235
See merge request famedly/conduit!298
2022-02-18 12:00:40 +00:00
Timo Kösters
c496e599ef
Merge branch 'serde-cleanup' into 'next'
...
Remove useless serde roundtrips
See merge request famedly/conduit!311
2022-02-18 11:07:59 +00:00
Jonas Platte
27692a2f14
Remove useless serde roundtrips
2022-02-18 11:52:00 +01:00
TomZ
e57cd437d4
Slight clarification
...
Which version it started being beta in is quite irrelevant here.
2022-02-17 23:00:39 +01:00
Timo Kösters
5a99460a4c
Merge branch 'not-found' into 'next'
...
Add a not-found route
See merge request famedly/conduit!306
2022-02-17 15:43:08 +00:00
Jonas Zohren
ba83d0ac68
Merge branch 'more-vscode-defaults' into 'next'
...
Provide some sane defaults for vscode developing
See merge request famedly/conduit!309
2022-02-17 15:33:03 +00:00
Jonas Zohren
bcd6c0bf53
feat: Provide sane defaults for vscode developing
...
This includes some extensions and a debug profile
2022-02-17 11:14:50 +00:00
Jonas Zohren
b4225cb0fc
fix(docker): use user 1000 and standard db path
2022-02-16 15:13:04 +01:00
Jonas Zohren
98b67da649
fix: Docker syntax
2022-02-16 15:13:03 +01:00
Jonas Zohren
0be8500c4f
Set all env vars in docker README
2022-02-16 15:12:40 +01:00
Jonas Zohren
97507d2880
Remove most env vars from Dockerfile
2022-02-16 15:12:40 +01:00
Jonas Zohren
c4353405a5
Suggestions from Jonas Zohren
2022-02-16 15:12:38 +01:00
Timo Kösters
de6c3312ce
docs: make all configs match
2022-02-16 15:11:46 +01:00
Jonas Zohren
c66866d890
Merge branch 'ci-lint-dockerfiles-with-hadolint' into 'next'
...
CI: Lint dockerfiles with hadolint
Closes #239
See merge request famedly/conduit!308
2022-02-15 19:10:12 +00:00
Jonas Zohren
b21a44ca4c
feat(ci): Lint dockerfiles with hadolint
2022-02-15 20:01:38 +01:00
Jonas Zohren
e04d4ff150
Merge branch 'ci-fix-tag-pipelines' into 'next'
...
Ci fix tag pipelines
Closes #229
See merge request famedly/conduit!307
2022-02-15 10:56:25 +00:00
Jonas Zohren
2645494582
fix(ci): Also run CI for git tags
2022-02-15 11:17:46 +01:00
Jonas Zohren
77f4b68c8e
fix(ci): Also create versioned docker image
2022-02-15 11:17:32 +01:00
Timo Kösters
6602f6114c
fix: redacts can't error anymore
2022-02-13 15:47:58 +01:00
Jonas Platte
3aece38e9d
Add a not-found route
2022-02-13 13:59:27 +01:00
Timo Kösters
9cfef51af3
Merge branch 'more-paths' into 'next'
...
Take advantage of multiple paths
See merge request famedly/conduit!305
2022-02-13 12:13:22 +00:00
Jonas Platte
aee6bf7e7a
Change this to handler
2022-02-13 11:30:04 +00:00
Jonathan de Jong
b8d92d3cec
take advantage of multiple paths
2022-02-13 12:07:00 +01:00
Timo Kösters
0c4b42ac13
Merge branch 'parse-pdu-command-panic' into 'next'
...
fix: do not panic on a JSON not containing the PDU
Closes #236
See merge request famedly/conduit!304
2022-02-12 21:22:37 +00:00
Timo Kösters
91d5fbd56c
Merge branch 'up-ruma' into 'next'
...
Update ruma
See merge request famedly/conduit!303
2022-02-12 20:59:07 +00:00
M0dEx
d4217007fe
fix: do not panic on a JSON not containing the PDU
...
Do not panic on a JSON not containing the PDU when executing the parse-pdu admin command.
2022-02-12 21:40:07 +01:00
Jonathan de Jong
35b82d51cf
fix compilations
2022-02-12 21:04:38 +01:00
Jonathan de Jong
0ed1e42aed
update ruma
2022-02-12 21:01:53 +01:00
Timo Kösters
2b644ef7b7
Merge branch 'tracing-cleanup' into 'next'
...
Remove unnecessary tracing::instrument attributes
See merge request famedly/conduit!302
2022-02-12 15:50:24 +00:00
Jonas Platte
0ad6eac4f8
Remove all tracing::instrument attributes from database::abstraction::*
2022-02-12 16:38:47 +01:00
Jonas Platte
accdb77315
Clean up tracing::instrument attributes
...
Remove it from request handler since there's already the context of the
request path, added through TraceLayer.
2022-02-12 16:38:47 +01:00
Timo Kösters
914152fcbd
Merge branch 'syncfast' into 'next'
...
improvement: faster /syncs
Closes #231
See merge request famedly/conduit!297
2022-02-12 15:11:03 +00:00
Timo Kösters
2a00c547a1
improvement: faster /syncs
2022-02-12 15:57:54 +01:00
Jonas Platte
adeb8ee425
Remove no-op conversions
2022-02-12 15:03:07 +01:00
Jonas Platte
d74074ad53
Remove tracing::instrument attribute from util functions
...
They don't ever log anything, so the extra context is never used.
2022-02-12 15:01:28 +01:00
Timo Kösters
41d3da245e
Merge branch 'update_turn_readme' into 'next'
...
Update turn readme
See merge request famedly/conduit!292
2022-02-12 13:04:07 +00:00
Timo Kösters
0565b5a6c8
Merge branch 'show-dns-setup-error' into 'next'
...
Display actual error message from TokioAsyncResolver, if any
See merge request famedly/conduit!296
2022-02-12 13:01:41 +00:00
Timo Kösters
f3502beb94
Merge branch 'welcome-message-command-hint' into 'next'
...
feat: add welcome message command hint
See merge request famedly/conduit!299
2022-02-12 12:28:53 +00:00
Timo Kösters
d6b9874b35
Merge branch 'fix-admin-self-commands' into 'next'
...
Fix admin room processing commands from its own messages
See merge request famedly/conduit!293
2022-02-12 12:27:57 +00:00
Timo Kösters
1d01e2a077
Merge branch 'axum' into 'next'
...
Port from rocket to axum
See merge request famedly/conduit!263
2022-02-12 12:22:41 +00:00
Jonas Platte
ce714cfd07
Bump version
2022-02-12 13:20:55 +01:00
Jonas Platte
50b24b37c2
Upgrade Ruma
2022-02-12 12:56:18 +01:00
Jonas Platte
9db0473ed5
Improve error messages in Ruma wrapper FromRequest impl
2022-02-12 12:56:08 +01:00
Jonas Platte
5d8c80b170
Strip quotes from X-Matrix fields
2022-02-12 12:56:08 +01:00
Jonas Platte
21ae63d46b
Rewrite query parameter parsing
2022-02-12 12:56:08 +01:00
Jonas Platte
c8951a1d9c
Use axum-server for direct TLS support
2022-02-12 12:56:08 +01:00
Jonas Platte
5fa9190117
Simplify return type of most route handlers
2022-02-12 12:56:08 +01:00
Jonas Platte
77a87881c9
Add message to unsupported HTTP method panic
2022-02-12 12:56:08 +01:00
Jonas Platte
7bf538f549
Fix axum route conflicts
2022-02-12 12:56:07 +01:00
Jonas Platte
a5757ab195
Generalize RumaHandler
2022-02-12 12:56:07 +01:00
Jonas Platte
d1d2217019
Clean up error handling for server_server::get_server_keys_route
2022-02-12 12:56:07 +01:00
Jonas Platte
1f7b3fa4ac
Port from Rocket to axum
2022-02-12 12:56:07 +01:00
Timo Kösters
8709c3ae7b
Merge branch 'refactor2' into 'next'
...
Remove unnecessary uses of event enums
See merge request famedly/conduit!300
2022-02-12 11:50:23 +00:00
Jonas Platte
5db4c001d1
Remove another unnecessary use of an event enum
2022-02-12 01:58:47 +01:00
Jonas Platte
583ec51f9f
Remove unnecessary use of event enum
2022-02-12 01:58:47 +01:00
M0dEx
f602d32aaa
feat: add the actual server name to the welcome message
2022-02-11 18:51:28 +01:00
M0dEx
a6976e6d2d
feat: add 'available' to the help command line in the welcome message
2022-02-11 18:40:51 +01:00
M0dEx
f2b8aa28f3
feat: add a line with the help command to the welcome message
2022-02-11 18:26:56 +01:00
Andrej Kacian
bfbefb0cd2
Display actual error message from TokioAsyncResolver, if any
2022-02-07 12:56:44 +01:00
Andrei Vasiliu
31918bb990
Fix admin room processing commands from its own messages
2022-02-05 08:57:15 +02:00
Torsten Flammiger
f110b5710a
Move appservice howto into whats-next; again, rename placeholder TURN url
2022-02-04 21:11:50 +01:00
Torsten Flammiger
1cc0b55650
Resolve merge conflict
2022-02-04 19:28:57 +01:00
Torsten Flammiger
63a2c6cce5
Add new TURN Readme and reference it from DEPLOY.md
2022-02-04 19:11:29 +01:00
Jonas Zohren
faa0cdb595
Merge branch 'next' into 'master'
...
CI-Hotfix to master
See merge request famedly/conduit!290
2022-02-04 18:00:01 +00:00
Jonas Zohren
0cec421930
Merge branch 'ci-hotfix-sytest-on-master' into 'next'
...
fix(ci): Always build debug version for sytest
See merge request famedly/conduit!289
2022-02-04 17:51:57 +00:00
Jonas Zohren
826b077e21
fix(ci): Always build debug version for sytest
2022-02-04 18:43:13 +01:00
Timo Kösters
9c8c784fe7
Merge branch 'next' into 'master'
...
Release 0.3
See merge request famedly/conduit!288
2022-02-04 17:37:26 +00:00
Jonas Zohren
4dcc080ad9
Merge branch 'pre-release-doc-changes' into 'next'
...
Pre-0.3 doc adjustments
See merge request famedly/conduit!287
2022-02-04 17:12:33 +00:00
Timo Kösters
d55992dc83
Merge branch 'jemallocfeature' into 'next'
...
feat: allow disabling jemalloc via feature
See merge request famedly/conduit!285
2022-02-04 17:08:03 +00:00
Jonas Zohren
103dc7e09b
Pre-0.3 doc adjustments
2022-02-04 18:05:24 +01:00
Timo Kösters
dffa5570e7
Merge branch 'emptysearchcrash' into 'next'
...
fix: crash on empty search
Closes #190
See merge request famedly/conduit!286
2022-02-04 16:42:56 +00:00
Timo Kösters
dd03608f17
use our own reqwest fork
2022-02-04 17:24:45 +01:00
Timo Kösters
eb0b2c429f
fix: crash on empty search
2022-02-04 17:15:52 +01:00
Timo Kösters
8d8edddb2e
feat: allow disabling jemalloc via feature
2022-02-04 17:00:46 +01:00
Timo Kösters
f35ad27627
Merge branch 'contextfix' into 'next'
...
fix: lazy loading for /context
See merge request famedly/conduit!284
2022-02-04 13:45:57 +00:00
Timo Kösters
72cd52e57c
fix: lazy loading for /context
2022-02-04 13:33:04 +01:00
Timo Kösters
8db7d2c025
Merge branch 'asonix/encourage-reqwest-reuse' into 'next'
...
Re-use a basic reqwest client in all possible cases
See merge request famedly/conduit!265
2022-02-04 11:27:41 +00:00
Timo Kösters
51cca1a60f
Merge branch 'create-admin-room' into 'next'
...
Create admin room and hide migration messages on first run
Closes #157 and #225
See merge request famedly/conduit!282
2022-02-03 21:09:21 +00:00
Andrei Vasiliu
e1c0dcb6bb
Create admin room and hide migration messages on first run
2022-02-03 22:50:11 +02:00
Timo Kösters
86a9ec9f44
Merge branch 'up-ruma' into 'next'
...
Upgrade Ruma
See merge request famedly/conduit!281
2022-02-03 19:41:47 +00:00
Jonas Platte
d23d6fbb37
Upgrade Ruma
2022-02-03 20:24:02 +01:00
Timo Kösters
2d9c5791a6
Merge branch 'rocket-config' into 'next'
...
Remove mutation from default_config and set default log_level to off
See merge request famedly/conduit!280
2022-02-03 19:20:49 +00:00
Jonas Platte
92571d961f
Remove mutation from default_config and set default log_level to off
2022-02-03 19:55:54 +01:00
Timo Kösters
7a388f4d72
Merge branch 'command-refactor' into 'next'
...
Move and refactor admin commands into admin module
See merge request famedly/conduit!253
2022-02-03 18:43:54 +00:00
Andrei Vasiliu
b56efcdc2a
Merge remote-tracking branch 'origin/next' into command-refactor
...
Fixed a small conflict in admin.rs
2022-02-03 20:31:06 +02:00
Andrei Vasiliu
6399a7fe4e
Remove dash from admin command help
2022-02-03 20:21:04 +02:00
Timo Kösters
79345dc2a6
Merge branch 'refactor' into 'next'
...
Some refactorings
See merge request famedly/conduit!279
2022-02-03 12:50:55 +00:00
Jonas Platte
974c10e739
Move Config out of database module
2022-02-03 13:30:04 +01:00
Jonas Platte
ce60fc6859
Stop using set_env to configure tracing-subscriber
2022-02-03 13:24:28 +01:00
Jonas Platte
abb4b4cf0b
Remove TryFrom, TryInto imports
...
They are no longer needed in the 2021 edition.
2022-02-03 13:24:04 +01:00
Andrei Vasiliu
4bbff69a24
Merge remote-tracking branch 'origin/next' into command-refactor
...
Fixed conflict with commit 78502aa6b1
2022-02-03 13:12:55 +02:00
Timo Kösters
b4755ba15b
Merge branch 'tests' into 'next'
...
Bug fixes
See merge request famedly/conduit!278
2022-02-03 10:12:04 +00:00
Timo Kösters
9ef3abacd4
fix: initial state deserialize->serialize error
2022-02-03 10:57:54 +01:00
Andrei Vasiliu
87225e70c3
Parse admin command body templates from doc comments
2022-02-02 21:35:57 +02:00
Jonas Zohren
510a44699d
Merge branch 'fix-healthcheck-no-port' into 'next'
...
Docker: Healtcheck and build fixes
Closes #222
See merge request famedly/conduit!277
2022-02-02 14:07:49 +00:00
Jonas Zohren
c4733676cf
Apply feedback from Ticho
2022-02-02 13:35:15 +00:00
Jonas Zohren
e5bac5e4f5
fix: Running in Docker
2022-02-02 14:07:35 +01:00
Jonas Zohren
9478c75f9d
Use prebuilt CI-containers from https://gitlab.com/jfowl/conduit-containers
...
Also run all builds on approved MRs
2022-02-02 13:31:28 +01:00
Torsten Flammiger
e24d75cffc
Return the ID of the appservice that was created by register_appservice
2022-02-02 13:29:10 +01:00
Torsten Flammiger
8f69f02e59
add error handling for register_appservice too
2022-02-02 13:29:09 +01:00
Torsten Flammiger
da7b55b39c
Cleanup appservice events after removing the appservice
2022-02-02 13:29:09 +01:00
user
bfcf2db497
fix: mention dependencies to build from source
2022-02-02 13:29:09 +01:00
Timo Kösters
a5f004d7e9
fix: signature mismatch on odd send_join servers
2022-02-02 13:25:31 +01:00
Jonas Zohren
004dfdeaac
Merge branch 'ci-test-using-prebuilt-images' into 'next'
...
Use custom container images for CI
Closes #221
See merge request famedly/conduit!273
2022-02-01 23:51:38 +00:00
Jonas Zohren
fa4099b138
Use prebuilt CI-containers from https://gitlab.com/jfowl/conduit-containers
...
Also run all builds on approved MRs
2022-02-01 23:51:38 +00:00
Timo Kösters
caf9834e50
feat: cache capacity modifier
2022-02-01 14:42:13 +01:00
Timo Kösters
23aecb78c7
fix: use to_lowercase on /register/available username
2022-01-31 15:40:31 +01:00
Timo Kösters
e17bbdd42d
tests
2022-01-31 14:49:00 +01:00
Timo Kösters
95ca43e20f
Merge branch 'cleanup_events_after_unregister_appservice' into 'next'
...
Cleanup events after unregister appservice / update appservice error handling / return ID of new appservice
See merge request famedly/conduit!276
2022-01-31 13:24:01 +00:00
Torsten Flammiger
28d3b348d2
Return the ID of the appservice that was created by register_appservice
2022-01-31 11:52:33 +01:00
Torsten Flammiger
78502aa6b1
add error handling for register_appservice too
2022-01-31 10:07:49 +01:00
Torsten Flammiger
cc13112592
Cleanup appservice events after removing the appservice
2022-01-31 09:27:31 +01:00
Andrei Vasiliu
677f044d13
Refactor admin code to always defer command processing
2022-01-31 00:00:05 +02:00
Timo Kösters
fb2a7ebf66
Merge branch 'build-dependencies-deploy' into 'next'
...
Mention dependencies to build from source
See merge request famedly/conduit!275
2022-01-29 08:35:54 +00:00
user
8ff95a5a48
fix: mention dependencies to build from source
2022-01-28 22:26:56 -08:00
Jonas Zohren
401b88d16d
fix: Healtcheck use netstat for port as fallback
2022-01-28 23:23:58 +01:00
Jonas Zohren
8c1cf733b5
Merge branch 'fix-healthcheck-no-port' into 'next'
...
fix: Use default port for healthcheck as fallback
Closes #222
See merge request famedly/conduit!274
2022-01-28 21:48:25 +00:00
Jonas Zohren
44f7a85077
fix: Use default port for healthcheck as fallback
...
Conduit can start without a specific port being configured.
This adjusts the healthcheck script to tolerate that state.
Closes https://gitlab.com/famedly/conduit/-/issues/222
2022-01-28 22:33:49 +01:00
Aode (lion)
b39ddf7be9
Rename reqwest clients, mention cheap client clones in comment
2022-01-28 12:42:47 -06:00
Jonas Platte
296c68c0cd
Merge branch 'get-thumbnail-mxc-as-ref' into 'next'
...
Do not copy mxc string unnecessarily in db.get_thumbnail()
See merge request famedly/conduit!272
2022-01-27 17:14:42 +00:00
Andrej Kacian
529e88c7f9
Do not copy mxc string unnecessarily in db.get_thumbnail()
2022-01-27 17:47:09 +01:00
Aode (lion)
1059f35fdc
use pre-constructed client for well-known requests also
2022-01-27 10:37:04 -06:00
Aode (Lion)
f8d1c1a8af
Re-use a basic request in all possible cases
2022-01-27 10:37:04 -06:00
Timo Kösters
20006c91af
Merge branch 'media-download-followup' into 'next'
...
Media download followup
See merge request famedly/conduit!271
2022-01-27 16:24:15 +00:00
Andrej Kacian
0f6d232cb1
Style fixes from 'cargo fmt'
2022-01-27 17:13:33 +01:00
Andrej Kacian
ccfc243c2c
Make get_remote_content() return Result instead of ConduitResult
2022-01-27 17:13:07 +01:00
Timo Kösters
f7148def90
Merge branch 'up-ruma' into 'next'
...
Upgrade Ruma
See merge request famedly/conduit!268
2022-01-27 15:46:00 +00:00
Timo Kösters
63309e52f8
Merge branch 'media-download-with-filename' into 'next'
...
Media download with filename
See merge request famedly/conduit!266
2022-01-27 15:44:56 +00:00
Andrej Kacian
c4317a7a96
Reduce code duplication in media download route handlers
2022-01-27 16:32:19 +01:00
Jonas Platte
9c2000cb89
Upgrade Ruma
2022-01-27 16:25:42 +01:00
Andrej Kacian
52873c88b7
Fix incorrect HTTP method in doc comments of two media routes
2022-01-27 00:31:44 +01:00
Andrej Kacian
8472eff277
Implement media download with custom filename
2022-01-27 00:31:44 +01:00
Jonas Zohren
ba8d5abb67
Merge branch 'fix/sccache' into 'next'
...
Fix CI cargo-cross caching with sccache
See merge request famedly/conduit!264
2022-01-26 18:54:13 +00:00
Maxim De Clercq
ff16729976
fix: correct RUSTC_WRAPPER path in cross container
2022-01-26 00:02:03 +01:00
Maxim De Clercq
acf1585fc3
fix: make sure that libatomic is linked statically
2022-01-24 11:45:07 +01:00
Maxim De Clercq
067fcfc0e4
fix: remove trailing slash from shared path
2022-01-23 22:51:02 +01:00
Maxim De Clercq
77ad4cb8f8
fix: use readelf for checking static compilation
2022-01-23 22:51:02 +01:00
Maxim De Clercq
64c25ea4a1
fix: always print ELF information
2022-01-23 18:38:33 +01:00
Maxim De Clercq
c7560b3502
fix: remove libgcc dependency in ci builds since the binary is ensured to be statically compiled
2022-01-23 18:09:14 +01:00
Maxim De Clercq
c2ad2b3dd7
fix: pass sccache variables to cross container with build.env.passthrough
2022-01-23 17:43:28 +01:00
Maxim De Clercq
219dfbabd5
fix: pass RUSTC_WRAPPER to the cross container and enforce static builds
2022-01-23 17:31:12 +01:00
Jonas Zohren
4a34d757d7
Merge branch 'fix/rocksdb-cross-compiling' into 'next'
...
Fix cross-compiling for RocksDB
Closes #213
See merge request famedly/conduit!261
2022-01-23 15:58:27 +00:00
Maxim De Clercq
fd67cd7450
feat: support targetting i686
2022-01-23 15:58:19 +01:00
Maxim De Clercq
cd9902637d
feat: use rustembedded/cross images and use static relocation model to fix cross-compile
2022-01-23 14:41:39 +01:00
Andrei Vasiliu
7505548b94
Merge remote-tracking branch 'refs/remotes/origin/next' into command-refactor
...
Resolved conflict for the new list_local_users command
2022-01-22 14:29:50 +02:00
Timo Kösters
f50bdb6010
Merge branch 'list_local_users' into 'next'
...
Implement list_local_users command
See merge request famedly/conduit!260
2022-01-22 09:33:32 +00:00
Maxim De Clercq
a021680591
fix: make sure libatomic is always linked because it's skipped on arm targets
2022-01-22 01:14:36 +01:00
Maxim De Clercq
3e9abfedb4
fix: make sure libstdc++ is linked statically when cross-compiling
2022-01-22 00:14:19 +01:00
Timo Kösters
b634f9d45c
Merge branch 'reqwestfix' into 'next'
...
improvement: use jemalloc for lower memory usage
See merge request famedly/conduit!262
2022-01-21 16:54:35 +00:00
Timo Kösters
f88523988e
improvement: use jemalloc for lower memory usage
2022-01-21 17:54:05 +01:00
Maxim De Clercq
bfef94f5f4
fix: linking against libatomic is no longer required since the library path is fixed
2022-01-21 17:26:25 +01:00
Maxim De Clercq
d94f3c1e9a
fix: make sure cc-rs and bindgen use the correct paths when cross-compiling
2022-01-21 17:06:15 +01:00
Timo Kösters
4ef995cf7d
Merge branch 'next' into 'next'
...
Add heisenbridge to tested appservices
See merge request famedly/conduit!250
2022-01-21 15:43:40 +00:00
Reiner Herrmann
97d56af5bd
Add heisenbridge to tested appservices
2022-01-21 16:40:03 +01:00
Andrei Vasiliu
57979da28c
Change structopt to clap, remove markdown dependency
2022-01-21 17:35:26 +02:00
Timo Kösters
58da67e59e
Merge branch 'mautrix-signal-support' into 'next'
...
Add mautrix-signal to tested appservices
See merge request famedly/conduit!251
2022-01-21 15:33:10 +00:00
Timo Kösters
5d3ba5c628
Merge branch 'WIP_persy_batch_next' into 'next'
...
feat: Integration with persy using background ops
See merge request famedly/conduit!231
2022-01-21 15:31:46 +00:00
Torsten Flammiger
960ba8bd99
Merged current next
2022-01-21 14:32:59 +01:00
Torsten Flammiger
ba6d72f3f9
Reformatted
2022-01-21 14:28:07 +01:00
Andrei Vasiliu
cc3ef1a8be
Improve help text for admin commands
2022-01-21 11:13:24 +02:00
Andrei Vasiliu
f244c0e2ce
Merge remote-tracking branch 'refs/remotes/origin/next' into command-refactor
2022-01-21 10:19:17 +02:00
Andrei Vasiliu
e378bc4a2c
Refactor admin commands to use structopt
2022-01-21 10:17:50 +02:00
Timo Kösters
ab4f3bd06c
Merge branch 'lib-main' into 'next'
...
Clean up mod and use statements in lib.rs and main.rs
See merge request famedly/conduit!258
2022-01-20 12:32:39 +00:00
Jonas Platte
8d81c1c072
Use MSRV for build CI jobs
...
The test job will use the latest stable so all stable lints are included.
2022-01-20 13:23:58 +01:00
Jonas Platte
6bb1081b71
Use BTreeMap::into_values
...
Stable under new MSRV.
2022-01-20 13:19:51 +01:00
Jonas Platte
ff5fec9e74
Raise minimum supported Rust version to 1.56
2022-01-20 13:19:51 +01:00
Jonas Platte
5afb27a5a9
Use latest stable for Docker image
2022-01-20 12:29:24 +01:00
Jonas Platte
6e322716ca
Delete rust-toolchain file
2022-01-20 12:29:10 +01:00
Jonas Platte
756a41f22d
Fix rustc / clippy warnings
2022-01-20 00:10:39 +01:00
Jonas Platte
a0fc5eba72
Remove unnecessary Result
2022-01-19 23:57:22 +01:00
Timo Kösters
cc0f094ff7
Merge branch 'rocksdbbreaks' into 'next'
...
Rocksdb breaking change. If your server breaks, come to #conduit:fachschaften.org
See merge request famedly/conduit!259
2022-01-19 06:17:57 +00:00
Timo Kösters
d4eb3e3295
fix: rocksdb does not use zstd compression unless we disable everything else
2022-01-19 07:09:25 +01:00
Jonas Platte
c6277c72a1
Fix warnings in database::abstraction
2022-01-18 21:05:40 +01:00
Jonas Platte
13a48c4577
Clean up mod and use statements in lib.rs and main.rs
2022-01-18 21:04:44 +01:00
Timo Kösters
b2ffc4e496
Merge branch 'maxopenfiles' into 'next'
...
Server ACL support and more config options
Closes #67
See merge request famedly/conduit!248
2022-01-18 09:05:57 +00:00
Timo Kösters
53de350908
fix: less load when lazy loading
2022-01-17 23:24:27 +01:00
Torsten Flammiger
fd6427a83f
Update/Revert code comment
2022-01-17 22:34:34 +01:00
Torsten Flammiger
fc39b3447c
Little bit of refactoring
2022-01-17 19:43:45 +01:00
Torsten Flammiger
4aefc29650
Merge branch 'list_local_users_test' into list_local_users
2022-01-17 19:20:11 +01:00
Timo Kösters
03b174335c
improvement: lower default pdu cache capacity
2022-01-17 14:46:53 +01:00
Timo Kösters
8c90e7adfb
refactor: fix warnings
2022-01-17 14:46:03 +01:00
Timo Kösters
ee8e72f7a8
feat: implement server ACLs
2022-01-17 14:35:38 +01:00
Jonas Zohren
24aa034e48
Merge branch 'ci-fix-cargo-test-missing-libclang' into 'next'
...
CI: Fix cargo-test
See merge request famedly/conduit!255
2022-01-16 20:57:23 +00:00
Jonas Zohren
10f1da12bf
CI: Fix cargo-test
2022-01-16 20:57:23 +00:00
Torsten Flammiger
50430cf4ab
Name function after command: list_local_users
2022-01-16 21:22:57 +01:00
Torsten Flammiger
52284ef9e2
Add some debug/info if user was found
2022-01-16 20:25:16 +01:00
Torsten Flammiger
3e79d15495
Updated function documentation
2022-01-16 20:15:53 +01:00
Andrei Vasiliu
13ae036ca0
Move and refactor admin commands into admin module
2022-01-16 13:52:23 +02:00
Torsten Flammiger
9205c07048
Update get_local_users description
2022-01-15 22:37:39 +01:00
Torsten Flammiger
c03bf6ef11
name the function after its purpose: iter_locals -> get_local_users
2022-01-15 22:20:51 +01:00
Julius de Bruijn
217e378992
Add mautrix-signal to tested appservices
2022-01-15 17:34:13 +00:00
Torsten Flammiger
91eb6c4d08
Return a Result instead of a vector
2022-01-15 17:10:23 +01:00
Torsten Flammiger
fb19114bd9
rename iter_locals to get_local_users; make get_local_users skip on parse errors; remove deprecated function count_local_users
2022-01-15 15:52:47 +01:00
Tglman
c1cd4b5e26
chore: set the released version of persy in Cargo.toml
2022-01-15 14:17:15 +00:00
Tglman
f9977ca64f
fix: changes to update to the last database engine trait definition
2022-01-15 14:17:15 +00:00
Tglman
1cc41937bd
refactor:use generic watcher in persy implementation
2022-01-15 14:17:15 +00:00
Tglman
ab15ec6c32
feat: Integration with persy using background ops
2022-01-15 14:17:15 +00:00
Timo Kösters
d434dfb3a5
feat: config option for rocksdb max open files
2022-01-14 11:44:20 +01:00
Timo Kösters
5b8d2a736e
Merge branch 'default' into 'next'
...
improvement: better default cache capacity
See merge request famedly/conduit!247
2022-01-14 10:44:06 +00:00
Timo Kösters
80e51986c4
improvement: better default cache capacity
2022-01-14 11:08:31 +01:00
Jonas Zohren
8fc51f0029
Merge branch 'ci-cargo-home-workaround' into 'next'
...
Fix(ci): Disable CARGO_HOME caching
See merge request famedly/conduit!246
2022-01-13 22:24:47 +00:00
Jonas Zohren
f67785caaf
Fix(ci): Disable CARGO_HOME caching
2022-01-13 22:24:47 +00:00
Timo Kösters
1119c2f510
Merge branch 'rocksdb' into 'next'
...
feat: rocksdb backend
See merge request famedly/conduit!217
2022-01-13 22:12:51 +00:00
Timo Kösters
16f826773b
refactor: fix warnings
2022-01-13 22:55:35 +01:00
Timo Kösters
6fa01aa982
fix: remove dbg
2022-01-13 22:44:27 +01:00
Timo Kösters
a336027b0e
fix: better memory usage message
2022-01-13 22:44:27 +01:00
Timo Kösters
447639054e
improvement: higher default pdu capacity
2022-01-13 22:44:27 +01:00
Timo Kösters
9e77f7617c
fix: disable direct IO again
2022-01-13 22:44:27 +01:00
Timo Kösters
7f27af032b
improvement: optimize rocksdb for spinning disks
2022-01-13 22:44:26 +01:00
Timo Kösters
b96822b617
fix: use db options for column families too
2022-01-13 22:44:26 +01:00
Timo Kösters
0bb7d76dec
improvement: rocksdb configuration
2022-01-13 22:44:26 +01:00
Timo Kösters
077e9ad438
improvement: memory usage for caches
2022-01-13 22:44:25 +01:00
Andrej Kacian
68ee1a5408
Add rocksdb implementation of memory_usage()
2022-01-13 22:42:25 +01:00
Andrej Kacian
ff243870f8
Add "database_memory_usage" AdminCommand
2022-01-13 22:42:24 +01:00
Andrej Kacian
71431f330a
Add memory_usage() to DatabaseEngine trait
2022-01-13 22:42:24 +01:00
Timo Kösters
fa6d7f7ccd
feat: database backend selection at runtime
2022-01-13 22:42:22 +01:00
Timo Kösters
4f39d36e98
docs: lazy loading
2022-01-13 22:38:52 +01:00
Timo Kösters
c6d88359d7
fix: incremental lazy loading
2022-01-13 22:38:52 +01:00
Timo Kösters
f285c89006
fix: make incremental sync efficient again
2022-01-13 22:38:52 +01:00
Timo Kösters
93d225fd1e
improvement: faster way to load required state
2022-01-13 22:38:52 +01:00
Timo Kösters
1bd9fd74b3
feat: partially support sync filters
2022-01-13 22:38:52 +01:00
Timo Kösters
68e910bb77
feat: lazy loading
2022-01-13 22:38:50 +01:00
Timo Kösters
5bcc1324ed
fix: auth event fetch order
2022-01-13 22:29:19 +01:00
Timo Kösters
54f4d39e3e
improvement: don't fetch event multiple times
2022-01-13 22:29:17 +01:00
Timo Kösters
b1d9ec3efc
fix: atomic increment
2022-01-13 22:28:18 +01:00
Timo Kösters
ee3d2db8e0
improvement, maybe not safe
2022-01-13 22:10:51 +01:00
Timo Kösters
83a9095cdc
fix?
2022-01-13 22:10:51 +01:00
Timo Kösters
74951cb239
dbg
2022-01-13 22:10:51 +01:00
Timo Kösters
4b4afea2ab
fix auth event fetching
2022-01-13 22:10:51 +01:00
Timo Kösters
c9c9974641
fix: stack overflows when fetching auth events
2022-01-13 22:10:50 +01:00
Timo Kösters
a30b588ede
rocksdb as default
2022-01-13 22:10:50 +01:00
Timo Kösters
1d647a1a9a
improvement: allow rocksdb again
2022-01-13 22:10:43 +01:00
Timo Kösters
b25354c747
Merge branch 'add_remove_appservice' into 'next'
...
Add ability to remove an appservice
See merge request famedly/conduit!236
2022-01-13 11:38:17 +00:00
Torsten Flammiger
eecd664c43
Reformat code
2022-01-13 12:26:23 +01:00
Timo Kösters
f3ea2df9fe
Merge branch 'simpler-traefik-nginx' into 'next'
...
Make traefik+nginx config more self-contained
See merge request famedly/conduit!239
2022-01-13 11:18:15 +00:00
Timo Kösters
fbcbadf265
Merge branch 'rust-1.53' into 'next'
...
Restore compatibility with Rust 1.53
See merge request famedly/conduit!244
2022-01-13 11:09:14 +00:00
Jonas Platte
bcf4ede0bc
Restore compatibility with Rust 1.53
2022-01-13 12:06:20 +01:00
Timo Kösters
f5d1dda766
Merge branch 'up-ruma' into 'next'
...
Upgrade Ruma
See merge request famedly/conduit!243
2022-01-13 10:52:13 +00:00
Jonas Platte
84862352ba
Replace to_string calls on string literals with to_owned
2022-01-13 11:48:40 +01:00
Jonas Platte
cf54185a1c
Use struct literals for consistency
2022-01-13 11:48:18 +01:00
Jonas Platte
349865d3cc
Upgrade Ruma
2022-01-13 11:44:23 +01:00
Timo Kösters
2fa8171e79
Merge branch 'ci-use-sccache' into 'next'
...
CI: Use sccache for caching
Closes #200
See merge request famedly/conduit!232
2022-01-13 10:42:33 +00:00
Timo Kösters
8e12b47df4
Merge branch 'no-passwords-in-db' into 'next'
...
Do not store uiaa requests in database
See merge request famedly/conduit!219
2022-01-13 10:33:49 +00:00
Timo Kösters
0ec26b7e96
Merge branch 'next' into 'next'
...
refactor:moved key watch wake logic to specific module
See merge request famedly/conduit!238
2022-01-13 10:27:56 +00:00
Timo Kösters
b32e85ffa8
Merge branch 'up-ruma' into 'next'
...
Upgrade Ruma
See merge request famedly/conduit!237
2022-01-13 10:24:45 +00:00
Ticho 34782694
b746f17e56
Make traefik+nginx config more self-contained
...
The nginx instance which is serving the .well-known endpoints can serve
the simple JSON replies directly from memory, instead of having them
as external files on disk.
2022-01-07 13:06:21 +00:00
Torsten Flammiger
8d51359668
Fix typo and remove unneeded newline
2021-12-26 20:49:19 +01:00
Torsten Flammiger
a69eb277d4
Update count users: It's now list_local_users and contains the number and the usernames
2021-12-26 20:00:31 +01:00
Torsten Flammiger
39787b41cb
Rename admin command CountUsers -> CountLocalUsers; Update comments
2021-12-26 12:04:38 +01:00
Torsten Flammiger
2281bcefc6
Finalize count_local_users function
2021-12-26 11:06:28 +01:00
Torsten Flammiger
d21030566c
Rename/Add count methods to count_local_users
2021-12-25 21:29:03 +01:00
Torsten Flammiger
567cf6dbe9
Add command count_local_users to database/rooms.rs
2021-12-25 20:51:22 +01:00
Torsten Flammiger
7c1b2625cf
Prepare to add an option to list local user accounts from your homeserver
2021-12-24 23:06:54 +01:00
Tglman
a889e884e6
refactor:moved key watch wake logic to specific module
2021-12-23 23:17:43 +00:00
Jonas Platte
aba95b20f3
Upgrade Ruma
2021-12-23 17:40:42 +01:00
Moritz Bitsch
c4a438460e
Use Box to store UserID and DeviceID
...
Userid and DeviceID are of unknown size, use Box to be able to store
them into the userdevicesessionid_uiaarequest BTreeMap
2021-12-22 19:26:23 +01:00
Torsten Flammiger
7f2445be6c
On unregister_appservice(service_name), remove the appservice service_name from cache too
2021-12-22 16:48:27 +01:00
Torsten Flammiger
b6c9582cf4
Fix doc style comment according to Rust; VSCode added line breaks
2021-12-22 13:09:56 +01:00
Torsten Flammiger
7857da8a0b
Add ability to remove an appservice
2021-12-20 15:46:36 +01:00
Moritz Bitsch
720a54b3bb
Use String to store UserId for uiaa request
...
Fixes compilation error after ruma upgrade
2021-12-18 19:05:18 +01:00
Moritz Bitsch
0725b69abb
Clean up userdevicesessionid_uiaarequest BTreeMap
...
There is no need to encode or decode anything as we are not
saving to disk
2021-12-18 18:57:36 +01:00
Moritz Bitsch
fe8cfe0556
Add database migration to remove stored passwords
...
uiaarequests can contain plaintext passwords, which were stored on disk
2021-12-18 18:57:36 +01:00
Moritz Bitsch
3d25d46dc5
Use simple BTreeMap to store uiaa requests
...
some uiaa requests contain plaintext passwords which should never be
persisted to disk.
Currently there is no cleanup implemented (you have to restart conduit)
2021-12-18 18:57:36 +01:00
Timo Kösters
9b57c89df6
Merge branch 'more-event-id-arcs' into 'next'
...
Use Arc for EventIds in PDUs
See merge request famedly/conduit!229
2021-12-16 13:06:30 +00:00
Jonas Platte
34d3f74f36
Use Arc for EventIds in PDUs
...
Upgrades Ruma again to make this work.
2021-12-16 13:55:24 +01:00
Timo Kösters
11a21fc136
Merge branch 'up-ruma' into 'next'
...
Upgrade ruma
See merge request famedly/conduit!228
2021-12-15 14:22:30 +00:00
Jonas Platte
0183d003d0
Revert rename of Ruma<_> parameters
2021-12-15 13:58:25 +01:00
Jonas Platte
f712455047
Reduce EventId copying
2021-12-15 13:00:37 +01:00
Jonas Platte
58ea081762
Use int! macro instead of Int::from
2021-12-15 13:00:37 +01:00
Jonas Platte
bffddbd487
Simplify identifier parsing code
2021-12-15 13:00:37 +01:00
Jonas Platte
41fef1da64
Remove unnecessary .to_string() calls
2021-12-15 13:00:37 +01:00
Jonas Platte
892a0525f2
Upgrade Ruma
2021-12-15 13:00:37 +01:00
Jonas Platte
1fc616320a
Use struct init shorthand
2021-12-15 13:00:37 +01:00
Timo Kösters
14a178d783
Merge branch 'update-docker-base-image' into 'next'
...
Update docker images
See merge request famedly/conduit!230
2021-12-15 10:14:20 +00:00
Jonas Zohren
339a26f56c
Update docker images
2021-12-15 10:14:20 +00:00
Jonas Zohren
adb518fa0d
CI: Use curl instead of wget
...
The rust docker image already comes with curl, no need to install wget.
2021-12-14 11:16:40 +01:00
Jonas Zohren
f91216dd3c
CI: Optionally use sccache for compilation
...
This moves compiler caching for incremental builds away from GitLab
caching the whole target/ folder to caching each code unit in S3.
This aleviates the need to zip and unzip and just caches on the fly.
This feature is optional and gated behind the SCCACHE_BIN_URL env
2021-12-14 11:16:02 +01:00
Timo Kösters
ca724b6340
Merge branch '226-fix-docker-ci-issues' into 'next'
...
Fixes for !225
See merge request famedly/conduit!226
2021-11-25 22:36:44 +00:00
Jonas Zohren
9bfc7b34b6
Fixes for !225
2021-11-25 22:36:44 +00:00
Timo Kösters
afa5d449c6
Merge branch 'better-multiarch-building-the-second-attempt' into 'next'
...
CI: New Multiarch builds and Docker images + cargo clippy/test output now integrated into GitLab
Closes #145
See merge request famedly/conduit!225
2021-11-21 17:34:09 +00:00
Jonas Zohren
2fff720df3
CI: New Multiarch builds and Docker images + cargo clippy/test output now integrated into GitLab
2021-11-21 17:34:08 +00:00
Timo Kösters
da00f611e9
Merge branch 'feature/turn-server-settings' into 'next'
...
Implement turn server settings
Closes #97
See merge request famedly/conduit!208
2021-11-19 16:39:24 +00:00
Moritz Bitsch
9fccbb014a
Implement TURN server authentication with hmac
...
This is a prefered method to allow limited access to the TURN server
2021-11-12 12:43:15 +00:00
Moritz Bitsch
109892b4b7
Implement turn server settings
...
this fills out the infos in /_matrix/client/r0/voip/turnServer with
values specified in the server config
2021-11-12 12:43:15 +00:00
Jonas Platte
24a835647c
Merge branch 'nyaaori/fix-room-creation' into 'next'
...
Make createRoom follow spec for m.room.create, allowing creation of spaces
See merge request famedly/conduit!220
2021-11-09 16:34:51 +00:00
Nyaaori
c4bce1d0c7
Cleanup room.rs; replace unwraps with map_err
2021-11-09 16:12:44 +00:00
Jonas Platte
9b63708685
Merge branch 'nyaaori/fix-join-panic' into 'next'
...
Fix join panic bug
See merge request famedly/conduit!224
2021-11-09 14:46:28 +00:00
Nyaaori
86177faae7
Fix join panic bug
2021-11-07 07:57:15 +00:00
Timo Kösters
2a749c1e99
Merge branch 'nyaaori/implement-report' into 'next'
...
Implement the report feature
Closes #13
See merge request famedly/conduit!218
2021-11-03 14:17:32 +00:00
Timo Kösters
5ae753b2e7
Merge branch 'amorgan-next-patch-81816' into 'next'
...
Add 'Federation publicRoom Name/topic keys are correct' test to sytest whitelist
See merge request famedly/conduit!221
2021-10-27 11:49:55 +00:00
Andrew Morgan
743bdbe961
Add 'Federation publicRoom Name/topic keys are correct' test to sytest whitelist
2021-10-26 13:30:02 +00:00
Nyaaori
d5d25fb064
Preserve all m.room.create entries when performing room upgrades
2021-10-24 22:13:08 +00:00
Nyaaori
8087a26a35
Make createRoom follow spec for m.room.create, allowing creation of spaces
2021-10-24 20:26:51 +00:00
Nyaaori
bbe16f8467
Update Ruma
2021-10-24 00:45:02 +00:00
Nyaaori
50f931a2fd
Cleanup and fix validation in report.rs, lower max report length, better html
2021-10-20 11:12:06 +00:00
Nyaaori
1541b93f45
Make reports look nicer and reduce spam potential, increase max report length to 1000 characters
2021-10-18 05:38:41 +00:00
Nyaaori
ccf501a420
Initial implementation of /report, fixing #13
2021-10-18 04:51:11 +00:00
Timo Kösters
6f70beb78c
Merge branch 'nyaaori/fix-bad-json' into 'next'
...
Nyaaori/fix bad json
Closes #115
See merge request famedly/conduit!216
2021-10-16 06:59:34 +00:00
Timo Kösters
259fc580ca
Merge branch 'nyaaori/otk-sync-fix' into 'next'
...
Remove device_one_time_keys_count from is_empty() sync checks, fixing sync issue as reported by Nekron
Closes #115
See merge request famedly/conduit!215
2021-10-16 06:54:14 +00:00
Nyaaori
55d78b1914
Bump Ruma version to fix M_BAD_JSON on login
2021-10-16 00:45:51 +00:00
Nyaaori
484a044b50
Remove device_one_time_keys_count from is_empty() sync checks, fixing sync issue as reported by Nekron
2021-10-15 23:17:08 +00:00
Nyaaori
2264a5f945
Merge branch 'next' of https://gitlab.com/famedly/conduit into next
2021-10-15 23:14:07 +00:00
Timo Kösters
e88929e154
Merge branch 'nyaaori/fix-otk-reporting' into 'next'
...
Always send device_one_time_keys_count, fixing #178
Closes #169 and #178
See merge request famedly/conduit!213
2021-10-15 13:01:52 +00:00
Nyaaori
d996d1b0e6
Always send device_one_time_keys_count, fixing #178
2021-10-15 12:38:20 +00:00
Timo Kösters
dc8bc4a880
Merge branch 'up-ruma' into 'next'
...
Upgrade Ruma
See merge request famedly/conduit!210
2021-10-15 11:38:12 +00:00
Timo Kösters
87694f4369
Merge branch 'moa31-next-patch-76037' into 'next'
...
Change listen address when running inside a Container to prevent Bad Gateway error
See merge request famedly/conduit!207
2021-10-15 10:51:19 +00:00
Timo Kösters
335027e739
Merge branch 'nyaaori/admin-check' into 'next'
...
Implement admin check and add config option for allowing room creation
See merge request famedly/conduit!211
2021-10-15 10:47:55 +00:00
Timo Kösters
0ccda5f1c7
Merge branch 'nyaaori/allow_encryption' into 'next'
...
Make allow_encryption work again, fixing #115
Closes #115
See merge request famedly/conduit!212
2021-10-15 10:20:05 +00:00
Nyaaori
9082a531c9
Make allow_encryption work again, fixing #115
2021-10-15 09:57:49 +00:00
Jonas Platte
91afa1e0e0
Make Result alias usable with any error type
2021-10-13 12:25:58 +02:00
Jonas Platte
f2ef5677e0
Reduce turbofish usage
...
Should make the code a little bit easier to read.
2021-10-13 12:25:58 +02:00
Jonas Platte
1c4d9af586
Enable more lints and apply their suggestions
2021-10-13 10:24:39 +02:00
Jonas Platte
09895a20c8
Upgrade Ruma
...
Co-authored-by: Timo Kösters <timo@koesters.xyz >
2021-10-13 10:16:45 +02:00
Nyaaori
636db8cfaa
Make allow_encryption work again, fixing #115
2021-09-24 22:44:26 +00:00
Nyaaori
6bc8fb2ae7
Implement admin check and add config option for allowing room creation
2021-09-24 07:16:34 +00:00
Luc-pascal Ceccaldi
5b23d3d06e
Change listen address when running inside a Container to prevent Bad Gateway error
2021-09-23 07:49:52 +00:00
Timo Kösters
47f3263396
Merge branch 'gwmngilfen-next-patch-21674' into 'next'
...
Add two flavours of change for the mautrix-signal patch
See merge request famedly/conduit!197
2021-09-15 20:31:21 +00:00
Greg Sutcliffe
d38f9b5f01
Move Generic instructions for APPSERVICES above notes for specific bridges and tidy up.
2021-09-15 21:16:25 +01:00
Greg Sutcliffe
fa616342b6
Add two flavours of change for the mautrix-signal patch
2021-09-15 21:16:25 +01:00
Timo Kösters
34fa7fee05
Merge branch 'ci-fix-kaniko-i-hope' into 'next'
...
fix(ci): Convince kaniko that it is indeed running in a container by --force-ing it.
See merge request famedly/conduit!205
2021-09-15 07:05:33 +00:00
Jonas Zohren
e8d998cedf
fix(ci): Convince kaniko that it is indeed running in a container by --force-ing it.
2021-09-14 20:44:11 +00:00
Timo Kösters
565fe3a7dd
Merge branch 'faster-sending' into 'next'
...
improvement: batch inserts for inserting pdus
See merge request famedly/conduit!204
2021-09-14 18:35:12 +00:00
Timo Kösters
5c02dc7830
improvement: batch inserts for inserting pdus
2021-09-14 14:33:46 +02:00
Timo Kösters
159e22e450
Merge branch 'ci-fix-aarch64-build' into 'next'
...
fix(ci): Fix aarch64 build
See merge request famedly/conduit!203
2021-09-14 12:09:44 +00:00
Jonas Zohren
ab472e9b7c
fix(ci): Fix aarch64 build
...
gcc-8-aarch64-linux-gnu is not available in debian 11 (which the rust image uses), so update to gcc-10
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de >
2021-09-14 12:32:07 +02:00
Timo Kösters
31264e3d1d
Merge branch 'ci-remove-element-web-register-test' into 'next'
...
Remove the "register an account with element" test
See merge request famedly/conduit!202
2021-09-14 09:50:24 +00:00
Jonas Zohren
422bd09e32
Remove the "register an account with element" test
...
Broke due to a timeout and Timo does not like broken tests.
Less testing means less failing tests.
Also, hopefully sytest is less broken now.
2021-09-14 09:44:15 +00:00
Timo Kösters
b64538c6f1
Merge branch 'efficient-sqlite' into 'next'
...
improvement: more efficient sqlite
See merge request famedly/conduit!199
2021-09-14 07:23:02 +00:00
Timo Kösters
178451e9b5
Merge branch 'deduplicate-watchers' into 'next'
...
improvement: deduplicate watchers
See merge request famedly/conduit!201
2021-09-14 07:10:59 +00:00
Timo Kösters
583a966f6e
Merge branch 'less-alloc' into 'next'
...
Reduce allocations in server_server
See merge request famedly/conduit!190
2021-09-14 07:09:55 +00:00
Timo Kösters
cbee7fe111
improvement: deduplicate watchers
2021-09-13 23:20:30 +02:00
Jonas Platte
d68c93b5fa
Clean up (mostly automated with cargo clippy --fix)
2021-09-13 20:58:58 +02:00
Jonas Platte
979ec6b4fa
Upgrade ruma
2021-09-13 20:55:13 +02:00
Jonas Platte
910ad7fed1
Get rid of more unnecessary intermediate collections
2021-09-13 20:55:12 +02:00
Timo Kösters
2c8412fe58
improvement: more efficient sqlite
2021-09-13 20:12:42 +02:00
Timo Kösters
06b0c9267f
Merge branch 'appservice-signal' into 'next'
...
Add mautrix-signal appservice instructions
See merge request famedly/conduit!196
2021-09-13 14:07:18 +00:00
Daniel Wiesenberg
00927a7ce3
Add mautrix-signal appservice instructions
2021-09-09 10:02:11 +02:00
Timo Kösters
4aacafc298
Merge branch 'roomidshort-fix' into 'next'
...
fix sync not firing on new events in room
See merge request famedly/conduit!194
2021-09-08 13:39:05 +00:00
Jonathan de Jong
23c5ec8099
fix sync not firing on new events in room
2021-09-08 14:50:44 +02:00
Timo Kösters
562a2524d7
Merge branch 'db-errors' into 'next'
...
fix(database): handle errors in config parsin or database creation
Closes #121
See merge request famedly/conduit!193
2021-09-08 09:53:25 +00:00
Rasmus Thomsen
51245d34f1
fix(database): handle errors in config parsin or database creation
...
Showing the user a backtrace can be pretty confusing, so just printing
a nice error message makes errors easier to understand for end users.
fixes #121
2021-09-08 09:08:45 +01:00
Timo Kösters
4a773a1096
Merge branch 'rm-unused-deps' into 'next'
...
Remove unused dependencies
See merge request famedly/conduit!192
2021-09-07 14:00:27 +00:00
Jonas Platte
5821b8e705
Remove unused dependencies
2021-09-07 15:41:01 +02:00
Timo Kösters
0737bc021f
Merge branch 'charludo-next-patch-31617' into 'next'
...
apache2 sample-config error
See merge request famedly/conduit!191
2021-09-06 18:38:38 +00:00
charludo
487046571c
These lines get *generated* by certbot. Having them in the file before running certbot results in an apache2 error, and putting them in afterwards is not necessary, since certbot places them there on its own.
2021-09-06 18:35:35 +00:00
Timo Kösters
2d242523fc
Merge branch 'next' into 'next'
...
Fix deprecated/removed Traefik label
See merge request famedly/conduit!189
2021-09-03 20:56:21 +00:00
Daniel Wiesenberg
bbe36810ec
Fix deprecated/removed Traefik label
2021-09-03 21:51:17 +02:00
Timo Kösters
a449b1d73f
Merge branch 'fix-old-events' into 'next'
...
fix: make sure old events don't sneek into the timeline
See merge request famedly/conduit!188
2021-09-03 09:47:24 +00:00
Timo Kösters
71341ea05a
fix: make sure old events don't sneek into the timeline
2021-09-03 11:26:15 +02:00
Timo Kösters
73b764322f
Merge branch 'adjust-ci-for-next-and-master-development' into 'master'
...
CI: Adjust CI for master and next branch development model (master)
See merge request famedly/conduit!187
2021-09-02 18:25:57 +00:00
Jonas Zohren
a1f51440e2
chore(CI): Adjust CI for master and next branch development model
...
- Build release builds for branches "master" and "next"
- Push docker images under different tags, depending on why the pipeline started
- branch master: push to `latest`
- branch next: push to `next`
- tag: push to `$TAG_NAME`
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de >
2021-09-02 17:17:51 +02:00
Timo Kösters
0d6ae2e1e7
Merge branch 'thanks' into 'master'
...
docs: add thanks to
See merge request famedly/conduit!185
2021-09-02 11:10:23 +00:00
Timo Kösters
d0baca44f8
docs: add thanks to
2021-09-02 13:05:19 +02:00
Timo Kösters
5536bfdca5
Merge branch 'ci-also-run-for-tags' into 'master'
...
Also run CI on git tags, not only new commits.
See merge request famedly/conduit!184
2021-09-02 07:33:25 +00:00
Jonas Zohren
3357bbec1e
chore: Also run CI on git tags, not only new commits.
...
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de >
2021-09-02 09:17:25 +02:00
Timo Kösters
102ff574ea
Merge branch 'readme' into 'master'
...
docs: update readme and version
See merge request famedly/conduit!180
2021-09-01 21:28:28 +00:00
Timo Kösters
2770ce2cf6
fix: avoid panic
2021-09-01 23:00:24 +02:00
Timo Kösters
7cd7f1923f
chore: update dependencies
2021-09-01 22:31:25 +02:00
Timo Kösters
43d693ca19
revert Arc<EventId> commit
2021-09-01 22:30:11 +02:00
Timo Kösters
875b345a5f
docs: update readme and version
2021-09-01 22:18:19 +02:00
Timo Kösters
17adf096e9
Merge branch 'server-server-opt' into 'master'
...
Remove unneeded intermediary container collection
See merge request famedly/conduit!183
2021-09-01 20:02:37 +00:00
Jonas Platte
487601a249
Remove unneeded intermediary container collection
2021-09-01 21:46:05 +02:00
Timo Kösters
27788af022
Merge branch 'batch_keys' into 'master'
...
Get required keys in batch when joining a room
See merge request famedly/conduit!182
2021-09-01 19:12:21 +00:00
Timo Kösters
4b39d7cb64
fix: batch key fetching
2021-09-01 20:02:34 +02:00
Kurt Roeckx
c53d79e287
fixup! Get required keys in batch when joining a room
2021-09-01 19:30:32 +02:00
Kurt Roeckx
984ad5ecd6
fixup! Get required keys in batch when joining a room
2021-09-01 19:30:31 +02:00
Kurt Roeckx
b546a5bf15
Let our server signing be valid for 1 week
...
It was valid for 2 minutes, which can result in the server being
asked too much for something that never changes.
2021-09-01 19:30:31 +02:00
Kurt Roeckx
a87519fb71
Get required keys in batch when joining a room
...
We now ask the trusted server for all keys in 1 request, instead of
asking each server individual for it's own keys.
2021-09-01 19:30:30 +02:00
Timo Kösters
9c3f1a9272
Merge branch 'master' into 'master'
...
Add Traefik setup, incl. step-by-step, to docker README.
See merge request famedly/conduit!158
2021-09-01 16:04:41 +00:00
Timo Kösters
8518d59a0b
Merge branch 'clippy' into 'master'
...
Fix a bunch of clippy lints
See merge request famedly/conduit!178
2021-09-01 10:47:23 +00:00
Timo Kösters
4e68c22457
Merge branch 'docs' into 'master'
...
docs: documentation for every endpoint
See merge request famedly/conduit!177
2021-09-01 10:20:13 +00:00
Timo Kösters
73d876643c
improvement: make pdu cache capacity configurable
2021-09-01 11:03:45 +02:00
Timo Kösters
22779c21d3
Merge branch 'health_script' into 'master'
...
Fix healthcheck.sh permissions and rearange ci dockerfile
See merge request famedly/conduit!179
2021-09-01 08:08:22 +00:00
Daniel Wiesenberg
8c584887c9
Fix healthcheck.sh permissions and rearange ci dockerfile
2021-08-31 23:17:32 +02:00
Timo Kösters
33738dbbc2
improvement: stop prev event fetching if too many events fail
2021-08-31 22:04:47 +02:00
Jonas Platte
a6bb9bbe68
Fix a bunch of clippy lints
2021-08-31 21:20:03 +02:00
Timo Kösters
b9eb39a9c6
docs: documentation for every endpoint
2021-08-31 19:20:34 +02:00
Timo Kösters
364820aae4
Merge branch 'registration-default' into 'master'
...
Default registration true
See merge request famedly/conduit!176
2021-08-31 17:03:05 +00:00
Timo Kösters
ec38411620
Merge branch 'health_script' into 'master'
...
Move docker healthcheck into dedicated script.
See merge request famedly/conduit!173
2021-08-31 16:59:33 +00:00
Jonathan de Jong
9ec8b7f2b3
registration default true
2021-08-31 18:25:35 +02:00
Daniel Wiesenberg
a08ea15695
Use $CI_COMMIT_SHORT_SHA for GIT_REF
...
Using `$CI_COMMIT_REF_NAME` means we get `master` for every image build,
which is not very useful/informative. Using `$CI_COMMIT_SHORT_SHA`,
on the other hand, makes it possible to see exactly from which commit an
image was built.
2021-08-31 18:03:44 +02:00
Timo Kösters
49dd3567c6
Merge branch 'connection-lifetime' into 'master'
...
thread_local connections
See merge request famedly/conduit!175
2021-08-30 19:05:22 +00:00
Jonathan de Jong
69df9a0145
add tls
2021-08-30 20:18:48 +02:00
Timo Kösters
d0d47675d8
Merge branch 'speed' into 'master'
...
improvement: call /state_ids less often by using state res
See merge request famedly/conduit!174
2021-08-30 17:32:41 +00:00
Timo Kösters
bd4ea14a29
improvement: call /state_ids less often by using state res
2021-08-30 16:07:59 +02:00
Timo Kösters
9033cc86aa
Merge branch 'speed' into 'master'
...
fix: make appservices more efficient
See merge request famedly/conduit!172
2021-08-30 09:14:08 +00:00
Timo Kösters
1b25e78e3a
fix: inviting dendrite users
2021-08-30 10:56:41 +02:00
Timo Kösters
d57c19802d
improvement: don't do state updates if the event was soft failed
2021-08-30 10:46:36 +02:00
Daniel Wiesenberg
9ded40e983
Change healthcheck in ci dockerfile
2021-08-30 09:14:08 +02:00
Daniel Wiesenberg
a469ca0461
Move docker healthcheck into dedicated script.
2021-08-29 20:01:38 +02:00
Timo Kösters
632a1343eb
fix: make appservices more efficient
2021-08-29 20:00:43 +02:00
Timo Kösters
00c9ad12bd
Merge branch 'speed' into 'master'
...
Speed
See merge request famedly/conduit!168
2021-08-28 18:28:25 +00:00
Timo Kösters
1601027605
add warning if calculated event id != requested event id
2021-08-28 19:35:42 +02:00
Timo Kösters
afca61fe7c
fix: don't retry soft failed events
2021-08-28 11:39:33 +02:00
Devin Ragotzy
9bff276fa9
Use Arc<EventId> in place of most EventIds
2021-08-27 20:20:14 +02:00
Timo Kösters
19b89ab91f
fix: server resolution
2021-08-27 20:20:13 +02:00
Timo Kösters
0330d3e270
fix: server resolution with well-known files
2021-08-27 20:20:13 +02:00
Timo Kösters
a1e8a99db5
improvement: less IO for auth chains
2021-08-27 20:20:12 +02:00
Timo Kösters
33172a70e6
fix: improve key fetching
2021-08-27 20:20:12 +02:00
Timo Kösters
1b56a7bbfd
Merge branch 'speed' into 'master'
...
fix: e2ee over federation
See merge request famedly/conduit!165
2021-08-26 12:55:47 +00:00
Timo Kösters
d485eb5a24
chore: bump dependencies
2021-08-26 14:38:25 +02:00
Timo Kösters
41d07be97b
improvement: persist cached auth chains in db
2021-08-26 14:19:08 +02:00
Timo Kösters
bef4fe50ce
fix: better migration, force e2ee device key updates
2021-08-26 14:19:08 +02:00
Timo Kösters
9152b877a7
fix: wrong soft fail check, too many events in /sync state response
2021-08-26 14:19:07 +02:00
Timo Kösters
9f8c45c763
fix: e2ee over federation
...
to device events were not being sent
2021-08-26 14:19:07 +02:00
Daniel Wiesenberg
5800e9b797
Add Traefik setup, incl. step-by-step, to docker README.
2021-08-26 12:26:32 +02:00
Timo Kösters
5aa56b92ee
Merge branch 'speed' into 'master'
...
improvement: more efficient auth chain cache
See merge request famedly/conduit!164
2021-08-24 20:12:10 +00:00
Timo Kösters
dd87066546
improvement: more efficient auth chain cache
2021-08-24 21:55:18 +02:00
Timo Kösters
30b309b708
Merge branch 'speed' into 'master'
...
Better E2EE and faster incoming event handling
See merge request famedly/conduit!163
2021-08-24 18:16:56 +00:00
Timo Kösters
d5695fb9fe
Merge branch 'only-set-max-optimzations-in-ci' into 'master'
...
Only apply max. optimizations in CI builds.
See merge request famedly/conduit!162
2021-08-24 17:54:17 +00:00
Timo Kösters
81e056417c
improvement: better e2ee over fed, faster incoming event handling
2021-08-24 19:52:05 +02:00
Timo Kösters
72dd95f500
Merge branch 'createwarnings' into 'master'
...
fix: correct create event warnings
See merge request famedly/conduit!161
2021-08-24 17:51:53 +00:00
Jonas Zohren
b6e755f67e
Only apply max. optimizations in CI builds.
...
The average german man has a life expectancy of 78.7 years, or 689884.2 hours.
Assuming that Timo is 20 years old, he has rougly 514564.2 hours left on planet earth.
Also assuming that cross release builds took him 25 minutes before,
but 2-2.5x of that with the current release compilation config he wasted roughly an hour waiting for it to complete.
If he continued to work on Conduit for 20 more years (or 175320 hours),
and makes a release compilation about once per day, this means 7305 hours or 304 days wasted waiting for the rust compiler.
By cutting that back down to the original settings, he get's 182 days of his life back.
That's about 0.63% of his remaining life.
182 joyful days he can spend with family and loved ones.
2021-08-22 21:05:32 +00:00
Timo Kösters
4f8cf3bed4
Merge branch 'send_join_v1' into 'master'
...
Implement federation/v1/send_join
See merge request famedly/conduit!141
2021-08-22 12:06:26 +00:00
Timo Kösters
b3ea6adc9c
Merge branch 'get-pdu-json' into 'master'
...
Consistent and escaped response in get_pdu
See merge request famedly/conduit!160
2021-08-22 11:08:11 +00:00
Timo Kösters
6d83954c40
fix: room upgrades
2021-08-22 13:06:50 +02:00
Timo Kösters
667ffb4239
fix: correct create event warnings
2021-08-22 13:01:13 +02:00
Kurt Roeckx
48494c9464
Implement federation/v1/send_join
2021-08-22 10:07:38 +02:00
Tom Smeding
2ef23b213a
Consistent and escaped response in get_pdu
...
1. The fallback text of the get_pdu admin room command response message
now contains the same text as the formatted_body content (namely, the
json instead of Debug-formatting of a serde type).
2. The formatted_body content of the get_pdu response is now
html-escaped.
2021-08-21 15:31:26 +02:00
Timo Kösters
33481ec062
Merge branch 'statediffs' into 'master'
...
Statediffs
See merge request famedly/conduit!145
2021-08-21 13:05:38 +00:00
Timo Kösters
3b78e43a18
fmt
2021-08-21 14:24:10 +02:00
Timo Kösters
4956fb9fba
improvement: limit prev event fetching
2021-08-21 14:22:21 +02:00
Timo Kösters
b09499c2df
fix: don't save empty tokens
2021-08-19 14:05:23 +02:00
Timo Kösters
46d8a46e1f
improvement: faster incoming transaction handling
2021-08-19 11:01:43 +02:00
Timo Kösters
cefca2d0d1
Merge branch 'different-optimizations-for-master-and-branches' into 'master'
...
CI: Use full optimizations for master and faster config else
See merge request famedly/conduit!155
2021-08-18 08:58:45 +00:00
Timo Kösters
bf7e019a68
improvement: better prev event fetching, perf improvements
2021-08-17 16:06:09 +02:00
Timo Kösters
75ba8bb565
fix: faster room joins
2021-08-17 00:22:52 +02:00
Timo Kösters
0823506d05
fix: don't load endless prev events and fix room join bug
2021-08-16 23:24:52 +02:00
Timo Kösters
2c3bee34a0
improvement: better sqlite
2021-08-15 13:27:03 +02:00
Timo Kösters
a4310f840e
improvement: state info cache
2021-08-15 06:48:25 +02:00
Timo Kösters
5bd5b41c70
fix: fetch event multiple times
2021-08-15 06:48:25 +02:00
Timo Kösters
f9a2edc0dd
fix: also fetch prev events that are outliers already
2021-08-15 06:48:25 +02:00
Timo Kösters
ecd1e45a44
fix: fetch more than one prev event
2021-08-15 06:48:24 +02:00
Timo Kösters
1d46569929
fix: don't use recursion for prev events
2021-08-15 06:48:24 +02:00
Timo Kösters
1e3a8ca35d
fmt
2021-08-15 06:48:24 +02:00
Timo Kösters
0cb22996be
remove prev event fetch limit
2021-08-15 06:48:14 +02:00
Jonas Zohren
9c3a8edcae
Use full optimizations for master and faster config else
...
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de >
2021-08-14 21:41:27 +02:00
Timo Kösters
38effda799
fix: delta calculation
2021-08-14 19:11:10 +02:00
Timo Kösters
3cf0145bc5
fix: room exists panic
2021-08-14 08:26:45 +02:00
Timo Kösters
3eabaa2a95
finish implementing better state store
2021-08-13 19:49:16 +02:00
Timo Kösters
31f60ad6fd
improvement: migrations, batch inserts
2021-08-12 17:56:35 +02:00
Timo Kösters
41dd620d74
WIP improvement: much better state storage
2021-08-12 17:56:35 +02:00
Timo Kösters
9410d3ef9c
fix: long prev event fetch times for huge rooms
2021-08-12 17:56:14 +02:00
Timo Kösters
665aee11c0
less warnings
2021-08-12 17:56:14 +02:00
Timo Kösters
5173d0deb5
improvement: cache for short event ids
2021-08-12 17:56:14 +02:00
Timo Kösters
c2c6a8673e
improvement: use u64s in auth chain cache
2021-08-12 17:56:14 +02:00
Timo Kösters
096e0971f1
improvement: smaller cache, better prev event fetching
2021-08-12 17:56:13 +02:00
Timo Kösters
8a5dbef474
Merge branch 'set-canonical-room-alias-on-room-creation' into 'master'
...
Try to set canonical room alias on room creation.
Closes #123
See merge request famedly/conduit!154
2021-08-12 12:24:33 +00:00
Jonas Zohren
4cf3c432af
Try to set canonical room alias on room creation.
...
The spec does not require servers to apply a room canonical alias event upon room creation (yet).
Still, synapse does that, since users can set their desired alias in Elements room creation dialog.
With this commit, conduit also sets that alias if it is a valid one.
This closes https://gitlab.com/famedly/conduit/-/issues/123
2021-08-12 14:02:46 +02:00
Timo Kösters
dd3c60fb5a
Merge branch 'master' into 'master'
...
Bump version of alpine docker image to 3.14
See merge request famedly/conduit!150
2021-08-10 05:44:16 +00:00
Timo Kösters
e83c226b1b
Merge branch 'zap-displayname' into 'master'
...
Set nicer displayname
See merge request famedly/conduit!149
2021-08-10 05:43:44 +00:00
Jonathan de Jong
8335f44bfe
Set nicer displayname
2021-08-10 05:43:44 +00:00
Timo Kösters
3745a7cbe6
Merge branch '3pid' into 'master'
...
Add support for a minimal `r0/account/3pid`.
See merge request famedly/conduit!151
2021-08-10 05:42:50 +00:00
Timo Kösters
610b4f9ad1
Merge branch 'fetchprev' into 'master'
...
improvement: try to load missing prev events
See merge request famedly/conduit!152
2021-08-10 05:30:12 +00:00
Ahmed Charles
879aeafa9e
Add support for a minimal r0/account/3pid.
2021-08-09 12:34:25 -07:00
Daniel Wiesenberg
a7b6af7caf
Bump version of alpine docker image to 3.14
2021-08-09 21:21:18 +02:00
Timo Kösters
260db9fcc7
improvement: try to load missing prev events
2021-08-09 21:05:41 +02:00
Timo Kösters
1cbc61c558
Merge branch 'badeventfix' into 'master'
...
fix: handle bad events in db better
See merge request famedly/conduit!148
2021-08-08 19:48:08 +00:00
Timo Kösters
d2f406e0e8
fix: handle bad events in db better
2021-08-08 21:33:28 +02:00
Timo Kösters
a816e3decd
Merge branch 'room_create_version' into 'master'
...
Support creating rooms with a version
See merge request famedly/conduit!147
2021-08-07 15:36:45 +00:00
Kurt Roeckx
989a20e99c
Support creating rooms with a version
2021-08-07 16:25:21 +02:00
Timo Kösters
1cf9da26bf
Merge branch 'timeout' into 'master'
...
improvement: longer timeout, more descriptive errors
See merge request famedly/conduit!146
2021-08-04 21:09:48 +00:00
Timo Kösters
55a2ff025f
improvement: longer timeout, more descriptive errors
2021-08-04 22:55:03 +02:00
Timo Kösters
76660bf189
Merge branch 'sqlitefixes' into 'master'
...
Sqlitefixes
See merge request famedly/conduit!144
2021-08-04 19:52:30 +00:00
Timo Kösters
df727688ef
remove rocksdb
2021-08-04 21:17:40 +02:00
Timo Kösters
902404d48d
improvement: save member count + sled fixes
2021-08-04 21:15:01 +02:00
Timo Kösters
b813c34642
improvement: more auth chain caching
2021-08-04 18:30:56 +02:00
Timo Kösters
ab7835dedb
fix: early return from state res
2021-08-04 15:19:50 +02:00
Timo Kösters
9bb4c3cd01
improvement: batched inserts for tokenids
2021-08-04 12:54:26 +02:00
Timo Kösters
fce22362d4
improvement: better auth chain calculation
2021-08-03 19:18:41 +02:00
Timo Kösters
41ec7cf5d0
improvement: batch inserts for stateids
2021-08-03 16:14:07 +02:00
Timo Kösters
49ade0cfbd
improvement: allow batch inserts
2021-08-03 11:24:21 +02:00
Timo Kösters
0eeba86b32
fix: improve locks
2021-08-03 11:17:39 +02:00
Timo Kösters
6b06fc9707
fix: don't run push rules for users that don't exist
2021-08-03 10:24:20 +02:00
Timo Kösters
bd63797213
improvement: make better use of sqlite connections
2021-08-03 10:24:14 +02:00
Timo Kösters
2c4f966d60
improvement: use sqlite properly
2021-08-01 16:59:52 +02:00
Timo Kösters
8174b16c38
Merge branch 'master' into 'master'
...
Also push docker image to docker hub
See merge request famedly/conduit!142
2021-08-01 10:10:51 +00:00
Timo Kösters
6666aae5a5
Merge branch 'docs' into 'master'
...
docs: make it clear that database_path is a folder
See merge request famedly/conduit!143
2021-07-30 17:44:33 +00:00
Timo Kösters
0f045890eb
docs: make it clear that database_path is a folder
2021-07-30 19:27:37 +02:00
Timo Kösters
9cb99a05e0
Merge branch 'tracing_flame' into 'master'
...
feat: tracing flame graph
See merge request famedly/conduit!140
2021-07-30 16:42:25 +00:00
Timo Kösters
dc85a8fafd
fix: migration and push edu bugs
2021-07-30 18:05:26 +02:00
Daniel Wiesenberg
fcd127aadc
Also push docker image to docker hub
2021-07-30 17:15:44 +02:00
Timo Kösters
5df6b8cd5f
improvement: better account data implementation
2021-07-30 16:08:24 +02:00
Timo Kösters
5c776e9ba7
feat: heed db backend (LMDB)
2021-07-29 23:11:53 +02:00
Timo Kösters
c209775abd
fix: pdu without state bug
2021-07-29 12:33:44 +02:00
Timo Kösters
5e924227b6
feat: add threadpool for iterator threads, bug fixes, tracing_flame support
2021-07-29 08:49:28 +02:00
Timo Kösters
734c4637f0
Merge branch 'ci-build-docker-image' into 'master'
...
CI: Build docker image
See merge request famedly/conduit!134
2021-07-21 15:05:20 +00:00
Timo Kösters
e0072eff63
Merge branch 'v5' into 'master'
...
feat: support room version 5
See merge request famedly/conduit!138
2021-07-21 11:05:59 +00:00
Timo Kösters
cae2b200cc
Merge branch 'initial_state_keys' into 'master'
...
Implement From<AnyInitialStateEvent> on PduBuilder
Closes #116
See merge request famedly/conduit!136
2021-07-21 10:03:08 +00:00
Timo Kösters
918df9ca6d
feat: support room version 5
2021-07-21 11:59:56 +02:00
Timo Kösters
387e864659
Merge branch 'aliases' into 'master'
...
Implement getting room aliases
See merge request famedly/conduit!116
2021-07-21 09:48:17 +00:00
Timo Kösters
c84960df91
Merge branch 'deploy-guide-remove-arm-add-x86_64-musl' into 'master'
...
Docs: Remove arm download, but add x86_64 musl one
See merge request famedly/conduit!137
2021-07-21 09:34:14 +00:00
Jonas Zohren
32db4c09a0
Docs: Remove arm download, but add x86_64 musl one
2021-07-21 09:21:49 +00:00
Kurt Roeckx
0d33cc4acd
Implement getting room aliases
...
Signed-off-by: Kurt Roeckx <kurt@roeckx.be >
2021-07-21 10:56:22 +02:00
phesch
666e1d30a3
Implement From<AnyInitialStateEvent> on PduBuilder
...
The conversion between the two is now direct and thus shouldn't lose the state_keys.
2021-07-21 10:55:23 +02:00
Timo Kösters
f43fd6a475
Merge branch 'e2ee-fed' into 'master'
...
Initial E2EE over federation support
See merge request famedly/conduit!135
2021-07-21 08:41:00 +00:00
Timo Kösters
1587f2cd52
fix: check events in timeline (not only state) for member changes
2021-07-21 09:39:54 +02:00
Timo Kösters
f121978897
fix: state bug
2021-07-20 23:36:03 +02:00
Timo Kösters
80533bfab2
fix: improve code when skipping /state_ids
2021-07-20 22:06:42 +02:00
Timo Kösters
08a3326431
docs: Initial end-to-end encryption over federation support
2021-07-20 21:37:08 +02:00
Timo Kösters
fe3b5d32a7
feat: send to-device events over federation
2021-07-20 21:17:15 +02:00
Timo Kösters
e20f55970e
feat: call /query/profile over federation when local user asks
2021-07-20 19:49:47 +02:00
Timo Kösters
728e176a06
feat: /keys/query and /keys/claim over federation
2021-07-20 19:40:25 +02:00
Timo Kösters
7d14a46607
Merge branch 'improvements' into 'master'
...
Update ruma
See merge request famedly/conduit!127
2021-07-20 16:59:49 +00:00
Timo Kösters
68cc743f2a
fix: use get_auth_chain method more often
2021-07-20 18:45:21 +02:00
Timo Kösters
56e5d5e3d2
fix: add warning for strange bug
2021-07-20 18:38:17 +02:00
Timo Kösters
f0ac7ed933
chore: update ruma again
2021-07-20 15:25:17 +02:00
Timo Kösters
0f8ecdc625
fix: state res fixes
2021-07-20 15:25:17 +02:00
Timo Kösters
cfaa900e83
improvement: auth chain cache
2021-07-20 15:25:16 +02:00
Timo Kösters
f5273f7eb1
improvement: upgrade ruma and implement blurhashes
2021-07-20 15:25:16 +02:00
Timo Kösters
0fcefa4125
fix: ruma
2021-07-20 15:25:16 +02:00
Timo Kösters
d07762f596
Merge branch 'connection-cushion' into 'master'
...
Spillover connection cushion
See merge request famedly/conduit!133
2021-07-20 10:39:04 +00:00
Jonathan de Jong
d253f9236a
change fraction type
2021-07-20 11:01:35 +02:00
Jonathan de Jong
ec44f3d568
change to f64
2021-07-20 10:47:36 +02:00
Jonas Zohren
167e903a56
Fix typo
2021-07-19 22:02:10 +02:00
Jonas Zohren
0a8dadb797
Add hardcoded artifacts.expose_as to show them in MRs
2021-07-19 20:39:58 +02:00
Jonas Zohren
678ce0abc6
CI: Create docker image with musl binary
2021-07-19 20:39:58 +02:00
Jonathan de Jong
e7a51c07d0
log change feedback
2021-07-19 17:17:10 +02:00
Jonathan de Jong
79bf7fc597
some logging shuffling
2021-07-19 16:46:59 +02:00
Jonathan de Jong
7e579f8d34
change to fraction-based approach
2021-07-19 16:25:41 +02:00
Jonathan de Jong
0f2dc9a239
add stuff and bits
2021-07-19 15:56:20 +02:00
Timo Kösters
59d538206f
Merge branch 'fix-shutdown-period' into 'master'
...
Fix shutdown period
See merge request famedly/conduit!131
2021-07-19 13:11:25 +00:00
Jonathan de Jong
faa283d35b
review feedback
2021-07-19 13:44:53 +02:00
Timo Kösters
86160597ea
Merge branch 'ci-package-upload-hotfix' into 'master'
...
CI: Fix package upload
See merge request famedly/conduit!132
2021-07-19 11:20:00 +00:00
Jonas Zohren
d6b37480e7
CI: Fix package upload
2021-07-19 10:00:44 +00:00
Jonathan de Jong
3ce75d1f02
apply fix
2021-07-19 11:55:39 +02:00
Timo Kösters
a50abeedad
Merge branch 'ci-rough-sytest-integration' into 'master'
...
CI: Add sytest
See merge request famedly/conduit!130
2021-07-19 08:47:32 +00:00
Jonas Zohren
130b9841da
CI: Add sytest
2021-07-19 08:47:31 +00:00
Timo Kösters
ffa10a68b9
Merge branch 'more-detailed-issue-templates' into 'master'
...
Docs: More (detailed) templates for Issues and MRs
See merge request famedly/conduit!129
2021-07-19 08:28:10 +00:00
Timo Kösters
124b5484b5
Merge branch 'test-registering-with-element-web' into 'master'
...
CI: Test registration with element web
See merge request famedly/conduit!128
2021-07-19 08:23:05 +00:00
Jonas Zohren
2babff1e41
CI: Test registration with element web
2021-07-19 08:23:04 +00:00
Jonas Zohren
cdd01262d2
Shorten more templates
2021-07-18 20:43:21 +00:00
Jonas Zohren
092221ca3f
Reduce amount of text in Bug Report template
2021-07-18 20:30:57 +00:00
Jonas Zohren
5d8ad4fd72
Add some more details to the MR template
2021-07-17 12:22:11 +02:00
Jonas Zohren
7054f74783
Add issue template for GitHub which redirects to Gitlab
2021-07-17 12:21:41 +02:00
Jonas Zohren
82a4ec9cbd
Add more detailed issue templates
...
Shamelessly stolen from
https://github.com/HedgeDoc/client
Originally written by
https://github.com/ErikMichelson and
https://github.com/DerMolly
2021-07-17 12:00:38 +02:00
Timo Kösters
f924ebf8a6
Merge branch 'fix-windows-signal' into 'master'
...
fix signal compiling on windows
See merge request famedly/conduit!126
2021-07-15 16:29:47 +00:00
Jonathan de Jong
b1993421c2
fix signal compiling on windows
2021-07-15 18:09:10 +02:00
Timo Kösters
8e2d6f7e43
Merge branch 'sled-fix' into 'master'
...
Sled fixes
See merge request famedly/conduit!125
2021-07-15 15:38:40 +00:00
Jonathan de Jong
d76e95e8fc
use existing db cache size
2021-07-15 13:47:21 +02:00
Jonathan de Jong
661101c9ae
add sled cache_capacity back
2021-07-15 13:29:08 +02:00
Timo Kösters
f7ecf83ac3
Merge branch 'stuff' into 'master'
...
fix: stuck/duplicate messages, e2ee and sync timeouts
See merge request famedly/conduit!123
2021-07-15 08:18:56 +00:00
Timo Kösters
9a4789efdc
Merge branch 'ci-format-check-before-cargo-test' into 'master'
...
CI: Check format before running test
See merge request famedly/conduit!124
2021-07-14 20:53:10 +00:00
Jonas Zohren
eaa4c77641
CI: Check format before running test
...
Testing needs compilation and is slow. Format checking is quick.
As format checking fails more often than tests,
switching them should result in faster failure and feedback
2021-07-14 20:33:19 +00:00
Timo Kösters
9268b33c3f
Merge branch 'shutdown-sync' into 'master'
...
Make shutdown short-circuit sync helpers
See merge request famedly/conduit!122
2021-07-14 13:49:00 +00:00
Timo Kösters
9de32ae12f
fix toolchain
2021-07-14 15:46:30 +02:00
Jonathan de Jong
952fb75795
add shutdown handler to kick sync
2021-07-14 14:50:07 +02:00
Timo Kösters
e12b1ff863
improvement: locks
2021-07-14 13:21:25 +02:00
Timo Kösters
e15e6d4405
improvement: efficient /sync, mutex for federation transactions
2021-07-14 13:20:39 +02:00
Timo Kösters
1c25492a7e
fix: stuck messages
...
Conduit did not send the event in /sync because of a race condition.
There is a brief moment in time where Conduit accepted the event, but
did not store it yet. So when the client /syncs it updates the since
token without sending the event. I hope I fixed it by significantly
shortening the race-condition period.
2021-07-14 13:19:24 +02:00
Timo Kösters
8c44312485
fix: e2ee verification
2021-07-14 13:10:56 +02:00
Timo Kösters
ac0027756e
improvement: more efficient state res
2021-07-14 13:10:49 +02:00
Timo Kösters
f3e806096b
Merge branch 'clippy-fix' into 'master'
...
Fix clippy lint
See merge request famedly/conduit!121
2021-07-14 10:57:44 +00:00
Jonathan de Jong
e1b89c1248
apply lint suggestions and version bump
2021-07-14 12:31:38 +02:00
Timo Kösters
be6b6c3cf0
Merge branch 'rocket-update' into 'master'
...
Update rocket to rc1 and lock file
See merge request famedly/conduit!120
2021-07-14 09:48:17 +00:00
Jonathan de Jong
15471d9ac4
update rocket and lock
2021-07-14 11:28:24 +02:00
Timo Kösters
3c236fb671
Merge branch 'sqlite' into 'master'
...
Sqlite
See merge request famedly/conduit!114
2021-07-14 07:07:09 +00:00
Jonathan de Jong
9d4fa9a220
Sqlite
2021-07-14 07:07:08 +00:00
Timo Kösters
bd4bd58612
Merge branch 'capabilities_auth' into 'master'
...
Getting capabilities requires authentication
See merge request famedly/conduit!117
2021-07-13 07:55:19 +00:00
Timo Kösters
0eec1cc696
Merge branch 'ci-tag-jobs-with-docker' into 'master'
...
Better CI (run on faster CI hosts, incremental release builds, thin-lto)
See merge request famedly/conduit!118
2021-07-12 20:35:00 +00:00
Jonas Zohren
3fa09ff57d
Use thin-lto [1] for "better" release builds.
...
This performs a rather quick variant of Link Time Optimization [2].
It should add negligible build time but also more optimized binaries.
[1]: https://doc.rust-lang.org/cargo/reference/profiles.html#lto
[2]: https://llvm.org/docs/LinkTimeOptimization.html
2021-07-12 20:21:13 +00:00
Jonas Zohren
0080932aef
Speed up release builds
...
Setting cargo to run incremental builds means partial build results should be cached. This is not enabled by default in release mode.
Incremental builds use 256 codegen units by default [1].
We set them to 16 (release default) again for somewhat faster code but slightly slower builds.
[1]: https://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units
2021-07-12 20:18:14 +00:00
Jonas Zohren
888a2f7fa1
Make CI run on famedly runners
...
By default, jobs without tags only run on CI runners configured to do so [1].
Conduit can use famedly runners, which are more powerfull than gitlab's runners, but require a tag on the job to run it there.
This commit tags each job with the "docker" tag.
On the famedly/conduit repo this means faster CI.
On other gitlab.com forks the normal ci.
Selfhosted gitlab's might need to add a "docker" tag to their runner.
[1]: https://docs.gitlab.com/ee/ci/runners/configure_runners.html#use-tags-to-limit-the-number-of-jobs-using-the-runner
2021-07-12 19:58:35 +00:00
Kurt Roeckx
dcb5e5900f
Getting capabilities requires authentication
2021-07-11 22:07:10 +02:00
Timo Kösters
4732aa6782
Merge branch 'invalid_utf8' into 'master'
...
Return proper error in case of invalid UTF-8
See merge request famedly/conduit!110
2021-07-11 13:44:27 +00:00
Kurt Roeckx
699f77671f
Return proper error in case of invalid UTF-8 in json_body
...
json_body is used in places that need authentication. In
case an unknown field is set, Ruma doesn't parse the field
and so doesn't give an error on invalid UTF-8. But Conduit
has parsed and on error makes json_body None. Return an
error to the client instead of generating an internal error.
2021-07-11 14:47:13 +02:00
Timo Kösters
fcfb9b51de
Merge branch 'fix-ci-failing-duplicate-nightly-release' into 'master'
...
Fix: Duplicate releases don't work, remove nightly
Closes #100
See merge request famedly/conduit!113
2021-07-11 11:43:48 +00:00
Jonas Zohren
36681dd3ac
Fix: Duplicate releases don't work, remove nightly
2021-07-11 11:43:48 +00:00
Timo Kösters
13c0beafa6
Merge branch 'lib-fix' into 'master'
...
Export conduits Config struct and fix clippy warnings
See merge request famedly/conduit!99
2021-07-11 11:42:07 +00:00
Timo Kösters
a313a93ff5
Merge branch 'master' into 'master'
...
Change default port in docker to the new
See merge request famedly/conduit!115
2021-07-11 11:41:12 +00:00
Daniel Wiesenberg
6a96cfaac1
Change default port in docker to the new
...
conduit default port 6167 and fix the docker healthcheck
2021-07-06 10:43:33 +02:00
Timo Kösters
787e18b2a4
Merge branch 'jfowl-master-patch-57056' into 'master'
...
Fix: Nightly release tag name should not be a branch name
See merge request famedly/conduit!112
2021-07-02 15:18:26 +00:00
Jonas Zohren
fcc30f059e
Fix: Nightly release tag name should not be a branch name
...
According to tulir this breaks the GitLab Matrix bot, and nightly is a better match anyway
2021-07-02 14:58:00 +00:00
Timo Kösters
f1a2aa3a94
Merge branch 'jfowl-master-patch-97252' into 'master'
...
Publish master builds as nightly releases & also build debs
See merge request famedly/conduit!111
2021-07-02 12:26:27 +00:00
Jonas Zohren
a7cb1c999a
Publish master builds as nightly releases & also build debs
2021-07-02 12:26:26 +00:00
Timo Kösters
5711467ad9
Merge branch 'state-res-closure' into 'master'
...
Remove auth_cache using a closure to fetch events in state-res
See merge request famedly/conduit!108
2021-07-02 10:56:21 +00:00
Devin Ragotzy
c30cc50a0b
Switch ruma to a commit from next
2021-07-02 06:40:40 -04:00
Timo Kösters
5f6b0c673c
Merge branch 'feature/proxy' into 'master'
...
add support for arbitrary proxies
See merge request famedly/conduit!54
2021-07-01 19:46:18 +00:00
Aiden McClelland
c53cc03ff8
address pr comments
2021-07-01 13:38:25 -06:00
Timo Kösters
af903ceac3
Merge branch 'ci-build-artifacts-1' into 'master'
...
Generate binaries for 3 architectures in the CI
See merge request famedly/conduit!94
2021-07-01 19:06:40 +00:00
Aiden McClelland
f25f61d4a9
fix errors introduced by rebase
2021-07-01 12:48:12 -06:00
Aiden McClelland
b2d5516058
add support for arbitrary proxies
2021-07-01 12:41:12 -06:00
Devin Ragotzy
1bb84a8e2d
Fix docs for fetch_and_handle_events
2021-06-30 07:48:16 -04:00
Devin Ragotzy
98f1480e2b
Remove auth_cache using a closure to fetch events in state-res
2021-06-30 12:54:19 +02:00
Timo Kösters
cc9111059d
Merge branch 'search-impovements' into 'master'
...
improvement: /search works for multiple rooms
See merge request famedly/conduit!106
2021-06-30 08:32:55 +00:00
Timo Kösters
05821d6fd5
improvement: pdu cache, /sync cache
2021-06-30 10:31:34 +02:00
Devin Ragotzy
09a8737f24
Export conduits Config struct and fix clipp warningsy
2021-06-29 16:02:12 -04:00
Timo Kösters
dcac1361ec
improvement: /search works for multiple rooms
2021-06-21 15:21:00 +02:00
Timo Kösters
fee7d3d2e3
Merge branch 'allow_appservice_registration' into 'master'
...
Always allow appservices to register new users
See merge request famedly/conduit!105
2021-06-21 10:15:48 +00:00
Timo Kösters
1a70ea5702
Merge branch 'upgrade-deps' into 'master'
...
Upgrade Ruma
See merge request famedly/conduit!104
2021-06-21 10:14:12 +00:00
phesch
637d9d3b6f
Always allow appservices to register new users
2021-06-19 16:12:05 +02:00
Jonas Platte
808741bcb6
Remove unnecessary Option-wrapping and successive unwrapping
2021-06-17 20:44:29 +02:00
Jonas Platte
b291e76572
Use try operator for Option more
2021-06-17 20:37:07 +02:00
Jonas Platte
f3e630c064
Fix lots of clippy lints
2021-06-17 20:34:14 +02:00
Jonas Platte
af2ce5803e
Remove pointless double deserialization
2021-06-17 20:29:02 +02:00
Jonas Platte
7fa54e4411
Use Ruma-provided default power levels for shorter code
2021-06-17 20:14:37 +02:00
Jonas Platte
f6046871f4
Upgrade Ruma
2021-06-17 20:12:36 +02:00
Timo Kösters
2ac7b6d411
Merge branch 'event_auth' into 'master'
...
feat: /event_auth
Closes #43
See merge request famedly/conduit!103
2021-06-14 09:44:07 +00:00
Timo Kösters
67f9592b17
feat: /event_auth
2021-06-14 11:36:40 +02:00
Timo Kösters
07271b7725
Merge branch 'roomdirfilter' into 'master'
...
improvement: filter our room directory
Closes #35
See merge request famedly/conduit!102
2021-06-14 09:33:20 +00:00
Timo Kösters
77a23f8969
improvement: filter our room directory
...
Fixes #35
2021-06-14 11:26:41 +02:00
Timo Kösters
01e01bf25e
Merge branch 'state' into 'master'
...
feat: /state
Closes #47
See merge request famedly/conduit!101
2021-06-14 09:23:22 +00:00
Timo Kösters
3c9ea55938
feat: /state
2021-06-14 11:01:12 +02:00
Timo Kösters
cf493f2b5b
Merge branch 'userdir' into 'master'
...
User directory improvements
See merge request famedly/conduit!100
2021-06-12 16:52:49 +00:00
Timo Kösters
e8f6708927
improvement: show more users in our user directory
2021-06-12 18:40:33 +02:00
Timo Kösters
8c6bcc47bf
Merge branch 'rocksdb' into 'master'
...
Swappable database backend
See merge request famedly/conduit!98
2021-06-12 14:25:03 +00:00
Timo Kösters
cd4bc520d8
improvement: feature flags for sled, rocksdb
2021-06-12 15:13:04 +02:00
hamidreza kalbasi
2078af59d8
fix fmt problems
2021-06-09 22:22:05 +02:00
hamidreza kalbasi
2385bd1cfd
add migrations
2021-06-09 22:22:05 +02:00
hamidreza kalbasi
affa124864
create media folder in init
2021-06-09 22:22:05 +02:00
hamidreza kalbasi
ff841b73c5
use .keys() and remove unneccery .to_vec()
2021-06-09 22:22:04 +02:00
hamidreza kalbasi
804105479c
fix fmt and clippy warnings
2021-06-09 22:22:04 +02:00
hamidreza kalbasi
972caacdc2
put media in filesystem
2021-06-09 22:22:04 +02:00
Timo Kösters
d0ee823254
feat: swappable database backend
2021-06-09 22:21:52 +02:00
Timo Kösters
81715bd84d
Merge branch 'account' into 'master'
...
Fix account and media bugs
See merge request famedly/conduit!97
2021-06-08 07:22:32 +00:00
Timo Kösters
b3cec1d20d
Merge branch 'master' into 'master'
...
Fix ruma dependency
Closes #95
See merge request famedly/conduit!96
2021-06-05 06:14:55 +00:00
Damian Poddebniak
bb7a4220d3
Fix ruma dependency
2021-06-04 20:18:03 +02:00
Jonas Fowl
b84c66daba
Generate binaries for 3 architectures in the CI
...
The result is stored in the gitlab package registry
2021-06-01 00:58:50 +00:00
Timo Kösters
e1e529d818
fix: don't apply push rules for users of other homeservers
2021-05-30 22:01:12 +02:00
Timo Kösters
88cf043f94
fix: deactivate accounts that should be deactivated
2021-05-30 21:56:36 +02:00
Timo Kösters
bff68e595b
Merge branch 'account' into 'master'
...
fix: putting global account data works now
Closes #92
See merge request famedly/conduit!93
2021-05-29 09:14:47 +00:00
Timo Kösters
59dd3676d5
fix: putting global account data works now
2021-05-29 10:53:03 +02:00
Timo Kösters
1fa7ff2eb1
Merge branch 'claim' into 'master'
...
feat: implement /claim, handle to-device events
See merge request famedly/conduit!92
2021-05-28 21:36:46 +00:00
Timo Kösters
deacdf6f58
fix: is_direct for locally invited users
2021-05-28 22:53:00 +02:00
Timo Kösters
5b5cc0574e
feat: implement /claim, handle to-device events
2021-05-28 13:46:15 +02:00
Timo Kösters
953f2b005f
Merge branch 'specify-and-document-msrv' into 'master'
...
Specify the minimum required Rust version in the manifest
See merge request famedly/conduit!91
2021-05-28 07:49:06 +00:00
Vadim Zeitlin
f199b51f97
Move the link to cross-compiling guide to DEPLOY.md
2021-05-28 09:42:59 +02:00
Vadim Zeitlin
0f16a79888
Specify the minimum required Rust version in the manifest
...
Also mention it in the deployment guide.
2021-05-27 23:32:33 +02:00
Vadim Zeitlin
6af942814f
Fix some typos in the README
2021-05-27 23:32:33 +02:00
Timo Kösters
0805f4ac2a
Merge branch 'pdu-success' into 'master'
...
fix: also return successful PDUs in /send/:txnId
See merge request famedly/conduit!90
2021-05-27 21:24:43 +00:00
Gabriel Souza Franco
7db59c550f
fix: also return successful PDUs in /send/:txnId
2021-05-27 18:10:48 -03:00
Timo Kösters
25b1cd2683
Merge branch 'stateres' into 'master'
...
fix: state resolution bugs
See merge request famedly/conduit!89
2021-05-27 09:10:53 +00:00
Timo Kösters
daa1fc90a7
fix: state resolution bugs
2021-05-27 10:48:17 +02:00
Timo Kösters
eeb0b59b76
Merge branch 'redaction_quotes' into 'master'
...
Fix redacted_because field being sent as a string
Closes #87
See merge request famedly/conduit!88
2021-05-26 15:58:00 +00:00
phesch
ddcf1a715b
Fix redacted_because field being sent as a string
2021-05-26 17:38:30 +02:00
Timo Kösters
d1c0eaf628
Merge branch 'master' into 'master'
...
Fix docker-compose trusted_servers env var
See merge request famedly/conduit!87
2021-05-26 07:03:51 +00:00
Daniel Wiesenberg
8387ceacab
Fix docker-compose trusted_servers env var
2021-05-25 21:34:31 +02:00
Timo Kösters
1aec80c57c
Merge branch 'logs' into 'master'
...
fix: logs for ruma crate
See merge request famedly/conduit!86
2021-05-24 16:08:56 +00:00
Timo Kösters
aacf6289db
improvement: increase default max concurrent requests
2021-05-24 18:00:39 +02:00
Timo Kösters
57ecd81534
fix: logs for ruma crate
2021-05-24 13:22:30 +02:00
Timo Kösters
ceaeab6816
Merge branch 'federation-errors' into 'master'
...
feat: forward federation errors to the client
See merge request famedly/conduit!85
2021-05-23 18:27:05 +00:00
Timo Kösters
e5c7119516
feat: forward federation errors to the client
2021-05-23 16:46:46 +02:00
Timo Kösters
1939e62814
fmt
2021-05-23 11:11:20 +02:00
Timo Kösters
1ab209736a
Merge branch 'forbidden' into 'master'
...
fix: Forbidden instead of InvalidParam when joining
See merge request famedly/conduit!84
2021-05-22 19:56:46 +00:00
Timo Kösters
fd69ac621c
fix: run ci with docker
2021-05-22 21:41:08 +02:00
Timo Kösters
c1b2b468b8
fix: bad except in ruma wrapper
2021-05-22 21:33:31 +02:00
Timo Kösters
7e4dc65747
Merge branch 'master' into 'master'
...
Update Dockerfile and docker-compose
See merge request famedly/conduit!39
2021-05-22 19:26:03 +00:00
Daniel Wiesenberg
634fe04c33
Fix wrong env var name in traefik compose
2021-05-22 20:49:07 +02:00
Timo Kösters
90cd11d850
fix: Forbidden instead of InvalidParam when joining
2021-05-22 18:50:40 +02:00
Daniel Wiesenberg
c6625d83e6
Add CONDUIT_TRUSTED_SERVERS config param
2021-05-22 16:53:48 +02:00
Daniel Wiesenberg
5a7ccbdfab
Add CONDUIT_CONFIG to all relevant docker files
...
And mention that an empty string can be used to configure
Conduit purely with env vars.
2021-05-22 16:53:48 +02:00
Daniel Wiesenberg
beb428d866
Update docker command in README
...
Mention the need for a config.
2021-05-22 16:53:48 +02:00
Daniel Wiesenberg
52a96b3d84
Update Dockerfile and docker-compose
...
- Dockerfile now tracks the gitlab repository and the master branch.
- docker-compose now points to conduit.toml instead of Rocket.toml and
its env vars were also renamed from ROCKET_ to CONDUIT_.
Furthermore vectorim/riot-web was changed to vectorim/element-web
2021-05-22 16:53:48 +02:00
Timo Kösters
42c9ba2e5c
Merge branch 'appservice-docs' into 'master'
...
docs: APPSERVICES setup guide
See merge request famedly/conduit!83
2021-05-22 13:13:54 +00:00
Timo Kösters
47160e9e06
docs: APPSERVICES setup guide
2021-05-22 13:55:28 +02:00
Timo Kösters
488581cc51
Merge branch 'fix-sync' into 'master'
...
fix: too many syncs
See merge request famedly/conduit!82
2021-05-22 09:39:14 +00:00
Timo Kösters
9b77eb7bb7
fix: too many syncs
2021-05-22 11:31:15 +02:00
Timo Kösters
acfd0aef27
Merge branch 'cargo-deb-packaging-update' into 'master'
...
Update cargo-deb packaging for recent changes
See merge request famedly/conduit!61
2021-05-22 09:03:43 +00:00
Timo Kösters
50348de1dd
Merge branch 'improvements' into 'master'
...
improvement: federation get_keys and optimize signingkey storage
See merge request famedly/conduit!81
2021-05-22 08:49:18 +00:00
Timo Kösters
1b42770ab5
improvement: warning for small max_request_size values
2021-05-22 10:34:19 +02:00
Timo Kösters
3e2f742f30
fix: room version warnings and other bugs when joining rooms
2021-05-21 22:22:05 +02:00
Timo Kösters
989d843c40
fix: unauthorized pdus will be responded to with FORBIDDEN
2021-05-21 18:12:02 +02:00
Timo Kösters
09157b2096
improvement: federation get_keys and optimize signingkey storage
...
- get encryption keys over federation
- optimize signing key storage
- rate limit parsing of bad events
- rate limit signature fetching
- dependency bumps
2021-05-21 13:25:24 +02:00
Timo Kösters
ae41bc5067
fix: run state res with old current state again
...
I'm a bit torn on the "auth check based on the current state of the
room". It can mean multiple things:
1. The state of the room before the homeserver looked at the event at
all. But that means if a message event from a user arrives, but we
didn't see their join event before, we soft fail the message (even
though we would find the join event when going through the auth events
of the event and doing state res)
2. The state of the room after doing state-res with the event and our
previous room state. We need to do this state resolution to find the new
room state anyway, so we could just use the new room state for the auth
check. The problem is that if the incoming event is a membership leave
event, the new room state does not allow another leave event. This is
obviously the wrong option.
3. The state of the room after doing state-res with the state **before**
the event and our previous room state. This will mean a lot more
calculations because we have to run state-res again
We used 2. before and now use 1. again
2021-05-17 10:58:44 +02:00
Timo Kösters
8f27e6123b
feat: send read receipts over federation
...
currently they will only be sent if a PDU has to be sent as well
2021-05-17 10:25:27 +02:00
Timo Kösters
24793891e0
feat: implement GET /presence
2021-05-14 11:05:41 +02:00
Timo Kösters
767fe76d3e
Merge branch 'jfowl-master-patch-93743' into 'master'
...
Try to improve CI build times by caching
See merge request famedly/conduit!79
2021-05-13 07:57:11 +00:00
Jonas Fowl
3ea0d2b567
Try to improve CI build times by caching
2021-05-13 07:57:11 +00:00
Timo Kösters
f3e6311680
Merge branch 'clippy_ci' into 'master'
...
Add linting checks to CI
See merge request famedly/conduit!76
2021-05-12 18:44:41 +00:00
Timo Kösters
37b4a1cd0d
Merge branch 'dbg_clippy' into 'master'
...
Add dbg_macro check
See merge request famedly/conduit!75
2021-05-12 18:44:01 +00:00
Timo Kösters
68c5c57486
Merge branch 'improvements' into 'master'
...
improvement: bug fixes and refactors
See merge request famedly/conduit!78
2021-05-12 18:29:26 +00:00
Timo Kösters
f62258ba35
improvement: bug fixes and refactors
...
- power level content override adds to the default event instead of
replacing it
- sending code refactored to make edus possible
- remove presence events when restarting conduit
- remove room_id field from read receipts over /sync
- handle incoming read receipts
- fix array bounds bug in server_server.rs
2021-05-12 20:15:24 +02:00
Timo Kösters
ad5e51dc25
Merge branch 'up-ruma' into 'master'
...
Upgrade Ruma
See merge request famedly/conduit!77
2021-05-08 07:46:26 +00:00
Jonas Platte
af6fea3d4e
Refactor some canonical JSON code
2021-05-08 02:13:01 +02:00
Jonas Platte
a0457000ff
Upgrade Ruma
2021-05-08 01:54:28 +02:00
Jonathan de Jong
80f1844476
fix rustup pls
2021-05-05 17:44:32 +00:00
Jonathan de Jong
9bf99e99a8
fix clippy rustup
2021-05-05 17:26:59 +00:00
Jonathan de Jong
442d0732a4
add rustup
2021-05-05 17:01:48 +00:00
Jonathan de Jong
9d2cc4d8b1
add cargo fmt check
2021-05-05 16:48:44 +00:00
Jonathan de Jong
e48cd9b018
add clippy to CI
2021-05-05 16:41:22 +00:00
Jonathan de Jong
268ad3441c
add dbg_macro check
2021-05-05 16:14:49 +00:00
Timo Kösters
bd16850fd4
Merge branch 'trusted' into 'master'
...
fix: add trusted_servers to config and deploy guide
See merge request famedly/conduit!74
2021-05-05 10:42:55 +00:00
Timo Kösters
3408d74f93
fix: add trusted_servers to config and deploy guide
2021-05-05 12:27:49 +02:00
Timo Kösters
861cc76363
Merge branch 'uiaa' into 'master'
...
improvement: uiaa works like in synapse
See merge request famedly/conduit!73
2021-05-05 10:18:26 +00:00
Timo Kösters
cf94b8e712
improvement: uiaa works like in synapse
2021-05-04 19:05:30 +02:00
Timo Kösters
b42d34858e
Merge branch 'up-ruma' into 'master'
...
Upgrade ruma and clean up request sending code
See merge request famedly/conduit!72
2021-05-02 16:59:31 +00:00
Jonas Platte
e1c4e5c73e
Return only event content in account_data endpoints, not the entire event
2021-04-29 21:28:01 +02:00
Jonas Platte
8bfaf09f37
Clean up reqwest::Response to http::Response conversion
2021-04-29 21:28:00 +02:00
Jonas Platte
c28eba1e5b
Bump ruma
2021-04-29 21:05:29 +02:00
Jonas Platte
08ca573df0
Remove explicit setting of content-type header
...
`try_into_http_request` takes care of this already.
2021-04-29 20:50:59 +02:00
Jonas Platte
61c522dcc0
Fix formatting
2021-04-29 20:50:59 +02:00
Jonas Platte
b76af682a6
Fix clippy warnings
2021-04-29 20:50:59 +02:00
Timo Kösters
27d25914e1
Merge branch 'roomdir' into 'master'
...
improvement: optimize room directory
Closes #36
See merge request famedly/conduit!71
2021-04-28 15:58:54 +00:00
Timo Kösters
3c3062a316
improvement: optimize room directory
2021-04-28 17:56:15 +02:00
Timo Kösters
d35ad69af1
Merge branch 'up-ruma' into 'master'
...
Bump ruma
See merge request famedly/conduit!70
2021-04-28 09:44:04 +00:00
Jonas Platte
2e1d7d12ca
Refactor usage of CanonicalJsonValue
2021-04-26 19:03:51 +02:00
Jonas Platte
c2b72773d5
Fix clippy warning
2021-04-26 19:02:32 +02:00
Jonas Platte
5be5c9e9f0
Bump ruma
2021-04-26 19:02:32 +02:00
Timo Kösters
f9f37cfcf8
Merge branch 'invites' into 'master'
...
feat: send invites over federation
Closes #53
See merge request famedly/conduit!69
2021-04-26 16:53:53 +00:00
Timo Kösters
58463bba93
feat: send invites over federation
2021-04-25 14:10:21 +02:00
Timo Kösters
abe176e3d0
Merge branch 'sending' into 'master'
...
fix: send transaction retry code
See merge request famedly/conduit!68
2021-04-24 21:17:18 +00:00
Timo Kösters
3dfc245633
fix: send transaction retry code
2021-04-24 18:26:41 +02:00
Timo Kösters
dd0b2597b7
Merge branch 'signatures' into 'master'
...
feat: verify signatures for incoming requests
Closes #77
See merge request famedly/conduit!65
2021-04-24 12:55:41 +00:00
Timo Kösters
2fc1ec2ad5
fix: logging
2021-04-24 13:34:35 +02:00
Timo Kösters
226045ea4b
improvement: warning on misconfigured reverse proxy
2021-04-24 12:29:02 +02:00
Jonas Platte
026af6b1a6
Improve formatting of ruma_wrapper.rs
2021-04-24 12:22:42 +02:00
Jonas Platte
d8b484beed
Upgrade ruma
2021-04-24 12:22:36 +02:00
Jonas Platte
e72fd44bb5
Refactor send_request for appservices
2021-04-24 12:18:21 +02:00
Jonas Platte
7067d7acae
Refactor Responder implementation for RumaResponse
2021-04-24 12:18:21 +02:00
Timo Kösters
23f81bfaf7
chore: update dependencies
2021-04-24 12:18:19 +02:00
Timo Kösters
bb234ca002
fix: only show one typing event per user
2021-04-24 12:17:45 +02:00
Timo Kösters
6e84d317b2
improvement: update ruma
2021-04-24 12:17:44 +02:00
Timo Kösters
1f84013b2a
feat: verify signatures for incoming requests
2021-04-24 12:17:44 +02:00
Timo Kösters
f89e3668fd
Merge branch 'deploy-proxy' into 'master'
...
Document proper proxy options in DEPLOY.md
See merge request famedly/conduit!67
2021-04-24 08:57:11 +00:00
Gabriel Souza Franco
7e4320a079
chore: document proper proxy options in DEPLOY.md
2021-04-23 15:27:35 -03:00
Paul van Tilburg
f63a624743
Add text about using cargo-deb to the README
2021-04-23 19:11:42 +02:00
Timo Kösters
8c72909bb8
Merge branch 'tls-name' into 'master'
...
Validate TLS certificates according to Matrix spec
See merge request famedly/conduit!60
2021-04-23 05:22:07 +00:00
Paul van Tilburg
4fb2f17b83
Purge debconf changes from the DB on purge
2021-04-22 21:52:47 +02:00
Paul van Tilburg
19aaffeb23
Change the default port (follows DEPLOY.md)
2021-04-22 21:52:47 +02:00
Paul van Tilburg
f3b1096417
Change the default library path (follows DEPLOY.md)
2021-04-22 21:52:47 +02:00
Paul van Tilburg
5bf43a4d7e
Generate conduit.toml instead of debian environment file
...
Only generate this file once. I am not sure what to do with future
upgrades yet.
2021-04-22 21:52:40 +02:00
Timo Kösters
14c7ecf722
Merge branch 'improvements' into 'master'
...
Implement /devices
Closes #62
See merge request famedly/conduit!64
2021-04-21 09:03:18 +00:00
Timo Kösters
2f440e644d
fix: clippy
2021-04-21 10:59:07 +02:00
Timo Kösters
71ed1b295a
feat: /devices route
2021-04-21 10:51:56 +02:00
Timo Kösters
e815486030
fix: don't allow inviting other users (not implemented yet)
2021-04-21 10:00:23 +02:00
Gabriel Souza Franco
ed253e236c
chore: document FedDest, fix tests
2021-04-21 00:35:44 -03:00
Timo Kösters
1937cf554f
Merge branch 'add-ci' into 'master'
...
Add basic CI
See merge request famedly/conduit!41
2021-04-20 12:23:28 +00:00
Timo Kösters
9adcc20335
Merge branch 'update-readme' into 'master'
...
docs: update readme
See merge request famedly/conduit!63
2021-04-20 11:21:18 +00:00
Timo Kösters
4c4e1f9027
docs: update readme
2021-04-20 13:07:00 +02:00
Timo Kösters
ad19264c38
Merge branch 'fix-fetch' into 'master'
...
fix: bug when fetching events over federation
See merge request famedly/conduit!62
2021-04-19 10:00:47 +00:00
Timo Kösters
0b9182455c
fix: use working email
2021-04-19 11:57:17 +02:00
Timo Kösters
d4e0ba245b
fix: bug when fetching events over federation
2021-04-19 11:55:27 +02:00
Timo Kösters
0b89ffe566
Merge branch 'make-join' into 'master'
...
feat: make_join, send_join and /directory
See merge request famedly/conduit!59
2021-04-16 21:15:27 +00:00
Paul van Tilburg
ab58609d3d
No longer use/support a local environment file
2021-04-16 22:07:58 +02:00
Timo Kösters
eedac4fd96
feat: make_join, send_join and /directory
2021-04-16 18:18:29 +02:00
Gabriel Souza Franco
7faa021ff5
chore: code formatting and cleanup
2021-04-16 12:18:22 -03:00
Timo Kösters
6d109b9902
Merge branch 'mdformatting' into 'master'
...
docs: Fix markdown formatting in DEPLOY.md
See merge request famedly/conduit!58
2021-04-16 09:24:52 +00:00
Tobias Fella
95db30918e
docs: Fix fix formatting of code blocks in markdown
2021-04-16 11:10:01 +02:00
Gabriel Souza Franco
e73de2317e
fix: verify tls cert for non-conformant servers
2021-04-16 00:36:35 -03:00
Gabriel Souza Franco
b4c001de2f
chore: cleanup string-based code in find_actual_destination
2021-04-16 00:27:26 -03:00
Gabriel Souza Franco
0b56589dce
feat: add handling of tls cert for delegated hosts
2021-04-15 22:07:27 -03:00
Timo Kösters
18398e1f17
Merge branch 'bump-stateres' into 'master'
...
Bump stateres
See merge request famedly/conduit!57
2021-04-14 15:47:00 +00:00
Timo Kösters
04b08d4505
chore: bump stateres
2021-04-14 17:46:17 +02:00
Timo Kösters
f6c4da829e
Merge branch 'better-joining' into 'master'
...
improvement: use invite state as hints to what servers to ask for joining
See merge request famedly/conduit!56
2021-04-14 13:06:14 +00:00
Timo Kösters
bc98425dfe
improvement: use invite state as hints to what servers to ask for joining
2021-04-14 14:46:40 +02:00
Timo Kösters
d6b59cd20c
Merge branch 'develop' into 'master'
...
State resolution overhaul
See merge request famedly/conduit!53
2021-04-14 11:36:53 +00:00
Timo Kösters
001d8dc257
fix: don't do expensive operation on local /send
2021-04-14 12:55:14 +02:00
Timo Kösters
c1953efa6b
chore: code cleanup
2021-04-14 10:43:31 +02:00
Timo Kösters
abddfc2d2a
Merge remote-tracking branch 'famedly/master' into develop
2021-04-14 10:26:28 +02:00
Timo Kösters
5951294638
feat: join cursed rooms
...
this removes several restrictions and tries to continue verifying a pdu
event if some auth events fail (it drops/ignores bad pdus)
2021-04-14 09:39:06 +02:00
Timo Kösters
8b40e0a85f
improvement: fetch signing keys in parallel when joining a room
2021-04-13 22:54:01 +02:00
Timo Kösters
5049d0e01b
improvement: check signatures on join
2021-04-13 18:17:51 +02:00
Timo Kösters
b4f79b77ba
feat: reject invites over federation
2021-04-13 17:41:14 +02:00
Timo Kösters
662a0cf1df
improvement: better and more efficient message count calculation
2021-04-12 12:40:16 +02:00
Timo Kösters
1dc85895a7
fix: show warning for invalid user ids
2021-04-12 10:12:52 +02:00
Timo Kösters
a961732f5f
fix: overflow
2021-04-11 21:35:17 +02:00
Timo Kösters
a8231eef25
fix: alias parsing
2021-04-11 21:29:37 +02:00
Timo Kösters
8773e5013d
feat: incoming invites over federation
2021-04-11 21:04:31 +02:00
Timo Kösters
b427395648
Merge branch 'add-vscode-settings' into 'master'
...
Add settings.json for vscode rust-analyzer
See merge request famedly/conduit!45
2021-04-11 10:56:38 +00:00
Timo Kösters
b4bbbd26bf
Merge branch 'MTRNord/propose-better-systemd-user' into 'master'
...
fix: Do not run conduit as root instead use a separate user
See merge request famedly/conduit!49
2021-04-11 10:52:52 +00:00
Marcel
ac99e05714
docs: capitalize a "conduit" that was missed
2021-04-11 10:51:43 +00:00
Marcel
dd69850598
docs: Fix missing _matrix in apache config
2021-04-11 10:50:38 +00:00
Timo Kösters
b0ea692706
fix: malformed pushrule error when event does not trigger any actions
2021-04-11 10:50:30 +02:00
Timo Kösters
588de12d79
fix: lost forward extremity
2021-04-11 10:12:29 +02:00
Timo Kösters
044e65afcc
fix: move back to sled stable
2021-04-11 10:12:05 +02:00
Timo Kösters
84f4ce73e5
fix: membership deserializing
2021-04-09 21:45:22 +02:00
Timo Kösters
51aa6448bc
fix: use sled main to avoid deadlock
2021-04-07 17:58:33 +02:00
Timo Kösters
f3f95a73d0
improvement: /event route
2021-04-07 15:57:23 +02:00
Timo Kösters
d0cdbe2e2b
Merge branch 'up-ruma' into 'develop'
...
Upgrade ruma
See merge request famedly/conduit!48
2021-04-07 13:55:31 +00:00
Jonas Platte
dc031fff95
Remove redundant calls to .iter() and .into_iter()
2021-04-06 17:38:54 +02:00
Jonas Platte
dbe8c2ce19
Remove lots of redundant string allocations
2021-04-06 17:38:54 +02:00
Jonas Platte
fe744c856f
Upgrade ruma
...
… and refactor push rule code along the way.
2021-04-06 17:38:53 +02:00
Marcel
c267c0f09e
fix: use full codeblocks and capitalize Conduit and Debian
2021-04-06 13:17:39 +00:00
Marcel
9b2f8730bb
fix: Do not run conduit as root instead use a separate user
2021-04-06 12:26:47 +00:00
Timo Kösters
c9b1f0ca83
Merge branch 'k0gen-master-patch-33282' into 'master'
...
No need to log out and back in fix
See merge request famedly/conduit!47
2021-04-03 13:04:55 +00:00
Mariusz Kogen
246e4735fd
No need to log out and back in fix
2021-04-02 22:11:14 +00:00
Timo Kösters
db7044a950
sytest test
2021-03-26 13:41:05 +01:00
Timo Kösters
8c6a49bec3
Merge branch 'update_CI_for_develop' into 'develop'
...
Update Complement CI container
See merge request famedly/conduit!46
2021-03-26 12:31:34 +00:00
Timo Kösters
cd4dc13731
fix: use correct room versions
2021-03-26 13:30:17 +01:00
Rudi Floren
5a13f6f7e0
Remove build container and use the always present build artifact directly
...
Proper chmod caddy and conduit binaries
2021-03-26 04:19:54 +01:00
Timo Kösters
c213769d9f
improvement: refactor state res and fix a few bugs in the process
2021-03-25 23:55:40 +01:00
Timo Kösters
16eed1d8c2
chore: get rid of warnings
2021-03-24 12:44:10 +01:00
Timo Kösters
e50f2864de
improvement: save state for send_join pdu
2021-03-24 11:46:15 +01:00
Timo Kösters
e305889b72
feat: room_account_data endpoints
2021-03-24 08:48:28 +01:00
Timo Kösters
1d00a8c41f
improvement: better logging
...
Use CONDUIT_LOG or the log setting in the config
2021-03-23 22:06:09 +01:00
Timo Kösters
46d8f36a2c
fix: media thumbnail calculation and appservice detection
2021-03-23 21:18:16 +01:00
Timo Kösters
3ea7d162db
fix: various improvements and fixes
2021-03-23 12:59:27 +01:00
Timo Kösters
363c629faf
fix: signature key fetching, optimize push sending
2021-03-22 14:04:41 +01:00
Timo Kösters
d4c76f4654
chore: update ruma
2021-03-18 19:38:08 +01:00
Timo Kösters
f775c76d8a
chore: get rid of warnings
2021-03-18 18:33:43 +01:00
Timo Kösters
abe9122df6
Merge branch 'more-gitignore' into 'master'
...
Add more gitignore
See merge request famedly/conduit!42
2021-03-18 17:09:04 +00:00
Gabriel Souza Franco
7b3fe88345
Send proper Host header in federation requests
2021-03-18 17:59:16 +01:00
Timo Kösters
5cb15551f3
improvement: use db compression
2021-03-18 13:13:08 +01:00
Timo Kösters
a0fa0ee7a0
fix: join appservice room with alias
2021-03-18 12:03:44 +01:00
Timo Kösters
a77fcd106e
feat: implement /state_ids and fix federation stuff
2021-03-18 00:11:13 +01:00
Timo Kösters
100307c936
improvement: optimize state storage
2021-03-17 22:31:28 +01:00
Timo Kösters
44425a903a
fix: multiple federation/pusher fixes
2021-03-16 18:00:46 +01:00
Timo Kösters
21f785d530
Merge branch 'correct-sendtxn' into pushers
2021-03-15 09:56:04 +01:00
Jonathan de Jong
0367028203
add settings.json
2021-03-14 11:55:28 +01:00
Jonathan de Jong
d0d5bc412b
Add more gitignore
2021-03-13 20:33:16 +01:00
Jonathan de Jong
f79053484b
Add .gitlab-ci.yml
2021-03-13 20:18:56 +01:00
Timo Kösters
6da40225bb
improvement: make state res actually work
2021-03-13 16:30:12 +01:00
Timo Kösters
e785ff6f56
Merge branch 'sled-no-metrics' into 'master'
...
fix: avoid illegal instruction crash
See merge request famedly/conduit!38
2021-03-12 17:29:47 +00:00
Timo Kösters
7bc58461cd
fix: avoid illegal instruction crash
...
see https://github.com/spacejam/sled/issues/1232
2021-03-12 16:22:35 +01:00
Timo Kösters
6538d91567
Merge branch 'readme' into 'master'
...
docs: add icon and license to readme
See merge request famedly/conduit!37
2021-03-04 20:37:50 +00:00
Timo Kösters
96431069a9
docs: add icon and license to readme
2021-03-04 21:37:24 +01:00
Timo Kösters
3436e844c2
Merge branch 'valkum-master-patch-62987' into 'master'
...
Fix Complement CI paths
See merge request famedly/conduit!36
2021-03-04 17:51:52 +00:00
Rudi Floren
156296ac05
Fix Complement CI paths
...
The final container tried to COPY from the default cargo target dir, but we only checked if cached_target is present.
We copy from cached_target to target when cached_target is present now in the builder
2021-03-04 17:22:23 +00:00
Timo Kösters
643109309b
Merge branch 'incoming-pdu' into 'master'
...
fix: don't accept incoming pdus if we know about them already
Closes #70
See merge request famedly/conduit!33
2021-03-04 14:38:07 +00:00
Timo Kösters
03440f4b15
Merge branch 'readme' into 'master'
...
docs: small readme changes
See merge request famedly/conduit!35
2021-03-04 14:35:12 +00:00
Timo Kösters
79c910efdf
Merge branch 'clippy_again' into 'master'
...
Fix more clippy errors in master
See merge request famedly/conduit!34
2021-03-04 14:30:28 +00:00
Timo Kösters
bb1064ce04
docs: small readme changes
2021-03-04 15:28:28 +01:00
Rudi Floren
4027cbd01d
Fix various clippy errors
2021-03-04 15:27:25 +01:00
Rudi Floren
6309506a48
Allow suspicious_else_formatting
...
This is probably unfixable because it is caused by macros
2021-03-04 15:26:34 +01:00
Devin Ragotzy
0d55964d24
Run nightly cargo fmt
2021-03-04 08:45:23 -05:00
Devin Ragotzy
d0df8b495c
Merge remote-tracking branch 'upstream/master' into correct-sendtxn
2021-03-04 08:39:16 -05:00
Devin Ragotzy
e239014fa3
Query for the correct server
2021-03-04 08:02:41 -05:00
Timo Kösters
1ce00f90fe
fix: don't accept incoming pdus if we know about them already
2021-03-04 13:37:16 +01:00
Timo Kösters
bd6507eafb
Merge branch 'valkum-master-patch-25423' into 'master'
...
Make clippy happy (needless-return, etc.)
See merge request famedly/conduit!23
2021-03-04 12:35:12 +00:00
Rudi Floren
231c6032f4
Make clippy happy (needless-return, etc.)
2021-03-04 12:35:12 +00:00
Timo Kösters
eaeba35f3c
Merge branch 'valkum/complement' into 'master'
...
Sync paths with CI pipeline due to dockerignore
See merge request famedly/conduit!24
2021-03-04 12:32:55 +00:00
Timo Kösters
3e274d7d2c
Merge branch 'valkum/conduit-update_rocket' into 'master'
...
update dependencies
See merge request famedly/conduit!32
2021-03-04 12:32:22 +00:00
Timo Kösters
105f893cf3
chore: bump other dependencies to make it work
2021-03-04 12:29:08 +01:00
Timo Kösters
a04860b513
Merge branch 'as-fix' into 'master'
...
fix: apply the same appservice sending rules to events coming from federation
See merge request famedly/conduit!31
2021-03-04 11:18:00 +00:00
Timo Kösters
437cb5783a
fix: apply the same appservice sending rules to events coming from federation
...
currently this code is duplicated from database/rooms.rs, when we
refactor server_server.rs we should deduplicate it
2021-03-04 11:34:38 +01:00
Rudi Floren
f4039902d8
Bump Rocket to current HEAD
2021-03-03 22:42:10 +01:00
Timo Kösters
1a940b6e05
Merge branch 'as-fix' into 'master'
...
fix: don't always query aliases of appservices
See merge request famedly/conduit!29
2021-03-03 21:07:18 +00:00
Timo Kösters
f2ec2be821
fix: don't always query aliases of appservices
...
only do so if the alias matches the regex in the registration file
2021-03-03 21:53:32 +01:00
Timo Kösters
1a198e7336
Merge branch 'jaeger' into 'master'
...
feat: opentelemetry/jaeger support
See merge request famedly/conduit!28
2021-03-02 14:14:26 +00:00
Timo Kösters
4155a47db1
feat: opentelemetry/jaeger support
2021-03-02 15:08:54 +01:00
Timo Kösters
066d5b92da
Merge branch 'sending' into 'master'
...
fix: sending code got stuck sometimes
See merge request famedly/conduit!25
2021-03-02 14:04:11 +00:00
Timo Kösters
f7713fdf2e
fix: sending code got stuck sometimes
2021-03-02 14:58:46 +01:00
Timo Kösters
566b8ebabb
Merge branch 'receipt-and-txnid' into 'master'
...
/receipt and transaction ids for federated requests
Closes #11
See merge request famedly/conduit!27
2021-03-02 13:49:14 +00:00
Timo Kösters
278751eb23
improvement: use transaction ids for federation requests
2021-03-02 14:36:48 +01:00
Timo Kösters
dd68031b69
improvement: implement /receipt
2021-03-02 14:33:35 +01:00
Devin Ragotzy
79c9de98cd
Add trusted_servers, filter servers to query keys by trusted_servers
2021-03-01 09:17:53 -05:00
Devin Ragotzy
c9f4ff5cf8
Ask multiple servers for keys when not known or sending server failed
2021-03-01 08:23:28 -05:00
Devin Ragotzy
f3253f2033
Move comments about Rooms trees to doc comments
2021-02-28 18:53:17 -05:00
Devin Ragotzy
0dd8a15c49
Fix leaves not being replaced by correct eventId in membership
...
Update ruma
2021-02-27 16:09:22 -05:00
Timo Kösters
a9239a4d0b
Merge branch 'larodar-master-patch-53953' into 'master'
...
Chore: Add Issue Template
See merge request famedly/conduit!26
2021-02-26 15:00:19 +00:00
Niklas Zender
a601c29c97
Chore: Add Issue Template
2021-02-26 14:55:06 +00:00
Devin Ragotzy
0cc6448dbe
Temp disable rust_2018_idioms for CI
2021-02-23 17:21:01 -05:00
Devin Ragotzy
8f283510aa
Fix unused import clippy warning
2021-02-23 17:21:01 -05:00
Devin Ragotzy
48601142f8
Use auth_cache to avoid db, save state for every event when joining
2021-02-23 17:21:01 -05:00
Devin Ragotzy
74d530ae0e
Address review issues, fix forward extremity calc
...
Keep track of all prev_events since if we know that an event is a
prev_event it is referenced and does not qualify as a forward extremity.
2021-02-23 17:21:01 -05:00
Devin Ragotzy
591769d5f3
Fiter PDU's before main incoming PDU loop
2021-02-23 17:21:01 -05:00
Devin Ragotzy
64374b4679
Use eventId when saving outliers
2021-02-23 17:21:01 -05:00
Devin Ragotzy
e09be2f7ee
Add incoming event to the current room state then resolve
...
All state snapshots that are used in the resolve call are state after
snapshots, they have the event inserted.
2021-02-23 17:21:01 -05:00
Devin Ragotzy
6661de50ab
Fix and integrate outlier tree, build forks after adding event to DB
2021-02-23 17:21:01 -05:00
Devin Ragotzy
6fd3e1d1dd
Append state event that pass resolution to DB, update to tokio 1.1
2021-02-23 17:21:01 -05:00
Devin Ragotzy
e0453e2348
Cleanup dbg prints and error messages
2021-02-23 17:21:01 -05:00
Devin Ragotzy
68f60933e6
Resolved state is set as the current room state on incoming events
2021-02-23 17:21:01 -05:00
Devin Ragotzy
05a4c0b325
Finish forward extremity gathering, use resolved state as new snapshot
2021-02-23 17:21:01 -05:00
Timo Kösters
602edfd849
feature: push rule settings
2021-02-23 17:21:01 -05:00
Devin Ragotzy
88c60605b4
Add ability to update room leaves with multiple eventIds
...
Tokio seems a bit broken with Rocket...
2021-02-23 17:21:01 -05:00
Devin Ragotzy
66af1ff695
Update ruma and rocket to latest git rev and tokio to 1.0
...
Ruma updated the event signing validation code and there was a dep
resolving failure with serde rocket and tokio so I updated rocket latest and
tokio 1.0 to fix.
2021-02-23 17:20:52 -05:00
Valkum
aa7b6b6e09
Sync paths with CI pipeline due to dockerignore#
...
As the docker ignore file includes the target dir, content in this dir
is no accessible to the docker daemon.
We circumvent this by providing the build artifact in a dir called
cached_dir
2021-02-22 19:07:39 +01:00
Timo Kösters
835cf80acd
fix: pushers
2021-02-11 13:17:21 +01:00
Devin Ragotzy
7309b2fba9
WIP gather and update forward extremities
2021-02-09 15:25:30 -05:00
Devin Ragotzy
94da569119
Fixing the incoming events algorithm (review with time)
2021-02-09 15:25:22 -05:00
Devin Ragotzy
db0aee3318
Use the auth_events for step 6, WIP forward_extremity_ids fn
2021-02-09 15:25:10 -05:00
Devin Ragotzy
4b2eb5ab82
Fix ALL clippy warnings
2021-02-09 15:25:00 -05:00
Devin Ragotzy
4cf530c55b
Abstract event validation/fetching, add outlier and signing key DB trees
...
Fixed the miss named commented out keys in conduit-example.toml.
2021-02-09 15:24:09 -05:00
Devin Ragotzy
52392628e9
Convert uses of Box<ServerName> to a ref
2021-02-09 15:22:22 -05:00
Devin Ragotzy
d108a735a4
State resolution outline for /send
2021-02-09 15:22:12 -05:00
Devin Ragotzy
d0b8d0f5fd
Fix signature/hash checks, fetch recursive auth events
2021-02-09 15:22:02 -05:00
Devin Ragotzy
168ae8dca0
Fill event_map with all events that will be needed for resolution
2021-02-09 15:21:51 -05:00
Devin Ragotzy
8de0d9f9ce
Remove StateStore trait from state-res collect events needed
2021-02-09 15:21:41 -05:00
Devin Ragotzy
cdeb1236a2
Fix clippy warnings remove unused imports
2021-02-09 15:21:14 -05:00
Devin Ragotzy
63af3d3da0
Step 5 in /send just fetches state from incoming server
2021-02-09 15:20:07 -05:00
Devin Ragotzy
4b9976aa74
Update state-res, use the new Event trait
...
This also bumps ruma to latest and removes js_int infavor of the ruma
re-export
2021-02-09 15:19:47 -05:00
Devin Ragotzy
4a92a29b56
State resolution outline for /send
2021-02-09 15:18:47 -05:00
Timo Kösters
fb9880fee9
Merge branch 'are-we-synpase-sync' into 'master'
...
Sync are-we-synapse with dendrite
See merge request famedly/conduit!21
2021-02-07 21:36:05 +00:00
Timo Kösters
098ecb2ca3
Merge branch 'jwt-token-fixed' into 'master'
...
Add 'm.login.token' authentication
See merge request famedly/conduit!5
2021-02-07 17:11:53 +00:00
Timo Kösters
d49911c5e0
Add 'm.login.token' authentication
2021-02-07 17:38:45 +01:00
Timo Kösters
3588dcd6d0
Merge branch 'deviceid-login' into 'master'
...
Handle optional device_id field during login
See merge request famedly/conduit!16
2021-02-07 12:28:05 +00:00
Timo Kösters
2d7012cdb1
Merge branch 'appservices' into 'master'
...
Appservices
Closes #29
See merge request famedly/conduit!11
2021-02-07 12:24:28 +00:00
Timo Kösters
ea1e4625d1
fix: default config options
2021-02-07 13:20:00 +01:00
Timo Kösters
6924dfc8ea
improvement: better appservice compatibility and optimizations
2021-02-06 15:28:30 +01:00
Timo Kösters
7be2a83195
Merge branch 'valkum/complement' into 'master'
...
Complement Testing: Fix binary name typo
See merge request famedly/conduit!20
2021-02-05 08:52:25 +00:00
Valkum
1d7207b39e
Sync are-we-synapse with dendrite
2021-02-05 02:06:14 +01:00
Valkum
a61b1cef5b
Fix binary name typo
2021-02-04 23:51:20 +01:00
Timo Kösters
a478ec0443
Merge branch 'cleanup' into 'master'
...
Update repository link in crate metadata
See merge request famedly/conduit!19
2021-02-03 18:30:11 +00:00
Timo Kösters
fd3fb3a7ed
Merge remote-tracking branch 'famedly/master' into appservices
2021-02-03 12:54:37 +01:00
Jonas Platte
6de5b3c2a0
Update repository link in crate metadata
2021-02-02 18:14:00 +01:00
Devin Ragotzy
e4dc7ea8ac
Prevent admin room from recursively spamming itself and user -> user
2021-01-30 11:52:48 -05:00
Devin Ragotzy
73124629b7
Add general rules matching for pusher, calc unread msgs
2021-01-29 21:48:35 -05:00
Devin Ragotzy
2d69e81699
WIP: send out push notification, impl pusher routes
...
It seems in order to test this I may also have to impl the email 3pid
route? I need to call the set_pusher route somehow.
2021-01-29 21:48:09 -05:00
Devin Ragotzy
a0ecd76e21
Run cargo fmt using nightly
2021-01-29 21:48:09 -05:00
Devin Ragotzy
56b816a2be
Fix and integrate outlier tree, build forks after adding event to DB
2021-01-29 21:45:33 -05:00
Devin Ragotzy
cd0c5c0566
Append state event that pass resolution to DB, update to tokio 1.1
2021-01-29 11:20:33 -05:00
Devin Ragotzy
b8b40ce38b
Cleanup dbg prints and error messages
2021-01-28 15:50:45 -05:00
Devin Ragotzy
894b6ef037
Resolved state is set as the current room state on incoming events
2021-01-28 15:33:41 -05:00
Timo Kösters
265fab843a
feature: push rule settings
2021-01-28 20:47:19 +01:00
Devin Ragotzy
35c1904b37
Finish forward extremity gathering, use resolved state as new snapshot
2021-01-24 20:18:40 -05:00
Timo Kösters
a119d858f3
feature: push rule settings
2021-01-24 16:07:49 +01:00
Timo Kösters
87a0019f3a
Merge branch 'valkum/complement' into 'master'
...
Allow the complement test image to use build artifacts
See merge request famedly/conduit!17
2021-01-23 07:43:05 +00:00
Valkum
a1e296374f
Allow the complement test image to use build artifacts
2021-01-22 20:11:19 +01:00
Devin Ragotzy
a897608025
Roll back tokio and rocket update since ruma's request is at 0.2 tokio
2021-01-18 19:59:08 -05:00
Devin Ragotzy
3a6f264450
Add ability to update room leaves with multiple eventIds
...
Tokio seems a bit broken with Rocket...
2021-01-18 19:41:38 -05:00
Devin Ragotzy
00436a32b0
Update ruma and rocket to latest git rev and tokio to 1.0
...
Ruma updated the event signing validation code and there was a dep
resolving failure with serde rocket and tokio so I updated rocket latest and
tokio 1.0 to fix.
2021-01-18 19:36:44 -05:00
Devin Ragotzy
c65bde41e0
WIP gather and update forward extremities
2021-01-18 19:08:59 -05:00
Devon Hudson
762255fa8d
Simplify device creation logic during login
2021-01-17 08:39:47 -07:00
Devon Hudson
890187e004
improvement: Handle optional device_id field during login
...
remove debug logging
2021-01-16 22:19:48 -07:00
Timo Kösters
9424ba0559
Merge branch 'logout-devices' into 'master'
...
Respect logout_devices param on password change
See merge request famedly/conduit!15
2021-01-16 22:35:08 +00:00
Devon Hudson
ebb38cd330
improvement: respect logout_devices param on password change
...
Move logout devices comment next to relevant loop
remove unnecessary log
2021-01-16 15:14:50 -07:00
Devin Ragotzy
b1ae2bbeb2
Fixing the incoming events algorithm (review with time)
2021-01-16 16:37:20 -05:00
Devin Ragotzy
96dc6be14b
Use the auth_events for step 6, WIP forward_extremity_ids fn
2021-01-15 15:46:47 -05:00
Devin Ragotzy
5a8041969d
Fix ALL clippy warnings
2021-01-15 11:05:57 -05:00
Devin Ragotzy
851eb555b6
Abstract event validation/fetching, add outlier and signing key DB trees
...
Fixed the miss named commented out keys in conduit-example.toml.
2021-01-14 21:32:22 -05:00
Devin Ragotzy
2ac3ffbb24
Convert uses of Box<ServerName> to a ref
2021-01-14 15:11:55 -05:00
Devin Ragotzy
7c4e116caa
State resolution outline for /send
2021-01-14 15:07:40 -05:00
Devin Ragotzy
27c4e9d9d5
Fix signature/hash checks, fetch recursive auth events
2021-01-14 14:36:24 +01:00
Devin Ragotzy
88f3ee489b
Fill event_map with all events that will be needed for resolution
2021-01-14 14:31:47 +01:00
Devin Ragotzy
8a035880f0
Remove StateStore trait from state-res collect events needed
2021-01-14 14:30:24 +01:00
Devin Ragotzy
7c4d74bf9b
Fix clippy warnings remove unused imports
2021-01-14 14:30:24 +01:00
Devin Ragotzy
0ee239c9d7
Step 5 in /send just fetches state from incoming server
2021-01-14 14:30:23 +01:00
Devin Ragotzy
9e83d2b2d5
Update state-res, use the new Event trait
...
This also bumps ruma to latest and removes js_int infavor of the ruma
re-export
2021-01-14 14:30:19 +01:00
Devin Ragotzy
690c066064
State resolution outline for /send
2021-01-14 14:28:32 +01:00
Paul van Tilburg
c263e13000
fix: update binary file name in docs for consistency
2021-01-11 20:28:47 +01:00
Timo Kösters
ad7b3f184b
improvement: send 200 response for turn server info
...
We didn't implement it, but this will stop clients from retrying the
endpoint every minute
2021-01-11 17:26:47 +01:00
Timo Kösters
d45d033bf1
fix: send presence updates when going offline
...
remaining bug: conduit sends presence updates every 5 minutes even if
the user is already offline
2021-01-10 17:12:34 +01:00
Timo Kösters
b4818716b8
improvement: better deploy guide
2021-01-01 22:21:05 +01:00
Timo Kösters
d7e56dbfa0
docs: recommend using binaries
2021-01-01 11:27:01 +01:00
Timo Kösters
3bdaf6e79e
improvement: better default config
2021-01-01 11:24:09 +01:00
Timo Kösters
85364a9c27
improvement: change federation_enabled to federation_disabled
...
This enables federation by default
2021-01-01 10:52:43 +01:00
Timo Kösters
edfd3c1f34
improvement: better config, better logs
2020-12-31 21:07:55 +01:00
Timo Kösters
df16b2ba98
fix: rare state races
2020-12-31 14:52:08 +01:00
Timo Kösters
2cf6fd57b7
improvement: don't send pdus to appservices if it isn't interested
...
TODO: we need to send pdus if a user of the appservice is in the room
but not the appservice user itself
2020-12-23 19:41:54 +01:00
Timo Kösters
fb9bd34696
improvement: better warnings when server is unreachable
2020-12-23 15:53:41 +01:00
Timo Kösters
c1bc70aeca
Merge branch 'kuboschek/conduit-always-query-srv' into appservices
2020-12-22 20:35:43 +01:00
Leonhard Kuboschek
8dcc1dfe56
improvement: always use port from SRV lookups
...
Also query SRV records when well-known is not found, fixes #29
2020-12-22 20:34:07 +01:00
Timo Kösters
f12fbca3c5
fix: send state in /sync, element displays wrong membership changes
2020-12-22 20:22:17 +01:00
Timo Kösters
6606e41dde
feat: improved state store
2020-12-20 13:34:11 +01:00
Timo Kösters
6e5b35ea92
feat: implement appservices
...
this also reverts some stateres changes
2020-12-08 12:59:20 +01:00
Timo Kösters
d62f17a91a
improvement: cache actual destination
2020-12-06 11:05:51 +01:00
Timo Kösters
9d4c7c34a0
Merge branch 'cargo-deb-packaging' into 'master'
...
Add Debian packaging via cargo-deb
See merge request famedly/conduit!3
2020-12-06 07:31:09 +00:00
Timo Kösters
45086b54b3
improvement: upgrade dependencies, fix timeline reload bug
2020-12-05 21:04:34 +01:00
Devin Ragotzy
164b1633d8
Update ruma to latest, renamed server keys and removed PduStub
2020-12-05 17:44:54 +01:00
Devin Ragotzy
b869aab5d0
Cleanup removing debug printing and logging, append non state events
2020-12-05 17:37:13 +01:00
Devin Ragotzy
c173ce43a5
convert_to_outgoing_federation_event takes CanonicalJsonObj
2020-12-05 17:37:12 +01:00
Devin Ragotzy
27e686f9ff
Convert uses of serde_json::Value to CanonicalJsonObject
2020-12-05 17:37:12 +01:00
Devin Ragotzy
b6d721374f
Have Media db return optional content_type, conversion fixes
2020-12-05 17:37:11 +01:00
Devin Ragotzy
bb24f6ad90
Address some review issues fmt, errors, comments
2020-12-05 17:37:11 +01:00
Devin Ragotzy
86bb93f8cf
Remove outdated TODOs, use StateEvent::from_id_value consistently
2020-12-05 17:37:10 +01:00
Devin Ragotzy
234b226468
Fix review issues, Remove EventHash's in prev/auth_events in StateEvent
...
The latest state-res crate uses ruma's PduRoomV3 PDU's which don't have
tuples of (EventId, EventHashs) like previous versions did (this was
left from rebasing onto master). The Media DB
now takes an optional content_type like the updated ruma structs.
2020-12-05 17:37:10 +01:00
Devin Ragotzy
acd144e934
Fix get_closest_parent and cleanup federation/send/:txn
2020-12-05 17:37:10 +01:00
Devin Ragotzy
b13049a6fa
Fix federated join miss hashing the join event created
2020-12-05 17:37:09 +01:00
Devin Ragotzy
eca0bbb35a
Fix federated join miss hashing the join event created
2020-12-05 17:37:09 +01:00
Devin Ragotzy
dcd1163806
All outgoing pdus in Sending must be PduStubs
2020-12-05 17:37:08 +01:00
Devin Ragotzy
c9a6ce54cb
Add basic handling of EDUs for /send/txn
2020-12-05 17:37:08 +01:00
Devin Ragotzy
0d69ebdc6c
Reformat imports and fix clippy warnings
2020-12-05 17:37:07 +01:00
Devin Ragotzy
db8a0c5d69
Add closest_parent method to Rooms Db insert in order /send pdus
2020-12-05 17:37:07 +01:00
Devin Ragotzy
96dd3b2880
Update ruma to latest, fix unstable origin feature in ruma
2020-12-05 17:37:07 +01:00
Timo Kösters
49f6ab503a
Merge branch 'better-logs' into 'master'
...
feat: send logs into admin room
See merge request famedly/conduit!6
2020-12-05 16:36:05 +00:00
Timo Kösters
6e36081573
improvement: more logging
2020-12-05 17:35:00 +01:00
Timo Kösters
9439f2c183
feat: send logs into admin room
...
Log entries will automatically be deduplicated, so a message won't be
sent if the same line has already been sent in the last 30 mins
2020-12-05 17:34:58 +01:00
Timo Kösters
ecea0d4af2
Merge branch 'fix-admin-room' into 'master'
...
fix: logging thread crash when admin room does not exist
See merge request famedly/conduit!9
2020-12-05 16:31:18 +00:00
Timo Kösters
e691e880e0
fix: logging thread crash when admin room does not exist
2020-12-02 16:08:59 +01:00
Paul van Tilburg
1a341543ba
Lock down the Conduit process in the systemd unit
...
This will secure the service more and allow only what is necessary.
2020-11-24 14:42:20 +01:00
Paul van Tilburg
1b4a79d47c
Add and install README.Debian
...
This file documents how the packaging is organized and how to
configure and use it. It also details what the default deployment
is like.
2020-11-24 14:42:20 +01:00
Paul van Tilburg
f72554de10
Split config into a Debian and local part
...
* The Debian part will be generated and managed by Debconf and configure
homeserver name, address and port
* The local part will just be a config file that shows the other
configuration options
Added the address configuration and moved the config generation
from the config to the postinst script.
2020-11-24 14:42:18 +01:00
Paul van Tilburg
79692db45d
First version of cargo-deb packaging setup
2020-11-24 14:38:15 +01:00
Timo Kösters
7078443460
Merge branch 'fix_complement' into 'master'
...
Fix complement
See merge request famedly/conduit!7
2020-11-18 20:17:50 +00:00
Timo Kösters
998f9e2109
Merge branch 'sending' into 'master'
...
Sending improvements
See merge request famedly/conduit!2
2020-11-09 19:28:56 +00:00
Rudi Floren
fc08b13db1
Change CA to PKI per naming in Complement
2020-11-09 17:32:04 +01:00
Rudi Floren
e4c5ed96a9
Sync with newest complement changes
2020-11-09 17:21:35 +01:00
Timo Kösters
9f8cffcd22
Admin room improvements
2020-11-09 12:21:57 +01:00
Timo Kösters
16b22bb432
fix: don't allow more than 50 PDUs in a transaction
2020-11-03 21:53:57 +01:00
Rudi Floren
335a33c901
Fix and Improve Complement testing Dockerfile
2020-10-30 02:57:22 +01:00
Timo Kösters
0762196963
fix: don't send new events from left rooms
2020-10-27 20:26:28 +01:00
Timo Kösters
2f5df4aac9
improvement: more reliable federation sending
2020-10-27 20:26:27 +01:00
Timo Kösters
18f33b1ece
Merge pull request 'Frequent flushing, configurable cache capacity, welcome message' ( #237 ) from small-improvements into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/237
2020-10-23 14:41:54 +02:00
Timo Kösters
df82314440
improvement: welcome message
2020-10-23 14:38:12 +02:00
Timo Kösters
6b3934e31d
feat: configurable cache capacity
2020-10-23 14:38:12 +02:00
Timo Kösters
6dbe195695
improvement: flush after every request that manipulates the db
2020-10-23 14:38:07 +02:00
Timo Kösters
b2a1505535
Merge pull request 'improvement: correct thumbnailing algorithm' ( #233 ) from fix-thumbnailing into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/233
2020-10-19 17:46:22 +02:00
Timo Kösters
6bb8284fc0
improvement: correct thumbnailing algorithm
2020-10-19 17:21:28 +02:00
Timo Kösters
de8bba4b49
Merge pull request 'Fix order of docker command arguments' ( #232 ) from Weasy666/conduit:master into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/232
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-10-19 07:05:18 +02:00
Daniel Wiesenberg
2d6b7750fd
Fix order of docker command arguments and change repository link to...
...
...github.com repo, to relieve some pressure from git.koesters.xyz.
2020-10-18 23:06:08 +02:00
Timo Kösters
cde4178f4a
Merge pull request 'fix: use device_id when registering' ( #231 ) from fix-deviceid into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/231
2020-10-18 21:54:37 +02:00
Timo Kösters
f0a21b6165
fix: use device_id when registering
...
TIL body.device_id != (*body).device_id, which is pretty bad, so I
renamed body.device_id to body.sender_device
2020-10-18 21:51:28 +02:00
Timo Kösters
9936027e8f
Merge pull request 'Change license to Apache-2.0' ( #195 ) from license into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/195
2020-10-18 19:37:18 +02:00
Timo Kösters
fccd3fdb88
Merge pull request 'Allow unjoined users to read state of world readable rooms' ( #230 ) from allow-reading-state into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/230
2020-10-18 16:45:17 +02:00
Timo Kösters
f6f15d9396
Use conduit.rs server in the README shield
2020-10-18 16:44:18 +02:00
Timo Kösters
243126d393
Allow reading state if history_visibility is world readable
...
See https://matrix.org/docs/spec/client_server/r0.6.1#id87
2020-10-18 16:44:18 +02:00
Timo
a2dbc6fe6d
Change license to Apache-2.0
2020-10-18 13:47:52 +02:00
Timo Kösters
9f487dd93a
Merge pull request 'Update README.md' ( #229 ) from update-readme into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/229
2020-10-18 13:35:01 +02:00
Timo Kösters
ce94ad05a7
Update README.md
2020-10-18 13:23:06 +02:00
Timo Kösters
fbbf9f8999
Merge pull request 'docs: cross compile' ( #226 ) from cross-compile into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/226
2020-10-18 13:03:18 +02:00
Timo Kösters
935546b25b
Merge pull request 'fix: random timeline reloads' ( #227 ) from fix-random-timeline-reloads into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/227
2020-10-18 09:56:28 +02:00
Timo Kösters
151ef07fb3
docs: cross compile
2020-10-18 09:04:11 +02:00
Timo Kösters
12b0efac8b
fix: random timeline reloads
2020-10-18 09:03:40 +02:00
Timo Kösters
f56b463278
Merge pull request 'fix: double join over federation' ( #225 ) from join into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/225
2020-10-17 11:29:03 +02:00
Timo Kösters
9109cb492f
fix: double join over federation
2020-10-17 11:24:57 +02:00
Timo Kösters
a89f7eaf9f
Merge pull request 'Add complement support for CI' ( #209 ) from valkum/complement into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/209
2020-10-16 14:34:08 +02:00
Timo Kösters
f7c2d23599
Merge branch 'master' into valkum/complement
2020-10-16 14:27:09 +02:00
Timo Kösters
294fae5cdb
Merge pull request 'Update dependencies, remove dbgs' ( #222 ) from deps into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/222
2020-10-16 14:12:08 +02:00
Timo Kösters
dfcfab5b7e
Merge branch 'master' into deps
2020-10-16 14:06:14 +02:00
Timo Kösters
9d1387954f
Update dependencies, remove dbgs
2020-10-16 14:04:29 +02:00
Timo Kösters
15fa7fb1cc
Merge pull request 'Reduce media ID length from 256 to 32' ( #216 ) from miruka/conduit:reduce-mxc-length into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/216
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-10-16 13:24:52 +02:00
Timo Kösters
b6ed018d16
Merge branch 'master' into reduce-mxc-length
2020-10-14 11:48:25 +02:00
Timo Kösters
0e817f6951
Merge pull request 'Federation, Admin room and many fixes' ( #221 ) from federation into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/221
2020-10-13 19:04:42 +02:00
Timo Kösters
304c53c4f5
style: make clippy happier
2020-10-07 12:29:19 +02:00
Timo Kösters
4964e21342
Merge remote-tracking branch 'origin/master' into federation
2020-10-07 12:02:36 +02:00
Timo Kösters
6afc4c9b3e
feat: federation disabled by default
...
It can be enable in the Rocket.toml config or using ROCKET_FEDERATION_ENABLED=true
2020-10-07 11:51:56 +02:00
Timo Kösters
c15ae3c126
fix: invalid typing bytes because of 0xff in numbers
2020-10-07 11:51:56 +02:00
Timo Kösters
bcd1fe1856
feat: admin room
2020-10-07 11:51:49 +02:00
Timo Kösters
0d6159c2da
improvement: get_missing_events route and cleanup
2020-10-01 20:49:15 +02:00
Timo Kösters
ab332363ce
fix: don't send new requests to servers if we are already waiting
2020-10-01 20:49:14 +02:00
miruka
26e200e290
Reduce media ID length from 256 to 32
...
Most common filesystems limit paths to 255 bytes.
This change brings down the media ID length to be similar to
Synapse servers (25), and makes it possible for clients to
download media with the ID included in the filename.
2020-09-25 14:18:36 -04:00
Timo Kösters
e08dfd982b
improvement: look at SRV record when sending requests
2020-09-23 12:04:02 +02:00
Timo Kösters
f0beffb0a9
Merge pull request 'Fix ruma dependency' ( #211 ) from fix into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/211
2020-09-20 18:18:45 +02:00
Timo Kösters
19207845bc
Fix ruma dependency
2020-09-20 13:49:13 +02:00
Timo Kösters
267c721616
fix: encryption and sync spam
2020-09-18 10:29:44 +02:00
Timo Kösters
8bcfff2766
fix: no notification counts for fast /syncs
2020-09-18 10:29:43 +02:00
Timo Kösters
ea3aaa6b5c
improvement: more efficient /sync with gaps
2020-09-18 10:29:43 +02:00
Rudi Floren
009e36b680
Fix Caddy integration for reverse-proxy
2020-09-17 21:11:18 +02:00
Rudi Floren
7c456a0390
Update dockerignore
...
Removing Rocket-example.toml from here is fine,
as it is not included in the last stage of our build stages
2020-09-17 20:14:07 +02:00
Valkum
da28c12eeb
Try to add TLS reverse proxy for complement
2020-09-17 15:36:36 +02:00
Valkum
8d66428beb
Add intermediate container to hide ARGs
...
ARGs contain secrets to speed up builds
2020-09-17 12:50:37 +02:00
Timo Kösters
506c2a3146
fix: can't find count from event in db
2020-09-17 10:24:18 +02:00
Valkum
3e03787551
Add Complement dockerfile and move sytest dir
2020-09-16 19:53:27 +02:00
Timo Kösters
4db6d7e430
fix: remove avatar url checks
...
They are not in the spec and maubot relies on that
2020-09-16 18:10:55 +02:00
Timo Kösters
a567cd81d5
improvement: better logs on deserialization errors
2020-09-16 15:08:51 +02:00
Timo Kösters
f4078a29eb
fix: synapse complains about missing origin
2020-09-16 11:42:33 +02:00
Timo Kösters
dd749b8aee
fix: server keys and destination resolution when server name contains port
2020-09-16 11:01:04 +02:00
Timo Kösters
005e00e9b1
fix: remove well-known
2020-09-15 17:16:55 +02:00
Timo Kösters
1bf614b0f5
fix: remove transaction_id from pdus over federation
2020-09-15 17:02:20 +02:00
Timo Kösters
b7ab57897b
fix: sending slowness
2020-09-15 16:14:59 +02:00
Timo Kösters
0b263208e3
fix: don't panic on bad server names
2020-09-15 08:55:02 +02:00
Timo Kösters
71500b14b9
fix: send to all servers and fix media store
2020-09-15 08:17:15 +02:00
Timo Kösters
f7816b11de
feat: send messages over federation
2020-09-15 08:17:06 +02:00
Timo Kösters
9f05ef926a
fix: filter public room dir
2020-09-14 16:23:15 +02:00
Timo
d1099e9224
Update dependencies
2020-09-14 14:36:49 +02:00
Timo Kösters
aa5e9e607e
feat: download media and thumbnails over federation
2020-09-14 14:20:38 +02:00
Timo Kösters
4e44fedbcd
fix: room list over federation
2020-09-14 11:43:42 +02:00
Timo Kösters
c5313b3e8f
improvement: try out multiple servers when joining remote rooms
2020-09-14 11:00:31 +02:00
Timo Kösters
1f292c09f2
improvement: better federation joins
2020-09-14 09:29:46 +02:00
Timo Kösters
af53485d70
fix: avoid pdus without event ids
2020-09-12 23:38:52 +02:00
Timo Kösters
1f28434988
feat: hacky transactions
2020-09-12 22:42:05 +02:00
Timo Kösters
e6b1f54857
Merge remote-tracking branch 'origin/master' into federation
2020-09-12 22:23:54 +02:00
Timo Kösters
12a8c9badd
fix: join rooms over federation
2020-09-12 21:30:07 +02:00
Timo Kösters
1e8fbd8d50
Update ruma version
2020-09-08 17:32:03 +02:00
Timo Kösters
b5488f86b5
Merge pull request 'Add room upgrade.' ( #182 ) from q-b/conduit-fork:rooms_upgrade into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/182
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-09-01 13:10:30 +02:00
Timo Kösters
698e44a732
Fix /upgrade account data problems
2020-09-01 13:08:49 +02:00
Timo Kösters
515465f900
fix: make element not show "unknown user" warning
...
The 404 error for /profile in the spec says "There is no profile
information for this user or this user does not exist.", but Element
assumes every 404 is a user that does not exist.
2020-08-31 13:23:39 +02:00
Faelar
df55e8ed0b
Add room upgrade.
2020-08-31 12:01:41 +02:00
Timo Kösters
aef0c8563c
Merge pull request 'improvement: add remaining key backup endpoints' ( #201 ) from keybackup into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/201
2020-08-31 11:24:11 +02:00
Devin Ragotzy
2a63d0955a
Sort and authenticate the events from /send_join response
2020-08-30 16:08:47 -04:00
Devin Ragotzy
3b40f3d60e
Update state-res crate
2020-08-27 20:11:53 -04:00
Devin Ragotzy
f46c2d1eec
Fix review issues, move state-res to spec-comp branch
2020-08-27 20:11:53 -04:00
Timo Kösters
3f4cb753ee
improvement: add remaining key backup endpoints
2020-08-27 14:52:20 +02:00
Timo Kösters
d15b8d7c4e
Merge pull request 'feat: handle txn ids' ( #198 ) from txnids into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/198
2020-08-25 21:35:24 +02:00
Timo
4954df3cc3
feat: handle txn ids
2020-08-25 21:33:44 +02:00
Devin Ragotzy
d9a29e3e5c
Fix state for empty key route
...
Replace None with Some("") for state_key
2020-08-25 15:30:25 -04:00
Timo Kösters
6343eea417
Merge pull request 'Docker add healthcheck and mention Docker Hub image' ( #196 ) from Weasy666/conduit:master into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/196
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-08-25 09:40:08 +02:00
Daniel Wiesenberg
38ac3e42be
Docker add healthcheck and mention Docker Hub image
2020-08-25 09:02:45 +02:00
Timo Kösters
0f524955b2
Merge pull request 'fix: send notification count updates when private read receipts change' ( #194 ) from fixrr into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/194
2020-08-24 13:39:39 +02:00
Timo
0c1cc8d82b
Fix CI
2020-08-24 11:31:19 +02:00
Timo
33215d6099
fix: send notification count updates when private read receipts change
2020-08-24 10:46:20 +02:00
Timo Kösters
9aa5e99a0f
Merge pull request 'fix: put reason of redaction in the redacted event' ( #193 ) from redact into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/193
2020-08-24 10:43:05 +02:00
Timo Kösters
f0cb17d7a5
Merge branch 'master' into redact
2020-08-24 10:42:00 +02:00
Devin Ragotzy
27ffe77823
Use helper instead of route for get_public_rooms_filtered
2020-08-23 16:45:01 -04:00
Devin Ragotzy
1848f08292
Use full sorting algorithm on incoming PDU's in membership
2020-08-23 16:43:48 -04:00
Timo
3c26166fb5
improvement: device list works better
...
The only situation that isn't working yet is sending `left` events for
users when the sender leaves the room
2020-08-23 16:43:48 -04:00
Timo
972babbc79
fix: set limited to true when skipping messages in /sync
2020-08-23 16:43:21 -04:00
Devin Ragotzy
672bf4f473
Cargo lock update and a few doc additions
2020-08-23 16:43:21 -04:00
Devin Ragotzy
fe795d38ea
Replace route calling routes with helpers
...
This fixes the panic from ruma "index out of bounds"
2020-08-23 16:43:21 -04:00
Devin Ragotzy
5ccdd3694b
Add helper function for get_alias route
2020-08-23 16:43:21 -04:00
Devin Ragotzy
ea20032404
Helper for join_room_by_id route so routes aren't calling routes
2020-08-23 16:43:21 -04:00
Devin Ragotzy
64fb0374b6
Use Vec<u8> instead of string for digest bytes and add roomid_statehash
2020-08-23 16:43:21 -04:00
Devin Ragotzy
d73c6aa8ad
Add roomid_statehash tree, clean up review issues
2020-08-23 16:43:21 -04:00
Devin Ragotzy
846a0098c1
Split append_pdu -> append_pdu and build_and_append
...
Move all state event appending to append_state_pdu.
2020-08-23 16:43:21 -04:00
Devin Ragotzy
cb68bf9e0c
Use ring crate to generate StatHashes when saving stateid/statehash
2020-08-23 16:43:21 -04:00
Devin Ragotzy
c4f5a0a631
Keep track of State at event for state resolution
...
feat: first steps towards joining rooms over federation
Add state-res as a dependency of conduit
Add reverse_topological_power_sort before append_pdu
Implement statehashstatid_pduid tree for keeping track of state
Clean up implementation of state_hash as key for tracking state
2020-08-23 16:43:21 -04:00
Timo
38663228f5
fix: put reason of redaction in the redacted event
2020-08-23 16:47:27 +02:00
Timo Kösters
8e55623bde
Merge pull request 'More Federation' ( #181 ) from docs into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/181
2020-08-23 16:15:01 +02:00
Timo
7ba9263cc6
improvement: show most recent PDUs first when searching
2020-08-23 16:14:11 +02:00
Timo
366554630a
fix: account registration
2020-08-23 16:14:11 +02:00
Timo
804d097a18
fix: wake up /sync for typing events
2020-08-23 16:14:10 +02:00
Timo
c092f06068
docs: /sync
2020-08-23 16:14:10 +02:00
Timo
df936e8e7e
improvement: guests are more spec-conform
2020-08-23 16:14:10 +02:00
Timo
64789537f5
fix: device list when leaving rooms
2020-08-23 16:14:09 +02:00
Timo
4323cf5fec
improvement: device list works better
...
The only situation that isn't working yet is sending `left` events for
users when the sender leaves the room
2020-08-23 16:14:09 +02:00
Timo
f23fb32e95
fix: set limited to true when skipping messages in /sync
2020-08-23 16:14:09 +02:00
timokoesters
e457e19088
feat: search pdus
2020-08-23 16:14:08 +02:00
Timo
27d35f5ab4
docs: fix /register method
2020-08-23 16:14:08 +02:00
Timo
69a7cb5142
fix dependency version
2020-08-23 16:14:07 +02:00
Timo
3ff17f69ad
fmt
2020-08-23 16:14:07 +02:00
Timo
4be68eba76
feat: allow querying conduit's room list over federation
2020-08-23 16:14:07 +02:00
Timo
940f533d61
refactor: avoid some allocations when redacting
2020-08-23 16:14:06 +02:00
Timo
04eee089e0
feat: first steps towards joining rooms over federation
2020-08-23 16:14:06 +02:00
timokoesters
f40f1d9f75
docs: endpoint documentation
2020-08-23 16:14:06 +02:00
Timo Kösters
cfda76860b
Merge pull request 'Make default server name more obvious' ( #192 ) from spaetz/conduit:master into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/192
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-08-18 20:51:15 +02:00
Sebastian Spaeth
6b7e92ccf5
Make default server name more obvious
...
Too many people fell into the trap and left conduit.rs in the deployment
configuration, wondering why users are all listed as @conduit.rs.
Make the default server name really easy to identify and make it obvious
that this needs to be changed.
2020-08-18 19:18:10 +02:00
Timo Kösters
6191c3bd00
Merge pull request 'Fix license.' ( #190 ) from q-b/conduit-fork:license into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/190
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-08-17 14:13:19 +02:00
Faelar
0fef955b28
Fix license.
2020-08-17 13:59:35 +02:00
Timo Kösters
2d96323d5f
Merge pull request 'Update ruma' ( #184 ) from jplatte/conduit:up-ruma into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/184
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-08-13 09:04:22 +02:00
Jonas Platte
75ea0b3163
Update ruma
2020-08-12 23:42:17 +02:00
Timo Kösters
4b3d6e736f
Merge pull request 'Alpine based Docker image' ( #152 ) from Weasy666/conduit:master into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/152
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-08-12 21:42:58 +02:00
Timo
2fc99c05e1
docs: add documentation to the repo and improve layout
2020-08-12 21:17:53 +02:00
Daniel Wiesenberg
87ed132ae4
Add README in docker folder and mention docker in Conduit's README
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
7288010e55
Move additional files into dedicated folder and make build the def...
...
...fault in the compose files.
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
31c725660f
Add build option to compose file
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
7456caeefd
Add Element-Web to compose and provide extra compose files for using..
...
..Conduit behind Traefik Reverse Proxy
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
5f3cb3f926
Minor modifications to compose file and update Dockerfile comments
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
0338053774
Add ability to switch between local and remote build with build arg a...
...
...nd add env vars to docker-compose
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
ecb6416244
Image now builds and runs 🎉 Thx to the help of yzhr
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
a21858758c
Change labels from label-schema to opencontainer.image
2020-08-11 15:38:24 +02:00
Daniel Wiesenberg
624ff08a07
Initial docker files trinity
...
The image builds as is, but running it exits with: standard_init_linux.go:211: exec user process caused "no such file or directory"
2020-08-11 15:38:23 +02:00
Timo Kösters
0f1e3d8214
Merge pull request 'Make State struct constructable by lib user' ( #178 ) from DevinR528/conduit:library-mode into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/178
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-08-04 08:03:41 +02:00
Devin Ragotzy
da1c53aaef
Make State struct constructable by lib user
2020-08-03 20:56:14 -04:00
Timo Kösters
4a8bc93b1a
Merge pull request 'Send invites only if invited during the sync request' ( #176 ) from gnieto/conduit:fix/send-invite-when-needed into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/176
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-08-02 10:41:05 +02:00
Guillem Nieto
b575593647
Do not ignore db errors
2020-08-02 09:38:20 +02:00
Guillem Nieto
47abe6686e
Send invites only if invited during the sync request
...
Fixes: https://git.koesters.xyz/timo/conduit/issues/175
2020-08-02 09:24:47 +02:00
Timo Kösters
935f0e6185
Merge pull request 'feat: handle /publicRooms pagination' ( #174 ) from publicrooms-pagination into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/174
2020-07-30 22:52:23 +02:00
timokoesters
98f37302a6
feat: handle /publicRooms pagination
2020-07-30 22:51:02 +02:00
Timo Kösters
5cfda2f5d3
Merge pull request 'feat: handle inhibit_login in /register' ( #173 ) from inhibit-login into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/173
2020-07-30 22:21:09 +02:00
timokoesters
0616acbde6
feat: handle inhibit_login in /register
2020-07-30 20:52:37 +02:00
Timo Kösters
acc7b15981
Merge pull request 'refactor: put endpoints into modules' ( #172 ) from route-files into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/172
2020-07-30 19:09:43 +02:00
timokoesters
c1c62b7eb4
refactor: put endpoints into modules
2020-07-30 18:34:03 +02:00
Timo Kösters
485a24398b
Merge pull request 'Implement ignore invite when inviting user is ignored' ( #164 ) from DevinR528/conduit:ignored-list-invite into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/164
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-30 15:27:08 +02:00
Devin Ragotzy
7a70d8488f
Rebase with master and update append_pdu call
2020-07-30 09:22:51 -04:00
Devin Ragotzy
c8d7d80eb2
Fix start/end token swap left from dropped commits
2020-07-30 09:22:51 -04:00
Devin Ragotzy
99220565d4
Fix invite leave auth error by moving update_membership
2020-07-30 09:22:51 -04:00
Devin Ragotzy
25c0e75f29
Cargo fmt
2020-07-30 09:22:51 -04:00
Devin Ragotzy
8aac332b3a
Move ignore invite logic into update_member
2020-07-30 09:22:51 -04:00
Devin Ragotzy
f2fab27d81
Implement filtering invites if sender is ignored by receiver
2020-07-30 09:22:51 -04:00
Timo Kösters
100e3d6d6d
Merge pull request 'improvement: handle limit and set limited in /user_directory/search' ( #169 ) from user-dir-limit into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/169
2020-07-30 15:19:21 +02:00
timokoesters
52b1df6fd2
improvement: handle limit and set limited in /user_directory/search
2020-07-30 15:17:34 +02:00
Timo Kösters
18dcf44aa4
Merge pull request 'fix: send device list updates when user is in no rooms' ( #170 ) from fix-set-up-encryption into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/170
2020-07-30 14:46:27 +02:00
timokoesters
ce460ea159
fix: send device list updates when user is in no rooms
2020-07-30 14:09:05 +02:00
Timo Kösters
c824652de6
Merge pull request 'Fix clippy warnings and run rustfmt' ( #163 ) from DevinR528/conduit:clippy-fix2 into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/163
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-30 08:20:31 +02:00
timokoesters
b67372b11b
refactor: make all mods in database pub
...
Now they can easily export their own structs
2020-07-29 21:48:31 +02:00
Devin Ragotzy
d948f896c0
Turn append_pdu args into struct PduBuilder
2020-07-29 21:47:09 +02:00
Devin Ragotzy
1c6f211933
Create media::FileMeta to represent a file and meta data
2020-07-29 21:33:48 +02:00
Devin Ragotzy
2da48b941d
Convert all map_err -> expect when deserializing to Raw
2020-07-29 21:33:47 +02:00
Devin Ragotzy
62df9ca580
Fix all clippy warnings, shorten line len in client_server
2020-07-29 21:32:35 +02:00
Timo Kösters
3ccbd02081
Merge pull request 'Long polling and more' ( #162 ) from longpoll into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/162
2020-07-29 21:17:58 +02:00
timokoesters
e0d0fb4703
fix: only send device_one_time_keys_count when there are updates
2020-07-29 20:44:06 +02:00
timokoesters
66bc25fcd3
feat: implement /keys/changes
2020-07-29 18:05:16 +02:00
timokoesters
0693387769
improvement: more efficient /sync and only send device updates when sharing a room
2020-07-29 17:03:04 +02:00
timokoesters
310b0fcd86
fix ci
2020-07-29 13:05:38 +02:00
timokoesters
d891bbb5dc
improve: presence
2020-07-29 13:05:38 +02:00
timokoesters
05f9d927b8
fix: account data
2020-07-29 13:05:37 +02:00
timokoesters
21eb8d4fe3
fix: problems with pdu serialization
2020-07-29 12:59:40 +02:00
timokoesters
dd3dab39ae
feat: whoami route
2020-07-29 12:59:40 +02:00
timokoesters
489cbc0a93
refactor: use <_> instead of <_parameter_name>
2020-07-29 12:59:36 +02:00
gnieto
cc411c530b
Fix custom account data serialization ( #165 )
...
Stylistic change
Fix custom data serialization
Build a custom event before storing global account data
Co-authored-by: Guillem Nieto <gnieto.talo@gmail.com >
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/165
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-29 07:48:34 +02:00
Timo Kösters
c4260bde81
Merge pull request 'Timo's Conditionally emit rocket::http_verb attr macros if lib/bin' ( #157 ) from timo-make-lib into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/157
2020-07-27 20:40:30 +02:00
Devin Ragotzy
e6a1b0b66f
Add cfg_attr gate to server_server endpoints
2020-07-27 18:54:43 +02:00
Devin Ragotzy
42e0102a2a
Conditionally emit rocket::http_verb attr macros if lib/bin
2020-07-27 18:54:43 +02:00
Timo Kösters
b82fd02ee3
Merge pull request 'Implement /rooms/<room_id>/joined_members' ( #143 ) from joined_members into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/143
2020-07-27 18:22:04 +02:00
CapsizeGlimmer
4d4969862a
Implement /rooms/<room_id>/joined_members
2020-07-27 18:21:06 +02:00
Timo Kösters
fdb7b8f0f1
Merge pull request 'Implement max_request_size config option' ( #153 ) from media-size-config into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/153
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-27 18:08:50 +02:00
timokoesters
5f47cbf7dc
improvement: documentation
2020-07-27 18:06:36 +02:00
CapsizeGlimmer
8fcf8e20b8
fix MR 153 requests; cargo fmt
2020-07-27 17:50:21 +02:00
CapsizeGlimmer
fa2da9e048
Implement max_request_size config option
2020-07-27 17:49:11 +02:00
Timo Kösters
3451b10a4b
Merge pull request 'Fix CI' ( #161 ) from fix-ci into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/161
2020-07-27 08:21:34 +02:00
timokoesters
2765071201
Fix CI
2020-07-27 08:19:14 +02:00
Timo Kösters
75d91b9064
Merge pull request 'feat: encryption_disabled config option' ( #160 ) from disable-encryption-config into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/160
2020-07-27 08:15:04 +02:00
timokoesters
808a7deae3
cargo fmt
2020-07-26 22:45:10 +02:00
timokoesters
dc5fb7e33a
feat: encryption_disabled config option
...
Can be used with ROCKET_ENCRYPTION_DISABLED=true
2020-07-26 22:41:29 +02:00
gnieto
5a8705bd25
Add room tags ( #140 )
...
Merge branch 'master' into task/add-tags
Add room tagging support
Co-authored-by: Timo Kösters <timo@koesters.xyz >
Co-authored-by: Guillem Nieto <gnieto.talo@gmail.com >
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/140
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-26 22:33:20 +02:00
Timo Kösters
c3d142ad28
Merge pull request 'fix: stop /messages at to' ( #159 ) from fix-to into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/159
2020-07-26 22:21:39 +02:00
timokoesters
b7df8fe83c
fix: stop /messages at to
...
Fixes #150
2020-07-26 22:21:05 +02:00
Timo Kösters
20ab19d828
Merge pull request 'Upgrade ruma' ( #158 ) from jplatte/conduit:up-ruma into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/158
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-26 17:20:11 +02:00
Jonas Platte
09561ccea3
Upgrade ruma
2020-07-26 16:52:43 +02:00
Timo Kösters
f8544bf6e3
Merge pull request 'improvement: only remove to-device events when sure the client received them' ( #139 ) from improve-to-device-removal into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/139
2020-07-26 14:14:08 +02:00
timokoesters
16576d19cd
improvement: only remove to-device events when sure the client received them
...
To make this work, I had to remove the recommended limit of 100
to-device events per /sync
(https://matrix.org/docs/spec/client_server/latest#id72 )
2020-07-26 13:59:19 +02:00
Timo Kösters
678f33acf9
Merge pull request 'Moving to ruma-monorepo' ( #133 ) from DevinR528/conduit:ruma-mono into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/133
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-25 22:02:45 +02:00
Devin Ragotzy
87fd432527
Refactor account_data to be more similar to other endpoints
2020-07-25 15:48:12 -04:00
Devin Ragotzy
60381ddcf4
Update to latest ruma/master rev
2020-07-25 14:25:24 -04:00
Devin Ragotzy
61458536ab
Merge branch 'master' of https://git.koesters.xyz/timo/conduit into ruma-mono
2020-07-25 13:46:28 -04:00
aura
630196f0a3
Implement get_joined_rooms ( #155 )
...
whitelist /joined_rooms in sytest
Signed-off-by: Aurabindo Pillai <mail@aurabindo.in >
style: fmt
feat: implement /joined_rooms (#78 )
Signed-off-by: Aurabindo Pillai <mail@aurabindo.in >
Co-authored-by: Aurabindo Pillai <mail@aurabindo.in >
Co-authored-by: timokoesters <timo@koesters.xyz >
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/155
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-25 18:35:22 +02:00
Timo Kösters
be43b9557e
Merge pull request 'improvement: switch to stable rust' ( #151 ) from stable into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/151
2020-07-23 10:23:01 +02:00
timokoesters
d8e1248df6
improvement: switch to stable rust
2020-07-22 22:42:01 +02:00
Devin R
84d47da392
Simplify deserialization and deconstruction for Responses
2020-07-21 16:26:01 -04:00
Devin R
33bc666859
Use sync ephemeral events in sync Resposne (remove room_id)
...
Bump ruma to latest master which also fixes some server name as String
to now being of type Box<ServerName>.
2020-07-21 14:04:39 -04:00
Devin R
9a993fa7c1
Convert Pdu to a validated ruma type when calling to_*_event
2020-07-18 08:22:30 -04:00
Devin R
75959cdc10
Resolve stying review issues
2020-07-18 08:21:25 -04:00
Devin R
029c60be78
Replace to_string into_boxed_str with into
2020-07-17 19:52:04 -04:00
Devin R
59cbf202e4
Cargo.lock updated while rebasing
2020-07-17 16:05:53 -04:00
Devin R
d02685a4fd
Update to latest ruma/ruma commit
...
This will most likely be the API that is released to crates.io so it
should be fairly stable...
2020-07-17 16:04:05 -04:00
Devin R
63e23154f3
Rebase with key backups and cross signing
...
Moved back to a fork of ruma with timo's key-backup and cross-signing
branch. Ephemeral events in sync responses are EphemeralRoomEventStub
(they also have no room_id like all of sync responses events)
2020-07-17 16:04:05 -04:00
Devin R
84dcb885a7
Return correct Errors and replace panic, fix misc review issues
...
Remove EventJson todo comments, clean up Cargo.toml commented ruma deps.
2020-07-17 16:03:36 -04:00
Devin R
ddc7598870
Use ruma/ruma master
2020-07-17 16:03:36 -04:00
Devin R
24b6702047
Add to_*_event_stub methods to pdu, filter for correct event kind
...
When creating some responses (sync) an AnyRoomEventStub is needed for this
PduEvent will deserialize the JSON as a Stub event and a non stub event
when needed. Ephemeral and account events are checked to be the correct
type and filtered out if not. This requires an extra `deserialize` call
which could/should be removed.
TODO: Possibly get rid of EventJson in some places.
2020-07-17 16:03:33 -04:00
Devin R
7c38e53839
Move to depend on ruma monorepo and ruma-events0.22
2020-07-17 16:03:02 -04:00
Timo Kösters
9c095f1538
Update README, fix CI ( #148 )
...
Update 'README.md'
Update README, fix CI
Co-authored-by: timokoesters <timo@koesters.xyz >
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/148
2020-07-16 07:50:11 +02:00
Timo Kösters
b9de21949d
Update to rocket master ( #147 )
...
Merge branch 'master' into rocket
Update to rocket master
Co-authored-by: timokoesters <timo@koesters.xyz >
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/147
2020-07-14 18:23:26 +02:00
the0
469071e105
feat: implement /event ( #144 )
...
Merge branch 'master' into event-route
Event: Implement /event
Co-authored-by: the0 <theo@localhost>
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/144
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-11 14:08:37 +02:00
Timo Kösters
b03d030b71
Merge pull request 'Improve README' ( #145 ) from readme into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/145
2020-07-11 09:57:43 +02:00
timokoesters
f361cb3d39
Improve README
2020-07-11 09:55:44 +02:00
Timo Kösters
8409146415
Merge pull request 'Implement /logout/all' ( #141 ) from CapsizeGlimmer/conduit:logout-all into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/141
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-09 19:21:12 +02:00
CapsizeGlimmer
3a8efaeafa
Whitelist logout all
2020-07-07 23:09:29 -04:00
CapsizeGlimmer
76aa44ead3
Add logout/all route to main
2020-07-05 15:35:03 -04:00
CapsizeGlimmer
7c2144c6d7
Implement /logout/all
2020-07-05 15:35:03 -04:00
the0
b81939841b
feat: account deactivation ( #137 )
...
Deactivation: swap unwrap_or(false) to .ok()?
feat: implement deactivate account route
Implement error code on login to deactivated account
Deactivation: Changes requested
Add missing .clone()
Deactivation: Requested changes
Remove unneeded .filter()
Deactivation: badly named signature leads to confusion
Co-authored-by: the0 <theo@localhost>
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/137
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-05 07:48:19 +02:00
the0
67a1f21f5d
feat: implement password changing ( #138 )
...
Password: Fixes
Password: Implement logging out all devices except current
Password: Implement password changing
Co-authored-by: the0 <theo@localhost>
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/138
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-07-02 20:38:25 +02:00
Timo Kösters
e809d819ac
Merge pull request 'Key backups and cross signing' ( #132 ) from cross-signing into master
...
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/132
2020-06-26 19:01:32 +02:00
timokoesters
b83fba5c44
chore: update dependencies
2020-06-26 18:04:08 +02:00
timokoesters
54ad1fbed9
fix: CI
2020-06-26 16:26:29 +02:00
timokoesters
05f1f73e10
improvement: upgrade to sled 0.32
...
BREAKING CHANGE: old databases are not compatible anymore
2020-06-26 16:26:28 +02:00
timokoesters
24c544f650
fix: DMs show up as rooms
2020-06-26 15:16:15 +02:00
Guillem Nieto
8f06d0258a
Remove is_direct flag from Join event
...
When I was investigating the DM issue, I found that join event contained
the `is_direct` flag. According to the spec, this flag should only be
set on "invite" events, but not on join.
Other homeservers do not have this flag on join.
2020-06-26 15:16:15 +02:00
timokoesters
a49a572d76
feat: cross-signing
2020-06-26 15:16:15 +02:00
timokoesters
7031240af3
improvement: /members route
2020-06-16 23:25:15 +02:00
timokoesters
02fe030b2a
improvement: better default push rules
2020-06-16 23:25:14 +02:00
Timo Kösters
e7803e310a
Merge pull request 'fix: update rocket version' ( #127 ) from fix into master
2020-06-16 13:55:20 +02:00
timokoesters
db685e0cf7
fix: update rocket version
2020-06-16 13:53:15 +02:00
Timo Kösters
0f72bd9f32
Merge pull request 'fix: update ruma version' ( #125 ) from fix into master
2020-06-16 12:21:12 +02:00
timokoesters
13d474f6ee
fix: update ruma version
2020-06-16 12:19:58 +02:00
Timo Kösters
bc959f7634
Merge pull request 'Update 'README.md'' ( #123 ) from timo-patch-1 into master
2020-06-16 08:44:24 +02:00
Timo Kösters
853ccd6fbf
Update 'README.md'
2020-06-16 08:43:46 +02:00
Timo Kösters
b0bbc049fa
Merge pull request 'Update 'README.md'' ( #122 ) from timo-bitcoin into master
2020-06-16 08:42:13 +02:00
Timo Kösters
c6194b27a3
Update 'README.md'
2020-06-16 08:21:06 +02:00
Timo Kösters
7b23069943
Merge pull request 'Remove unused imports' ( #119 ) from PublicByte/conduit:remove-unused-imports into master
2020-06-11 22:34:49 +02:00
PublicByte
fa7612f069
refactor: remove unused imports
2020-06-11 21:06:43 +02:00
Timo Kösters
4c98079c4c
Merge pull request 'refactor: better error handling' ( #116 ) from error-handling into master
2020-06-11 15:21:23 +02:00
timokoesters
56d4742201
improvement: log bad database errors automatically
2020-06-11 14:58:44 +02:00
timokoesters
2368a90584
refactor: better error handling
2020-06-11 13:14:35 +02:00
Timo Kösters
80935c5826
Merge pull request 'fix' ( #115 ) from uiaa into master
2020-06-08 15:19:48 +02:00
timokoesters
f2a5d46628
fix
2020-06-08 15:17:58 +02:00
Timo Kösters
c681f0c494
Merge pull request 'Uiaa + Close registration + optimizations' ( #113 ) from uiaa into master
2020-06-08 14:30:45 +02:00
timokoesters
95047272e8
fix: let example config show how to use registration_disabled
2020-06-08 14:29:44 +02:00
timokoesters
176bd114a0
fix: use correct device in GET /devices
2020-06-08 14:23:42 +02:00
timokoesters
bfe5b89ba4
style: cargo fmt
2020-06-08 11:45:22 +02:00
timokoesters
588049678b
refactor: replace DeviceId with str or String
2020-06-08 11:40:19 +02:00
timokoesters
b4d65ab67d
improvement: optimize /sync response
2020-06-08 11:39:32 +02:00
timokoesters
0067f49d52
feat: close registration with ROCKET_REGISTRATION_DISABLED=true
2020-06-08 11:39:32 +02:00
timokoesters
c85d363d71
feat: user interactive authentication
2020-06-08 11:39:30 +02:00
Timo Kösters
88d091fca1
Merge pull request 'Allow client to load history on newly joined rooms' ( #111 ) from gnieto/conduit:fix/issue-39-history-load into master
...
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-06-07 11:21:53 +02:00
Guillem Nieto
cc383ac932
Cargo fmt
2020-06-06 19:48:01 +02:00
Guillem Nieto
9269f009db
Allow client to load history on newly joined rooms
...
On /sync, check if a room is a new join between `since` parameter and
now. If it's a newly joined room, set the limited flag to true, which will force
the client to load room messages via the `/messages` endpoint.
On `master`, I could not reproduce the messages not showing to others
when joining after being invited.
Fixes #39
2020-06-06 19:29:03 +02:00
Timo Kösters
4400bb93bb
Merge pull request 'fix: edus will not be removed after timeout' ( #108 ) from fix into master
2020-06-06 15:26:51 +02:00
timokoesters
8eedc12567
fix: edus will not be removed after timeout
2020-06-06 15:23:37 +02:00
Timo Kösters
8f6b446193
Merge pull request 'Switch to the ruma meta-crate' ( #106 ) from jplatte/conduit:master into master
...
Reviewed-by: Timo Kösters <timo@koesters.xyz >
2020-06-06 08:58:13 +02:00
Jonas Platte
7526fd8602
Switch to the ruma meta-crate
2020-06-05 18:42:45 +02:00
Timo Kösters
3a5b292f22
Merge pull request 'feat: heroes' ( #102 ) from fix into master
2020-06-05 10:08:47 +02:00
Timo Kösters
22a12ac6c0
Merge pull request 'Update 'README.md'' ( #104 ) from riot-fixed into master
2020-06-05 09:31:23 +02:00
timokoesters
08d19c3e0b
fix: broken dependencies
2020-06-05 09:04:51 +02:00
Timo Kösters
0a49b24322
Update 'README.md'
2020-06-04 22:51:19 +02:00
timokoesters
d404f902bf
fix: send presence too often
2020-06-04 22:36:48 +02:00
timokoesters
32da76b9a2
feat: heroes, don't send notifications every time
2020-06-04 19:05:11 +02:00
Timo Kösters
55e14cbf44
Merge pull request 'Replies load context, /kick, /ban, /unban work' ( #101 ) from fix into master
2020-06-04 16:53:40 +02:00
timokoesters
b7f7a39973
feat: kick,ban,unban user route
2020-06-04 16:51:36 +02:00
timokoesters
a8df1acdfd
feat: load replies, forward pagination
2020-06-04 13:58:55 +02:00
Timo Kösters
c655870d23
Merge pull request 'Small fixes' ( #98 ) from fix into master
2020-06-04 12:05:54 +02:00
timokoesters
168f2281fd
improvement: bundle typing events and only send on changes
...
Fixes #67 and #49
2020-06-04 11:17:36 +02:00
timokoesters
8328eeb5ac
Make sytest not fail
2020-06-04 09:53:26 +02:00
timokoesters
1c85b0fd05
remove tests in favor of sytests
2020-06-04 09:48:33 +02:00
timokoesters
b192fddf2f
fix: show device display names
2020-06-04 09:48:32 +02:00
timokoesters
325e373684
refactor: small changes
2020-06-03 22:30:51 +02:00
timokoesters
19c9e4b916
fix: room version 6
2020-06-03 22:30:50 +02:00
Timo Kösters
77318af563
Merge pull request 'Implement devices API ( #20 )' ( #97 ) from fix into master
2020-06-03 14:12:01 +02:00
gnieto
0883c44659
Implement devices API ( #20 )
...
small improvements
Cargo fmt
Simplify insert and update methods
Review feedback
Remove has_device method calls
Load all devices with a single db call
Remove device as in logout
Put all metadata on the same tree
Create userdevice key fucntion
Implement devices API
Implement all the devices endpoints. There's a couple of pending tasks:
- Integrate the "logout" logic once it lands to master (this should
remove the given device from the database).
- Track and store last seen timestamp and IP.
Co-authored-by: timokoesters <timo@koesters.xyz >
Co-authored-by: Guillem Nieto <gnieto.talo@gmail.com >
2020-06-03 14:09:50 +02:00
gnieto
ed9b544ace
Implement devices API ( #20 )
...
small improvements
Cargo fmt
Simplify insert and update methods
Review feedback
Remove has_device method calls
Load all devices with a single db call
Remove device as in logout
Put all metadata on the same tree
Create userdevice key fucntion
Implement devices API
Implement all the devices endpoints. There's a couple of pending tasks:
- Integrate the "logout" logic once it lands to master (this should
remove the given device from the database).
- Track and store last seen timestamp and IP.
Co-authored-by: timokoesters <timo@koesters.xyz >
Co-authored-by: Guillem Nieto <gnieto.talo@gmail.com >
2020-06-03 13:41:30 +02:00
Timo Kösters
720d48bd67
Merge pull request 'get_state_events_for_key_route returns the content of the requested event instead of the all event.' ( #95 ) from jbbouille/conduit:fix-get_state_events_for_key_route-returning-all-event into master
2020-06-03 10:27:13 +02:00
Jean-Baptiste Petit
1222289c75
get_state_events_for_key_route return the content of the requested event instead of the all event.
2020-06-03 09:30:34 +02:00
Timo Kösters
0a1c4f3649
Merge pull request 'Black list temporaly some room creation tests.' ( #50 ) from jbbouille/conduit:blacklist_some_creation_room_tests into master
2020-06-02 14:44:51 +02:00
Jean-Baptiste Petit
75e75c3b2f
Black list temporaly some room creation tests.
2020-06-02 13:57:41 +02:00
Timo Kösters
4c2c0e2458
Merge pull request 'Better notifications and fix redactions' ( #44 ) from notification into master
2020-06-01 22:25:24 +02:00
timokoesters
5a47c75427
fix: make redactions permanent
2020-06-01 20:58:49 +02:00
timokoesters
b519bc6962
fix: only show notifications for messages
2020-06-01 20:16:18 +02:00
Timo Kösters
3aa0c8ed25
Merge pull request 'Room visibility, aliases and redaction' ( #40 ) from alias into master
2020-05-31 10:23:04 +02:00
timokoesters
4e507ef706
feat: room visibility and aliases
2020-05-31 09:46:11 +02:00
timokoesters
9c26e22ad7
improvement: load aliases from database
2020-05-31 08:01:11 +02:00
timokoesters
18bf67748c
feat: redaction
2020-05-31 08:01:10 +02:00
Timo Kösters
16538a6c16
Update 'README.md'
2020-05-29 10:04:19 +02:00
Timo Kösters
55842a0e57
Update 'README.md'
2020-05-29 09:54:30 +02:00
Timo Kösters
25ebde5af8
Merge pull request 'fix: /register lowercases user ids' ( #28 ) from lowercase into master
2020-05-27 08:26:32 +02:00
timokoesters
ca77c79222
fix: /register lowercases user ids
...
fixes #24
2020-05-27 07:09:23 +02:00
Timo Kösters
dd80a8591d
Merge pull request 'Get device_id from body instead of auth data' ( #27 ) from gnieto/conduit:fix/create-device into master
2020-05-27 07:03:21 +02:00
Guillem Nieto
4b3b562347
Get device_id from body instead of auth data
...
Device_id was retrieved from the auth data instead of login's body and
this was causing that a new device was created on every login.
This is (I guess) provoking that some sytests are failing (for example,
"POST /login returns the same device_id as that in the request").
2020-05-26 21:06:54 +02:00
Timo Kösters
d0e5a39d1d
Merge pull request 'Move create room test into blacklist - fixes #23 ' ( #26 ) from jbbouille/conduit:remove_create_public_room_test into master
2020-05-26 16:57:11 +02:00
Jean-Baptiste Petit
43ed80c6c2
Move create room test into blacklist - fixes #23
2020-05-26 16:01:38 +02:00
timokoesters
58683585cc
improvement: show more info in public rooms list
2020-05-25 20:16:36 +02:00
Timo Kösters
63c62a4afa
Update 'README.md'
2020-05-25 17:36:54 +02:00
Timo Kösters
1096c2847b
Merge pull request 'Access control' ( #22 ) from control into master
2020-05-25 16:59:40 +02:00
timokoesters
b6c0e9bfb2
feat: access control
2020-05-25 16:40:00 +02:00
timokoesters
c8ba9dce01
feat: proper room creation
2020-05-25 16:39:58 +02:00
josias
b106d1393b
Add logout route and database methods ( #21 )
...
Condense keys
Move remove methods to remove_device
Code cleanup
Add method for removing todevice events
Remove unnecessary existence checks
Add logout route and database methods
Co-authored-by: Josias <justjosias@tutanota.com >
2020-05-24 22:10:09 +02:00
timokoesters
1014388a9c
fix: one time keys are never removed
2020-05-23 19:17:55 +02:00
timokoesters
5d6542a8a6
improvement: video link in readme
2020-05-21 18:10:04 +02:00
timokoesters
d95e8b4880
fix: problem with to-device for all devices
2020-05-21 13:52:54 +02:00
timokoesters
43478a5870
fix: send correct membership events when joining / creating rooms
2020-05-20 09:24:44 +02:00
timokoesters
8df2a1a072
improvement: add room topic to public room dir
2020-05-20 00:12:07 +02:00
timokoesters
e0fccffde0
fix: changing avatar url now sends room events
2020-05-19 23:52:02 +02:00
timokoesters
ada260bf42
fix: use png for thumbnails
2020-05-19 23:51:37 +02:00
Timo Kösters
cf91996336
Merge pull request 'fix: riot sometimes freaks out when refreshing' ( #18 ) from media into master
2020-05-19 23:02:42 +02:00
timokoesters
eb4af85765
fix: riot sometimes freaks out when refreshing
2020-05-19 22:56:28 +02:00
Timo Kösters
108d8988d8
Merge pull request 'feat: image thumbnails' ( #17 ) from media into master
2020-05-19 20:01:13 +02:00
timokoesters
d544d28b6e
feat: image thumbnails
2020-05-19 19:59:52 +02:00
timokoesters
61f4f2c716
improvement: implement GET publicRooms
2020-05-19 16:28:03 +02:00
timokoesters
821c608c6a
feat: media
2020-05-18 22:50:42 +02:00
timokoesters
42ae433b25
fix: send devicekeyupdate users in /sync
2020-05-18 12:46:06 +02:00
timokoesters
f0aed35ecf
improvement: user dir search also searches in displaynames
2020-05-18 10:29:45 +02:00
timokoesters
56dd6cb16f
improvement: get state
2020-05-18 09:22:58 +02:00
timokoesters
6215218c3c
fix: account data json
2020-05-17 22:05:43 +02:00
timokoesters
7fc71b3968
feat: end to end encryption
2020-05-17 19:56:40 +02:00
timokoesters
4fb79ebb4c
chore: update dependencies
2020-05-14 13:56:29 +02:00
timo
86e20e6401
Merge pull request 'fix: only allow valid usernames in /register' ( #14 ) from fix-register into master
2020-05-13 18:00:18 +02:00
timokoesters
d08f91d1c3
fix: only allow valid usernames in /register
2020-05-13 12:25:15 +02:00
Rudi Floren
00a9424719
feat: sytests
2020-05-11 14:44:23 +02:00
timokoesters
8e041f90dd
refactor: make cargo clippy happier
2020-05-11 12:34:48 +02:00
timokoesters
1dbde0e1c1
improvement: add option to get device id from token
2020-05-10 18:30:12 +02:00
timokoesters
ee0d6940bd
feat: presence updates
2020-05-09 21:47:09 +02:00
timokoesters
551308e9a8
Update dependencies and send displayname updates again
2020-05-08 21:13:52 +02:00
timokoesters
8f67c01efd
refactor: split database into multiple files, more error handling, cleaner code
2020-05-03 21:44:48 +02:00
timokoesters
4b191a9311
improvement: set default push rules on register
2020-05-02 09:24:09 +02:00
timo
3cd0f89729
Add /_matrix/client/r0/register/available endpoint
2020-05-01 23:25:32 +02:00
Marcel
4bc7712ee4
[ClientServer] Add /_matrix/client/r0/register/available endpoint
...
Took 1 hour 25 minutes
2020-05-01 23:17:25 +02:00
timokoesters
4ca1ada73e
update ruma
2020-05-01 21:45:55 +02:00
timokoesters
b02c568941
feat: notifications, simple permission systems
2020-05-01 20:28:13 +02:00
timokoesters
169dbe6c37
fix: send full state after joining a room
2020-04-29 12:19:09 +02:00
timo
8087ddd746
Merge pull request 'Federated room list, lots of small tweeks' ( #9 ) from federation into master
2020-04-29 10:35:38 +02:00
timokoesters
c769283953
Update readme
2020-04-29 10:27:41 +02:00
timokoesters
fd1aea7e36
Update dependencies
2020-04-29 10:27:41 +02:00
timokoesters
1cdf30f38c
Add hostname to Rocket.toml config
2020-04-29 10:27:40 +02:00
timokoesters
23cb550d00
forget rooms, load history
2020-04-29 10:27:40 +02:00
timokoesters
4cc0a07092
feat: user renaming
2020-04-29 10:27:40 +02:00
timokoesters
720cc0cffc
feat: federated room directory
2020-04-29 10:27:39 +02:00
timokoesters
120b6f4b95
Bump dependencies and fixes
2020-04-29 10:27:39 +02:00
timokoesters
873d191569
fix: http body as content when signing
2020-04-29 10:27:39 +02:00
timokoesters
1af6dd984a
More work on federation
2020-04-29 10:27:38 +02:00
timokoesters
b0d9ccdb2d
Signing, basis for federation
2020-04-29 10:27:38 +02:00
timokoesters
9b79798e56
start work on signing
2020-04-29 10:27:37 +02:00
timokoesters
80ddf80f17
work
2020-04-29 10:27:31 +02:00
timo
4d658b3952
Merge pull request 'Fix typo in password message' ( #8 ) from TheCycoONE/conduit:pwd-message-typo into master
2020-04-15 22:01:45 +02:00
TheCycoONE
6d858c39ca
Fix typo in password message
2020-04-15 21:17:33 +02:00
timokoesters
2f63888995
Update README.md
2020-04-14 22:44:45 +02:00
gnieto
fa9e127a1e
Store hashed passwords ( #7 )
...
Use if let instead of unwrap
Default to invalid password if could not calculate
Move hash password methdo and return Result
Rename get_password method
Default to empty password when no pwd is received
Store hashed passwords
Store passwords hashed with Argon2 and verify password with that stored
hash.
Co-authored-by: Guillem Nieto <gnieto.talo@gmail.com >
2020-04-14 22:25:44 +02:00
timokoesters
abcce95dd8
feat: invites, better public room dir, user search
2020-04-14 13:59:25 +02:00
timokoesters
af1def50ac
Update README.md
2020-04-12 22:29:48 +02:00
timokoesters
3debb6203c
feat: handle typing events
2020-04-12 21:12:50 +02:00
timokoesters
3b9cadeec2
feat: read receipts
2020-04-11 23:57:56 +02:00
timokoesters
ab8c2f1e5e
Rename pduid_pdus to pduid_pdu
2020-04-11 09:35:06 +02:00
timokoesters
fd829bfa0d
move client_server code into own file
2020-04-11 09:30:11 +02:00
timokoesters
040296c711
Add test support and impl dummy /read_markers
2020-04-10 13:36:57 +02:00
timokoesters
93b1d97166
Update readme and cargo.toml
2020-04-10 10:25:33 +02:00
timo
8f41a4d306
Update 'README.md'
2020-04-09 23:23:16 +02:00
timo
3f2bf208a9
Merge pull request 'Add displayname and avatar_url endpoints' ( #5 ) from MTRNord/matrixserver:accountdata into master
2020-04-09 21:26:57 +02:00
Marcel
57264f72e9
Fix avatar_url error message if not starting with mxc://
...
Took 8 minutes
2020-04-09 21:19:27 +02:00
Marcel
8bcbc983c3
Change and add Comments to the profile endpoints
...
Add missing docs
Took 9 minutes
2020-04-09 21:11:21 +02:00
Marcel
49fe5e3271
Rename userid_avatar_url to userid_avatarurl and fix debug print
...
Run cargo fmt
Took 5 minutes
2020-04-09 21:01:39 +02:00
Marcel
b1284fd509
Replace profile_* with userid_*
...
Add a missing dot in the errormessage
Require mxc:// to be present at the start of an avatar_url
Update mxc check TODO
Show displayname or avatar_url if either is available when getting the profile Endpoint
Return the correct data in case of a empty displayname or an empty avatar_url
Took 50 minutes
Took 34 seconds
2020-04-09 20:53:27 +02:00
timo
9f3368daa4
Update 'README.md'
2020-04-09 19:51:52 +02:00
timokoesters
cd55220a75
fix: room directory duplicates
2020-04-09 19:39:06 +02:00
Marcel
062c5521f0
Add displayname and avatar_url endpoints
...
Add PUT and GET /_matrix/client/r0/profile/{userId}/displayname Endpoint
Add PUT and GET /_matrix/client/r0/profile/{userId}/avatar_url Endpoint
Add GET /_matrix/client/r0/profile/{userId} Endpoint
Took 2 hours 16 minutes
2020-04-09 18:49:27 +02:00
timo
b12ae15a45
Update 'README.md'
2020-04-09 17:39:45 +02:00
timokoesters
11e75e7081
make room directory work
2020-04-09 14:39:50 +02:00
timokoesters
5ac45eac59
public rooms dir
2020-04-09 12:22:39 +02:00
timokoesters
9214a62dde
better room creation
2020-04-09 11:00:58 +02:00
timokoesters
a1b2b4e4fe
Add liberapay, change pr template
2020-04-09 00:05:37 +02:00
timo
9d40981cce
Merge pull request 'UIAA error type' ( #3 ) from jplatte/matrixserver:master into master
2020-04-08 23:41:39 +02:00
Jonas Platte
38ab7c843e
Update error type of /register route
2020-04-08 23:25:19 +02:00
Jonas Platte
c60402bf0d
Update ruma-client-api
2020-04-08 23:13:30 +02:00
timokoesters
d0920f0fa3
Add license
2020-04-08 22:28:03 +02:00
timokoesters
8557278b90
better riot.im support
2020-04-08 22:07:31 +02:00
timokoesters
fdeee7fdb5
More dummy endpoints
2020-04-08 22:04:30 +02:00
timokoesters
215a31c513
Add a few dummy endpoints to make riot progress further
2020-04-08 22:04:29 +02:00
timokoesters
ddcd423e6f
feat: random tokens, sessions, guest usernames and device ids
2020-04-08 22:04:29 +02:00
timokoesters
64223b8812
register login flow
2020-04-08 22:04:29 +02:00
timo
eb7c5b79be
Update 'README.md'
2020-04-06 19:57:04 +02:00
timokoesters
e55a63629c
feat: state event support
2020-04-06 14:33:02 +02:00
timokoesters
10bb96fcf7
feat: room joining, room based /sync responses
2020-04-06 13:52:46 +02:00
timokoesters
4d4cff7120
Allow all kinds of messages in /send
2020-04-05 23:06:43 +02:00
timokoesters
884dc2867d
Move to rocket's async branch
2020-04-05 19:54:08 +02:00
timokoesters
8b8381bcc0
New PduEvent struct
2020-04-04 11:53:37 +02:00
timokoesters
f9cfede2a8
fix: deserialize sync event body
2020-04-03 21:17:27 +02:00
timokoesters
2855d1acdf
Add README.md
2020-04-03 17:58:38 +02:00
timokoesters
fa3226898c
feat: save pdus
...
PDUs are saved in a pduid -> pdus map. roomid -> pduleaves keeps track
of the leaves of the event graph and eventid -> pduid maps event ids to
pdus.
2020-04-03 17:58:38 +02:00
timokoesters
22cca206ba
Todo: ruma signatures
...
This commit will get force pushed away later
2020-03-30 15:38:25 +02:00
timokoesters
dba6c46667
Use sled::Tree::prefix_search for deviceids
2020-03-30 13:46:18 +02:00
timokoesters
b508b4d1e7
Start work on message events
2020-03-30 00:10:44 +02:00
timokoesters
533260edd8
Add auth
2020-03-29 21:05:20 +02:00
timo
18ed991b93
Merge branch 'master' of jplatte/matrixserver into master
2020-03-29 14:30:59 +02:00
Jonas Platte
1183105f15
Make Endpoint bound work for ruma_wrapper::Ruma
2020-03-29 14:29:12 +02:00
timokoesters
73e04e71d7
Start work on event creation
2020-03-29 13:49:13 +02:00
timokoesters
744e0adfcf
Try to impl auth in ruma_wrapper
2020-03-28 23:08:59 +01:00
timokoesters
34a53ce20a
Better database structure
2020-03-28 18:50:02 +01:00
timokoesters
6d27f15516
More logging
2020-03-28 15:16:18 +01:00
timokoesters
1679da7784
RUST_LOG=info by default
2020-03-27 21:00:40 +01:00
timokoesters
6fffcecf8e
Updates
2020-03-27 21:00:10 +01:00
timokoesters
c2c18b4651
feat: database
2020-02-20 10:12:13 +01:00
timokoesters
cd777af41c
feat: simple endpoint handlers
2020-02-18 22:07:57 +01:00
timokoesters
6264628c11
Initial commit
2020-02-15 22:42:21 +01:00