WIP: chore: No Auth Media, No UnAuth Profiles #2557

Draft
Aranjedeath wants to merge 1 commit from aranje/delete-unauthenticated-profile-media into main
Owner

This pull request removes support for unauthenticated profile requests, the config option for this, and marks that config option deprecated, since we no longer support any unauthenticated media anyway.

Pull request checklist:

  • This pull request targets the main branch, and the branch is named something other than
    main.
  • I have written an appropriate pull request title and my description is clear.
  • I understand I am responsible for the contents of this pull request.
  • I have followed the [contributing guidelines][c1]:
    • My contribution follows the [code style][c2], if applicable.
    • I ran [pre-commit checks][c1pc] before opening/drafting this pull request.
    • I have [tested my contribution][c1t] (or proof-read it for documentation-only changes)
      myself, if applicable. This includes ensuring code compiles.
    • My commit messages follow the [commit message format][c1cm] and are descriptive.
This pull request removes support for unauthenticated profile requests, the config option for this, and marks that config option deprecated, since we no longer support any unauthenticated media anyway. **Pull request checklist:** <!-- You need to complete these before your PR can be considered. If you aren't sure about some, feel free to ask for clarification in #dev:continuwuity.org. --> - [x] This pull request targets the `main` branch, and the branch is named something other than `main`. - [x] I have written an appropriate pull request title and my description is clear. - [x] I understand I am responsible for the contents of this pull request. - I have followed the [contributing guidelines][c1]: - [x] My contribution follows the [code style][c2], if applicable. - [x] I ran [pre-commit checks][c1pc] before opening/drafting this pull request. - [x] I have [tested my contribution][c1t] (or proof-read it for documentation-only changes) myself, if applicable. This includes ensuring code compiles. - [x] My commit messages follow the [commit message format][c1cm] and are descriptive.
chore: No Auth Media, No UnAuth Profiles
Some checks failed
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 4s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m35s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m40s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m48s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 7s
9190219bd0
nex requested changes 2026-11-20 12:46:07 +00:00
nex left a comment

The spec says profile requests are unauthenticated, so the fact we can even optionally require auth is dubious, and mandatorily requiring auth is a then spec violation. I think someone needs to make an MSC if we want to go down that route (since requiring auth for profile lookups is probably a good idea anyway) - I'll make a spec issue later if nobody wants to write that proposal.
This is different to when we removed unauthenticated media, because we did so in a way that was complaint with the spec. This seems to be deliberately violating it.

Removing the config option for unauth media is probably a good shout for maintenance anyway

The spec says profile requests are unauthenticated, so the fact we can even optionally require auth is dubious, and mandatorily requiring auth is a then spec violation. I think someone needs to make an MSC if we want to go down that route (since requiring auth for profile lookups is probably a good idea anyway) - I'll make a spec issue later if nobody wants to write that proposal. This is different to when we removed unauthenticated media, because we did so in a way that was complaint with the spec. This seems to be deliberately violating it. Removing the config option for unauth media is probably a good shout for maintenance anyway
Owner

I'm opposed to removing unauthed profiles, for the record

I'm opposed to removing unauthed profiles, for the record
Author
Owner

Yeah I don't assume this would be merged, but this seems like an awful spec oversight if we're trending the direction of requiring authentication. There's work in motion to allow for only revealing profile information to users with shared rooms, which is predicated on an authenticated request. As the community/safety forward software, it seems like a good thing to lay the groundwork for.

Yeah I don't assume this would be merged, but this seems like an awful spec oversight if we're trending the direction of requiring authentication. There's work in motion to allow for only revealing profile information to users with shared rooms, which is predicated on an authenticated request. As the community/safety forward software, it seems like a good thing to lay the groundwork for.
Owner

@ginger wrote in #2557 (comment):

I'm opposed to removing unauthed profiles, for the record

I'm not opposed to the idea given it opens up more possibilities for access control restrictions, but I'd prefer there was at least an MSC first

@ginger wrote in https://forgejo.ellis.link/continuwuation/continuwuity/pulls/2557#issuecomment-40464: > I'm opposed to removing unauthed profiles, for the record I'm not opposed to the idea given it opens up more possibilities for access control restrictions, but I'd prefer there was at least an MSC first
Member

Also IMO this needs a changelog, even if it was merged. And yeah, MSC would be ideal.

Also IMO this needs a changelog, even if it was merged. And yeah, MSC would be ideal.
Owner

Yeah we don't do no-changelogs anymore except for exceptional things

Yeah we don't do no-changelogs anymore except for exceptional things
Aranjedeath changed title from chore: No Auth Media, No UnAuth Profiles to WIP: chore: No Auth Media, No UnAuth Profiles 2026-11-29 15:58:05 +00:00
Some checks failed
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 4s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Required
Details
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m35s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m40s
Required
Details
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m48s
Required
Details
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 7s
Required
Details
This pull request has changes conflicting with the target branch.
  • conduwuit-example.toml
  • src/core/config/mod.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'aranje/delete-unauthenticated-profile-media:aranje/delete-unauthenticated-profile-media'
git switch 'aranje/delete-unauthenticated-profile-media'
Sign in to join this conversation.
No reviewers
nex
No milestone
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity!2557
No description provided.