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

Document *not* using usernames in Actor @id's #468

Open
ThisIsMissEm opened this issue Sep 20, 2024 · 5 comments
Open

Document *not* using usernames in Actor @id's #468

ThisIsMissEm opened this issue Sep 20, 2024 · 5 comments
Labels
Needs Primer Page Needs a page in the ActivityPub primer Next version Normative change, requires new version of spec

Comments

@ThisIsMissEm
Copy link

Instead of having your actor @id be something like https://example.social/users/jane_doe you should instead prefer to use something that is a stable identifier, for instance the database record ID, so https://example.social/users/c7ea4313-91eb-437f-bf15-6074bd7b5f40 or https://example.social/users/123

I was certain we already had a primer page for this, but we've not been able to find it, as such I believe we do need a primer page.

@ThisIsMissEm
Copy link
Author

@evanp per discussion

@trwnh
Copy link

trwnh commented Sep 22, 2024

Related #342

@evanp
Copy link
Collaborator

evanp commented Oct 4, 2024

I think this is also an issue with object ids, like https://social.example/users/evanp/note/1.

I think we have a page about object identifiers at https://www.w3.org/wiki/ActivityPub/Primer/Object_identifiers, and it would be a good place to document this particular issue.

Another related topic is whether dereferencing a URI and getting a redirect is OK, what should consumers do, etc.

If we have redirect support, it makes the immutability of IDs less important.

@evanp
Copy link
Collaborator

evanp commented Oct 4, 2024

@snarfed notes that we also need to note that if preferredUsername changes, remote systems need to update; they should not treat this as immutable just because it is on their own system.

@evanp
Copy link
Collaborator

evanp commented Oct 4, 2024

The mutability and immutability of preferredUsername is also covered in the ActivityPub + WebFinger report, since it matters quite a bit for Webfinger.

@evanp evanp added Needs Primer Page Needs a page in the ActivityPub primer Next version Normative change, requires new version of spec labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Primer Page Needs a page in the ActivityPub primer Next version Normative change, requires new version of spec
Projects
None yet
Development

No branches or pull requests

3 participants