isaacs / github

Just a place to track issues and feature requests that I have for github
2.21k stars 129 forks source link

IPv6 support for Github Pages #354

Closed stephengroat closed 3 years ago

stephengroat commented 9 years ago

Are there any plans to implement IPv6 support for Github Pages? It's a great hosting solution (I'd even be willing to pay a few $ a year to keep having it), but the lack of IPv6 support is kinda a bummer.

toreanderson commented 7 years ago

This issue has been resolved:

$ host toreanderson.github.io
toreanderson.github.io is an alias for sni.github.map.fastly.net.
sni.github.map.fastly.net has address 151.101.85.147
sni.github.map.fastly.net has IPv6 address 2a04:4e42:14::403

Cf. https://toreanderson.github.io/2017/07/30/update-ghp-fastly-ipv6.html

kumy commented 7 years ago

I can confirm too.

vanaf commented 6 years ago

Still missing AAAA records there https://help.github.com/articles/setting-up-an-apex-domain/#configuring-a-records-with-your-dns-provider

tambry commented 6 years ago

I'm afraid the issue is back. Someone has broken IPv6 support.

Example:

[root@me ~]# host ibm.github.io
ibm.github.io is an alias for sni.github.map.fastly.net.
sni.github.map.fastly.net has address 185.199.108.153
sni.github.map.fastly.net has address 185.199.109.153
sni.github.map.fastly.net has address 185.199.110.153
sni.github.map.fastly.net has address 185.199.111.153
tekrobotics commented 6 years ago

We were testing https security with the SSL Server Test and saw the same IPv4 addresses as above. IPv6 support seems to be broken at the moment. Using host returns the same confirmation.

tambry commented 6 years ago

GitHub's response:

Thanks for writing in! The behavior you noticed is expected. This past week, we moved to an IPv4-only IP space to support HTTPS for GitHub Pages sites with custom domains:

https://blog.github.com/2018-05-01-github-pages-custom-domains-https/

Support for IPv6 was an undocumented feature, and one that isn't supported by GitHub itself, but we removed IPv6 support on purpose over this last week.

Having said that, we can definitely see what you mean when it comes to providing support for IPv6. While I can't make any promises as to if or when we'll officially support it in the future, I'll let the team know you'd like to see us provide official support for IPv6.

modonovan commented 6 years ago

Hi team, I'd love to resurrect this discussion (about re-enabling IPv6 on custom domains for GitHub pages sites. I'm a bit of a noob to GitHub if I'm totally honest and apart from doing the odd clone, add, commit, push from time to time I haven't really used the functionality that wisely. Recently though, I was at a meetup in Dublin where Anna Wilson (https://twitter.com/yesitsanna) was giving a talk. It was very much a seed change for me. I have been a hobbiest web developer over the years for the likes of clubs and societies and that kind of thing. Mostly hosted on either my own server using wordpress or similar. Anna's talk was extremely poignant in that it spoke of the real life challenges of doing this today and how it was high time to utilise something like GitHub pages to host your sites. The basic theory was that GitHub really knows where it's at in terms of "bug fixes", "security" and "best practice". With Jekyll integration in GitHub pages I've started to really agree. So much so that I recently migrated my test site (a personal blog) to GitHub pages. I migrated my DNS to point at it and all was seeming perfect until I started to notice some cert errors/notifications in Chrome. Ultimately it was due to the fact that the letsencrypt.org cert could not be attached to my site due to the presence of AAAA records in my DNS.

I've since corrected that to remove them but I have to admit I feel it's a backward step. I was using letsencrypt on my own host and all was working with both IPv4 and IPv6.

To that end I am seeking some support from the Github team to relaunch the availability of IPv6 (with https support) on GitHub pages.

Is there anyone in agreement with me on this?

Thanks in advance,

Mick

tambry commented 6 years ago

@modonovan Their old IPv6 CDN address still works for HTTP-only – just add 2a04:4e42::403 to your domain. No problems with HTTPS either.

modonovan commented 6 years ago

@tambry Cheers dude, is that an "official" way to get things working or does it "just work" using this address do you know?

tambry commented 6 years ago

@modonovan It just works, definitely not official. Quick correction to my previous comment – it only works for non-HTTPS. For HTTPS support GitHub uses their own IPv4 address space behind Fastly, and the old IPv6 addresses don't point to the newer infra, which is capable of serving HTTPS certificates for custom domains. But GitHub Pages itself still can serve using HTTPS over IPv6, it just returns *.github.io certificates. Should really only be a matter of GitHub adding their IPv6 address space to the newer CDN infra and documenting it (they've already got their IPv6 prefixes since forever).

Their own custom load balancer supports IPv6 as far as I can tell, but that seems to be only used for everything besides their CDN endpoints and GitHub Pages.

FYI, one can reach GitHub's CDN domains (e.g. assets-cdn.github.com) through [2a04:4e42::200:403], [2a04:4e42::400:403], [2a04:4e42::600:403] (those should be Anycast addresses). Correct certificates are served, so it just works. Here are my hosts file entries for them:

2a04:4e42::133 assets-cdn.github.com
2a04:4e42::133 camo.githubusercontent.com
2a04:4e42::133 cloud.githubusercontent.com
2a04:4e42::133 gist.githubusercontent.com
2a04:4e42::133 avatars.githubusercontent.com
2a04:4e42::133 avatars0.githubusercontent.com
2a04:4e42::133 avatars1.githubusercontent.com
2a04:4e42::133 avatars2.githubusercontent.com
2a04:4e42::133 avatars3.githubusercontent.com
2a04:4e42::133 marketplace-images.githubusercontent.com
2a04:4e42::133 user-images.githubusercontent.com
2a04:4e42::133 raw.githubusercontent.com
modonovan commented 6 years ago

I see that's what I thought. Any chance we can lobby Github folks to maybe seek to make this officially supported and add the addresses behind Fastly inline with their IPv4 space?

ydahhrk commented 5 years ago

Is it just me or this problem is no longer exclusive to Github Pages?

me@Potato:~$ host -t AAAA github.com
github.com has no AAAA record
arjenpdevries commented 5 years ago

Not just you:

$ host -t AAAA github.com
github.com has no AAAA record
vivienfr commented 4 years ago

$ host -t AAAA github.com github.com has no AAAA record

Saiv46 commented 4 years ago

GitHub still not have IPv6 support, emailing them about that

copperwiring commented 4 years ago

Still no support :/

drakontas commented 4 years ago

Here's another vote for IPv6 support for GitHub Pages. I'd like to make a site accessible to customers who are coming from IPv6-only connections. Is there a timeline or this support that the team can share?

MaciejKucia commented 4 years ago

GitHub is not accessible in AWS egress-only internet gateway :(

erkinalp commented 4 years ago

egress-only internet gateway

Did you read the words you have written? Egress means outwards. It will indeed not work.

MaciejKucia commented 4 years ago

Hello @erkinalp . Direction depends from which side is your perspective. Please get familiar with https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway.html

Martin-Luther commented 3 years ago

IPv6 People !!! What are you waiting for !??

dR3b commented 3 years ago

It is the year 2020! Welcome to the stone age!

sgryphon commented 3 years ago

Quite crazy. It is 2020, with this issue having been open for 5 years. About 30% of the Internet is now on IPv6, so quite a significant amount.

The HOSTS entries above for some of the sites (e.g. raw.githubcontent.com) work, because the underlying CDN now supports IPv6, so it should be simple (trivial) for GitHub to add that DNS entry for github.map.fastly.net

The main site, github.com, does not use Fastly, but should also be pretty easy to add IPv6 to (or use the CDN to reverse proxy).

miyurusankalpa commented 3 years ago

The main site, github.com, does not use Fastly, but should also be pretty easy to add IPv6 to (or use the CDN to reverse proxy).

Adding a reverse proxy to github.com maybe not as simple as it handles git traffic as well. However they already have a reverse proxy setup at AWS for the Asian countries and AWS have pretty good IPv6 support. https://www.whatsmydns.net/#A/github.com

Github Engineering team seems to not care about IPv6.

If they cared, they could have enable IPv6 for static content at fastly as you mentioned. If they cared, they could have use dual stack s3 urls for github releases. If they cared, they could have give IPv6 address for github pages. (it uses fastly with their own IPs) If they cared, they could have enable IPv6 for github actions at azure.

wenyuanyu commented 3 years ago

It is 2021 now. +1 for the ipv6!

Neustradamus commented 3 years ago

To follow this missing feature ticket.

jessuppi commented 3 years ago

BTW if anyone is using GitHub Pages as a mirrors location for your servers to pull code from, you can wget --inet4-only or curl --ipv4 in your scripts... this is what we are doing in SlickStack:

Bash functions: https://github.com/littlebizzy/slickstack/blob/master/bash/ss-functions.txt GitHub Pages (mirrors): https://mirrors.slickstack.io/

ingo-h commented 3 years ago

it's surprising that such a professional and popular site still doesn't support ipv6 in 2021. I need it for my ipv6 only network. Please enable it.

Neo-Desktop commented 3 years ago

FYI just checked neither github.com nor github.io have AAAA records.

Not sure why this is acceptable at all

Saiv46 commented 3 years ago

Cloudflare Pages supports IPv6, I think this can be used as alternative to Github Pages.

miyurusankalpa commented 3 years ago

According to this tweet Github has enabled IPv6 on some of their fastly resources.

As they seem use the same IP format as IPv4, it is easy to deduct the IPv6 address for Github Pages.

185.199.108.153  - >  2606:50c0:8000::153
185.199.109.153  - >  2606:50c0:8001::153
185.199.110.153  - >  2606:50c0:8002::153
185.199.111.153  - >  2606:50c0:8003::153

I checked and SSL seems to work for the custom domains with IPv6 address. 🙌 (This was the issue for 2a04:4e42::133 IPs)

They have not updated the documentation or added IPv6 to github.io domains.

mathiashro commented 3 years ago

Great news, thank you for sharing. Working here as well. Finally... are we going to close this issue?

tkw1536 commented 3 years ago

Until the support for it becomes official (read: the documentation is updated to include it) I don't think this issue should be closed.

See also this HackerNews comment.

TPS commented 3 years ago

They have not updated the documentation or added IPv6 to github.io domains.

I've added the WIP label for now, but don't think closing the issue is correct 'til it's completed.

TPS commented 3 years ago

Per https://github.blog/changelog/2021-09-30-enabling-ipv6-support-for-github-pages/, this is now universally implemented. Y'all confirm?