Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

require_auth_for_profile_requests not spec compliant #9006

Open
afranke opened this issue Jan 1, 2021 · 2 comments
Open

require_auth_for_profile_requests not spec compliant #9006

afranke opened this issue Jan 1, 2021 · 2 comments
Labels
A-Spec-Compliance places where synapse does not conform to the spec O-Occasional Affects or can be seen by some users regularly or most users rarely S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Other Questions, user support, anything else.

Comments

@afranke
Copy link

afranke commented Jan 1, 2021

In the spec, GET on /profile doesn’t require auth.
Synapse may in some configurations. There are several problems with that.

“Requires auth” is a binary thing in the spec, as far as I can see. That means that you should either require it or not, but you can’t depend on a server configuration option for that. Anyway I don’t see how a client could guess whether a given server has the option enabled or not, so effectively having the option means client should consider it is enabled and auth is required in all cases, even when that’s not the case.

There is also a comment for that configuration option that states that “this setting is of limited value if federation is enabled on the server” because “profile data is also available via the federation API”.

Considering all of the above, I suggest to remove the configuration option. If the behaviour of it enabled is actually desired, and I don’t think it is, then please make it consistently behave that way and not depend on an option, and get the spec changed to match that as well.

@kescherCode
Copy link
Contributor

kescherCode commented Jan 2, 2021

Some homeserver admins don't want to expose profile information to unauthenticated clients, others don't care. A client does not have to guess whether it's enabled or not, it can simply check. If it's unauthorized, tough luck, no profile information for you.

But yes, the spec should be adjusted to account for that.

@tulir
Copy link
Member

tulir commented Jan 7, 2021

matrix-org/matrix-spec-proposals#2949 is a proposal to make the current behavior spec compliant

@clokep clokep added the A-Spec-Compliance places where synapse does not conform to the spec label Jan 11, 2021
@MadLittleMods MadLittleMods changed the title require_auth_for_profile_requests not spec compliant require_auth_for_profile_requests not spec compliant Dec 8, 2022
@DMRobertson DMRobertson added S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Other Questions, user support, anything else. O-Occasional Affects or can be seen by some users regularly or most users rarely labels Dec 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Spec-Compliance places where synapse does not conform to the spec O-Occasional Affects or can be seen by some users regularly or most users rarely S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Other Questions, user support, anything else.
Projects
None yet
Development

No branches or pull requests

5 participants