For critical infrastructure though, outsourcing is the wrong move. This is because the consequences of failure are borne by society instead of the corporation.
If Americans were banned from all social media tomorrow, realistically there wouldn't be mass rioting and civil unrest. Contrast if you found out tomorrow that the USA only has 7 days worth of food for all its citizens, and no more is coming. Are you going to start killing people to boost your odds of survival?
Labor is far from the only input into agriculture. The US’ advantages in arable land acreage, agricultural technology, and chemical inputs seem sufficiently efficient that the US is (and long has been) a net exporter of agricultural commodities.
One guy in the air-conditioned cab of his fancy tractor hauling his 40-meter-wide planter or 186-liter-per-second combine [0] can do the work of hundreds of his manual-farmhand counterparts without even taking out his earbuds.
Do you imagine that you would start “killing people to boost your odds of survival”?
[0] https://www.deere.ca/en/products/planting-equipment/db120-48... and https://www.deere.com/en/harvesting/x-series-combines/
My point is the "vast quantity of good land" the USA has would be useless in a short-term famine scenario. It takes months to grow food. If there's a scenario in which the USA has outsourced its entire food supply overseas, and that food supply is cut off, unless there's a 3-4 month stockpile of food for every person in America and the USA figures out how to restart its entire farming system in a week, people are dying en masse.
Even if that occurs, there's still going to be riots like COVID-style runs on toilet paper.
That's why food self-sufficiency is critical to national security.