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

bluesky: redirect handle domains to Bluesky profiles #1487

Open
frzysk opened this issue Nov 15, 2024 · 8 comments
Open

bluesky: redirect handle domains to Bluesky profiles #1487

frzysk opened this issue Nov 15, 2024 · 8 comments
Labels
feature Features and feature requests that are specific to Bridgy Fed, not fully described by the protocols.

Comments

@frzysk
Copy link

frzysk commented Nov 15, 2024

Hi hello

I have the mastodon account @[email protected] that I bridged to https://bsky.app/profile/zy.masto.bike.ap.brid.gy/
is that normal htpps://zy.masto.bike.ap.brid.gy/ doesn't redirect to the bsky.app profile as it does with any normal *.bsky.social account?

@snarfed
Copy link
Owner

snarfed commented Nov 15, 2024

Interesting idea! You're right, we don't implement that right now. We could consider it, but it's unlikely. For one thing, it'd be very difficult to do over HTTPS; details in #744

@snarfed snarfed transferred this issue from snarfed/bridgy Nov 15, 2024
@snarfed snarfed added the feature Features and feature requests that are specific to Bridgy Fed, not fully described by the protocols. label Nov 15, 2024
@frzysk
Copy link
Author

frzysk commented Nov 16, 2024

Thanks for the answer! I thought that was automatic for any account *.bsky.social. I don't really know how the bluesky system works

@snarfed snarfed changed the title bluesky: no domain redirection? bluesky: redirect handle domains to Bluesky profiles Nov 16, 2024
@shiribailem
Copy link

I know you mentioned HTTPS, but is there a reason you can't just do a 307/308 redirect when a browser hits that address?

@snarfed
Copy link
Owner

snarfed commented Nov 26, 2024

Yeah, HTTPS is the reason. You can't make SSL certs for multi-level wildcard hostnames, eg *.*.*.ap.brid.gy, which we would need.

@shiribailem
Copy link

Ah, I see what you mean there. There is somewhat of a solution there though, but it would also lean into DNS concerns in the other thread.

Letsencrypt (and others? I don't know who else supports their ACME tools) allows wildcard certs off of a DNS query. It wouldn't be instant, but could be handled automatically.

Further to reduce load, given the format of AP names being translated, by making it a wildcard you have one cert per instance rather than per user.

https://letsencrypt.org/docs/challenge-types/#dns-01-challenge

@snarfed
Copy link
Owner

snarfed commented Nov 26, 2024

True! ...but Let's Encrypt rate limits certs to 50 per week per base domain: https://letsencrypt.org/docs/rate-limits/#limit-1

More importantly, this would be a lot of new complexity to build and maintain just to redirect bridged hostnames to Bluesky profiles. I'm happy to leave this open to track!...but honestly it's probably not likely any time soon.

@shiribailem
Copy link

Honestly that's the kind of thing I figured would be queued up anyways, as in you would bridge and if there was no cert for your domain it would just be added to the queue to eventually get done.

Not going to pretend it's trivial though.

One other consideration comes to mind potentially, for cases of instances owners that approve of the bridge: maybe create an interface/instructions where we can forward our own subdomains to the bridge and potentially handle the https and certificates ourselves?

ie. I create a subdomain wildcard cert for *.bsky.foggyminds.com and add appropriate entries to have bluesky requests go to the bridge, and then on my end I just deploy some nginx or php bits to create redirects for those accessing with their browser?

Not a perfect solution, but a nice way to provide a partial solution and a nice little customization perk. It would just involve a way to tell the bridge that this domain maps to this instance (maybe as little as a TXT record? or maybe just a txt file at the root?), as well as some documentation and some code to handle that translation.

@shiribailem
Copy link

Nevermind finally looked into it enough to realize it really does mandate a single DNS entry per account which is ridiculous...

Also looked up and learned that you already basically do that lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features and feature requests that are specific to Bridgy Fed, not fully described by the protocols.
Projects
None yet
Development

No branches or pull requests

3 participants