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

Subdomain per protocol-level server? #711

Closed
snarfed opened this issue Nov 6, 2023 · 4 comments
Closed

Subdomain per protocol-level server? #711

snarfed opened this issue Nov 6, 2023 · 4 comments
Labels

Comments

@snarfed
Copy link
Owner

snarfed commented Nov 6, 2023

Right now, in federated protocols, server admins can block/defederate individual other servers. We don't currently expose individual servers across the bridge, though, so if eg a fediverse admin doesn't like one specific ATProto PDS and wants to defederate from it, they can't. Their only option is to block the bridge as a whole. It'd be nice to expose servers across the bridge so that admins can defederate them individually.

The difficulty is that this would make user ids even bigger and more unweildy. For example, Bluesky user alice.org currently gets the fediverse handle @[email protected]. With this, we'd need to make her handle something like @[email protected], where pds.net is her ATProto PDS (server). Ugh.

@snarfed snarfed added the now label Jan 10, 2024
@snarfed
Copy link
Owner Author

snarfed commented Jan 10, 2024

The added difficulty here is that DNS servers generally don't support multiple levels of wild cards like we'd need to serve arbitrary sub-sub-subdomains like this without enumerating and creating explicit DNS records for all of them.

So, realistically, we'd need to customize and run our own DNS server that handles multiple levels of wildcards. Ugh.

@snarfed
Copy link
Owner Author

snarfed commented Jan 10, 2024

Huh, I misunderstood DNS wildcards, they actually can serve multiple levels. More: https://blog.cloudflare.com/wildcard-proxy-for-everyone/

The catch is that we'd also need an SSL cert for each subdomain we want to serve WebFinger and AP actor ids on, or at least each wildcard level, and SSL certs don't support more than one level of wildcards.

@snarfed
Copy link
Owner Author

snarfed commented Jan 10, 2024

Oh, also, and more importantly, this would mean that Bluesky users' bridged fediverse handles would change every time they migrate to a new PDS. That kinda seems like a showstopper.

@snarfed
Copy link
Owner Author

snarfed commented Jan 17, 2024

^ Added to the docs, https://fed.brid.gy/docs#instance-subdomains . Tentatively closing, at least for now. 😢

@snarfed snarfed closed this as completed Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant