Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify formats of string types in account sections #2046

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Jan 6, 2025

This should cover sections 4.7 through 4.9 of the CS API.

Pull Request Checklist

Preview: https://pr2046--matrix-spec-previews.netlify.app

@zecakeh zecakeh requested a review from a team as a code owner January 6, 2025 09:08
Signed-off-by: Kévin Commaille <[email protected]>
Comment on lines +12 to +15
anyOf:
- type: string
format: uri
- type: "null"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also changed this definition to make it clearer that a null value has a different meaning than if the field is absent.

@@ -120,6 +120,7 @@ paths:
description: The client secret used in the session with the identity server.
id_server:
type: string
format: mx-server-name
Copy link
Member

Choose a reason for hiding this comment

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

are you sure that id_server is supposed to be a server name?

AIUI, synapse accepts things with trailing paths here, which is obviously not allowed by a server name.

See also matrix-org/synapse#9802 (comment) which has a bit of historical debate about this. It's certainly questionable whether Synapse should allow trailing paths here, but changing it probably needs an MSC.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure of anything, this is what I understood from descriptions like:

The hostname of the identity server to communicate with. May optionally include a port.

But it is indeed not clear everywhere what this should look like, and looking at the PR you linked it is clear that at least Synapse allows to set a path too.

So I will revert the changes about id_server. Should we open an issue that this needs to be clarified?

Copy link
Member

Choose a reason for hiding this comment

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

Should we open an issue that this needs to be clarified?

I think that would be a great idea, yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright I reverted the id_server formats and opened #2056.

Signed-off-by: Kévin Commaille <[email protected]>
@zecakeh zecakeh requested a review from richvdh January 15, 2025 15:43
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