thegreenwebfoundation / admin-portal

The member portal and platform powering The Green Web Foundation
Apache License 2.0
24 stars 11 forks source link

Add github's IP ranges for daily import #215

Open mrchrisadams opened 2 years ago

mrchrisadams commented 2 years ago

Github publish their IP ranges via an API, just like how AWS, Google and Azure do.

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses https://docs.github.com/en/rest/reference/meta

If we had an importer like we have with AWS, any github hosted site would be able to show the commitments github has pointed to, and ideally whatever information we can point to about their transition to renewable energy.

https://github.blog/2021-04-22-environmental-sustainability-github/

This would be a good start - having the scoped breakdown of carbon emissions would be even better as they are members of the Green Software Foundation, so presumably this data exists, and the parent company is generally pretty good on reporting its direct emissions.

mrchrisadams commented 2 years ago

I should probably link to the other issues too:

This here was the one where we first started doing regular imports of the IPs that AWS uses: https://github.com/thegreenwebfoundation/admin-portal/pull/64

This here is the issue where we talk about how wonderful it would be if only some nice nerd at Azure would do the same for Microsoft's cloud, so we can refer users to the sustainability work going on there: https://github.com/thegreenwebfoundation/admin-portal/issues/189

And for completism, here's the one for google cloud, where there's a bit of discussion about how you could start figuring out the likely location-based carbon intensity of compute per hour based on the region: https://github.com/thegreenwebfoundation/admin-portal/issues/208

mrchrisadams commented 6 months ago

This is going to stay open until we have github's IP ranges imported.

I'm happy to help provide pointers on how to do this, but I won't have the time to implement this myself, ahead of other work.