Skip to content

Conversation

sandhose
Copy link
Member

  • Update mas-cli doctor to suggest the stable MAS integration
  • Document Synapse integration with the stable feature

@sandhose sandhose added the A-Documentation Improvements or additions to documentation label Aug 18, 2025
@sandhose sandhose requested a review from Copilot August 18, 2025 11:39
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the documentation and mas-cli doctor command to use the stable Matrix Authentication Service (MAS) integration with Synapse, replacing references to the experimental MSC3861 feature.

  • Updates Synapse configuration from experimental_features.msc3861 to matrix_authentication_service
  • Simplifies the MAS integration by removing the need for explicit client provisioning
  • Updates the doctor command to check the new MAS API endpoints and configuration format

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/setup/homeserver.md Updates documentation to use stable matrix_authentication_service configuration, removes client provisioning section, and adds migration guide
crates/cli/src/commands/doctor.rs Updates doctor command to check new MAS API endpoints and reference stable configuration format in error messages

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

cloudflare-workers-and-pages bot commented Aug 18, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0a5f05f
Status: ✅  Deploy successful!
Preview URL: https://a707cf88.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-stable-docs.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose requested a review from a team August 18, 2025 14:17
Comment on lines -286 to -305
// Try to reach the admin API on an unauthorized endpoint
let server_version = hs_api.join("/_synapse/admin/v1/server_version")?;
let result = http_client.get(server_version.as_str()).send_traced().await;
match result {
Ok(response) => {
let status = response.status();
if status.is_success() {
info!(r#"✅ The Synapse admin API is reachable at "{server_version}"."#);
} else {
error!(
r#"❌ A Synapse admin API endpoint at "{server_version}" replied with {status}.
Make sure MAS can reach the admin API, and that the homeserver is running.
"#
);
}
}
Err(e) => error!(
r#"❌ Can't reach the Synapse admin API at "{server_version}".
Make sure MAS can reach the admin API, and that the homeserver is running.
Copy link
Member

Choose a reason for hiding this comment

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

Why is this no longer useful? Doesn't MAS still need to use Synapse's Admin API in several cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's using a dedicated API now, and doesn't have full admin access anymore

Copy link
Member Author

Choose a reason for hiding this comment

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

This is also now just testing for the dedicated MAS API, which should cover both the 'it's unreachable' and the 'it's the wrong secret' cases

@sandhose sandhose dismissed anoadragon453’s stale review September 2, 2025 13:06

Reviewed by Olivier

@sandhose sandhose merged commit dd714ba into main Sep 2, 2025
20 checks passed
@sandhose sandhose deleted the quenting/stable-docs branch September 2, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants