Comments (3)
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.
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.
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)
- Is there a more robust way to automatically fetch the latest rules? HOT 1
- Install script fails upon first prompt HOT 6
- Enhancement: run command to disable Sketch versioning HOT 1
- Add Jekyll? HOT 2
- seekret-rules for cloud.gov tech
- Move to a new CI/CD system HOT 1
- Script fails on Xcode HOT 2
- Xcode command line tool instructions HOT 5
- Fish support HOT 2
- nvm install syntax is incorrect
- Migrate to CircleCI 2.0 HOT 1
- Minor issues with script (invalid option error, permissions)
- Remove GitHub desktop app
- Update README and script comments on rbenv vs. chruby HOT 1
- Script fails on zipimport error while installing Python HOT 1
- Why I didn't use these tools HOT 19
- Use a maintained tool for preventing checking secrets into version control HOT 19
- seekrets-install BIN_LOCATION should be an option
- use rbenv instead of chruby for consistency with repo code HOT 4
- reduce scope/steps in the laptop script HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laptop.