Giter Club home page Giter Club logo

Comments (3)

mgwalker avatar mgwalker commented on August 27, 2024

Pinging @commit-dkp. I'm curious about any potential security risks associated with putting Github's IP addresses in ~/.ssh/config and the hostfile. Seems like it should be safe, so long as Github doesn't go and change all its addresses all of a sudden?

from laptop.

commit-dkp avatar commit-dkp commented on August 27, 2024

The way I read your question is essentially, what risk is there that someone might try to spoof GitHub to an 18F engineer. As long as clients are using pubkey authentication, the credentials cannot be replayed, but it is also incumbent on the engineer to not disregard warnings if the presented host key for github.com doesn't match the known host key for github.com.

At a higher-level, IP addresses and DNS hostnames are not credentials, and so trust decisions generally ought not to be based on them. Instead, cryptographic secrets like those employed at the SSH transport level are what enable clients and servers to trust each other.

It seems then that the only risk is if you were to hard-code GitHub's IP addresses somewhere, eventually those addresses will change, and all of the engineers who used the laptop script will be unable to reach GitHub until they update or remove those IP addresses. To me, this seems to be trading one temporary problem (DNS unavailability) with one permanent problem (hard-coded IP addresses).

from laptop.

mgwalker avatar mgwalker commented on August 27, 2024

trading one temporary problem with one permanent problem

This is a very useful framing. Then it makes sense to me not to hard-code the IP addresses, because anyone who uses the laptop script will likely have a heck of a time figuring out why they suddenly can't connect if/when Github's IP addresses change. It seems unlikely that people will know the script added that, or even if they once did, that they will remember.

Instead, maybe this information can go in engineering guides/docs as a note about temporarily working with Github through DNS outages.

from laptop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.