feat: Support advertising a policy server public key in well-known

# Conflicts:
#	src/api/client/well_known.rs
#	src/core/config/mod.rs
This commit is contained in:
timedout
2026-04-28 15:59:44 +01:00
parent 47051af392
commit 5f9cc83b18
4 changed files with 27 additions and 0 deletions
+5
View File
@@ -21,6 +21,7 @@ use regex::RegexSet;
use ruma::{
OwnedRoomId, OwnedRoomOrAliasId, OwnedServerName, OwnedUserId, RoomVersionId,
api::client::{discovery::discover_support::ContactRole, rtc::RtcTransport},
serde::Base64,
};
use serde::{Deserialize, Serialize, de::IgnoredAny};
use url::Url;
@@ -2175,6 +2176,10 @@ pub struct WellKnownConfig {
/// Will be included alongside any contact information
pub support_page: Option<Url>,
/// The ed25519 public key for the policy server available at this server's
/// name. Must be unpadded base64.
pub policy_server_public_key: Option<Base64<ruma::serde::base64::Standard>>,
/// Role string for server support contacts, to be served as part of the
/// MSC1929 server support endpoint at /.well-known/matrix/support.
///