Skip to content

Feat/msc4258 fed user dir#4

Draft
mcalinghee wants to merge 6 commits intodevelop_tchapfrom
feat/msc4258-fed-user-dir
Draft

Feat/msc4258 fed user dir#4
mcalinghee wants to merge 6 commits intodevelop_tchapfrom
feat/msc4258-fed-user-dir

Conversation

@mcalinghee
Copy link
Copy Markdown

@mcalinghee mcalinghee commented Feb 17, 2026

MSC Federated User Directory :
https://github.com/tchapgouv/matrix-spec-proposals/blob/fed-user-dir/proposals/4258-federated-user-directory.md

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request includes a changelog file. The entry should:
    • Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from EventStore to EventWorkerStore.".
    • Use markdown where necessary, mostly for code blocks.
    • End with either a period (.) or an exclamation mark (!).
    • Start with a capital letter.
    • Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry.
  • Code style is correct
    (run the linters)

TODO:

  • add configuration to allow federated user search (msc4258_enabled)
  • add search token
  • perfom test on performance side
  • add search scope
  • make sure CI are passing through
  • rework selection of target homeserver
  • more results on more servers(when too many servers) if user asks for it

MatMaul and others added 4 commits August 25, 2025 14:49
* change release process to produce only python package

* remove macos13 os

* remove aarch64 architecture

* remove tar of debs packages

* add comment

* add release process for tchap

---------

Co-authored-by: Mathieu Velten <matmaul@gmail.com>
- Block federation requests and events authenticated using a known insecure signing key. See [CVE-2026-24044](https://www.cve.org/CVERecord?id=CVE-2026-24044) / [ELEMENTSEC-2025-1670](GHSA-qwcj-h6m8-vp6q). ([\element-hq#19459](element-hq#19459))

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCgAdFiEE7qit+jwB/tnnqkQqItYrhFUnGfwFAmmN9ucACgkQItYrhFUn
# Gfxn0RAAphtPC/LnSaefBHgNNKN0cnFK6N9FvuvKyEkqKYQNNoCaAGW2NzmeFfcX
# lPKCZWaABgCQUTxQWf2ck2VlGe3SwcLTUwcIjnlVs8uYP8JiTek8743Czx8T88M1
# TlotLgnH93nNudXOCXAThYbktrOZZtJM1E7AWJLUfQcUFS30ZbEgCYAmCuJ60OgL
# jn80CKHQJxw9u1Hty1G9yN2j0gLjO4KRkSuQ7jc3ouG2Fx/HQZ8H1/zX/H4niClN
# Y5VAPp0V0VN9KKV1xJXayDQ25ytAqkZvOpBnMIhHmCEFKElio3BlpjnlajsGfIqW
# 6SKwmDczjrdKwbnOFtOFUzqs2LWm9RZOo8mrdDpb4uWiZ8ANnyffajrROzRGCI8d
# 8NeOJKYl9fHZrEtAiZYPBYJNOtmW/+CtxckfOkBKri4i8ryDsXS2iER7LrMc2tyd
# oZVVDLX2l74KLw4NziSxqheQVKFShSWBxuDb2AVk15BhoMZd7YcAP+VFtmf0ZtUD
# XBaGQ+oWA4C2a8WSVHPXezSwt78sKcILH1bL6ZzUUen0k8bavjxW0xb3Db4F00D1
# P/SXHdN18XYdsjYcpC1b1zuUUVLD5wXnVj2fKAWlierokD1Y3Q6G6NREI/L4G350
# asu+ejyQrJn3VKoFtGccfGdvNlp8BKxCvWNXA/cy5042HUuSJiY=
# =/PNG
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu Feb 12 16:51:03 2026 CET
# gpg:                using RSA key EEA8ADFA3C01FED9E7AA442A22D62B84552719FC
# gpg: Can't check signature: No public key

# Conflicts:
#	.github/workflows/release-artifacts.yml
#	synapse/app/_base.py
Search results from federated servers
"""
# Use the {user_id}_{search_term} as cache key
cache_key = f"{user_id}_{search_term}"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il faudra changer cette cle de cache (pour y mettre le search token?) et peut etre changer le timeout de 1h(timeout_ms=60 * 60 * 1000)

body = parse_json_object_from_request(request)

limit = int(body.get("limit", 10))
limit = int(body.get("limit", 5))
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voir si on met ceci a 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants