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

MSC4127: Removal of query string auth #4127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

turt2live
Copy link
Member

Rendered

In line with matrix-org/matrix-spec#1700, the following disclosure applies:

I am Director of Standards Development at The Matrix.org Foundation C.I.C., Matrix Spec Core Team (SCT) member, employed by Element, and operate the t2bot.io service. This proposal is written and published with my role as a member of the SCT.

Requires #4126
Fixes matrix-org/matrix-spec#1780

@turt2live turt2live changed the title MSC: Removal of query string auth MSC4127: Removal of query string auth Apr 10, 2024
@turt2live turt2live marked this pull request as ready for review April 10, 2024 21:50
@turt2live turt2live added proposal A matrix spec change proposal identity service client-server Client-Server API kind:maintenance MSC which clarifies/updates existing spec labels Apr 10, 2024
Copy link
Member Author

Choose a reason for hiding this comment

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

Implementation requirements:

  • None, in my opinion. The MSC is not feasible to implement beyond what has already been described in the proposal itself.

@turt2live turt2live added this to Proposed for FCP readiness in Spec Core Team Backlog Apr 10, 2024
Comment on lines +8 to +9
Query string authentication becomes *removed* from the [Client-Server API](https://spec.matrix.org/v1.10/client-server-api/#using-access-tokens)
and [Identity Service API](https://spec.matrix.org/v1.10/identity-service-api/#authentication).
Copy link
Contributor

Choose a reason for hiding this comment

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

An issue that Synapse ran into with MSC2832 which removed query parameter auth for app services is that we did not want to drop support for old spec versions, but did want to follow this guidance. (matrix-org/synapse#15379 has some of the discussion.)

We ended up saying Synapse was still compatible with 1.4, but had a configuration flag for re-enabling the old behavior (disabling it by default in the name of secure defaults).


I'm not sure if I have a recommendation, but wanting to be both backwards compatible and secure by default was difficult in this situation. I guess one option would have been to only declare support for the older versions if the config flag was flipped, but I think various clients would have stopped working if we did that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client-server Client-Server API identity service kind:maintenance MSC which clarifies/updates existing spec proposal A matrix spec change proposal
Projects
Spec Core Team Backlog
  
Proposed for FCP readiness
Development

Successfully merging this pull request may close these issues.

Passing access tokens as query parameters should be deprecated
2 participants