VOOZH about

URL: https://thenewstack.io/no-more-mr-nice-guy-github-demands-developers-use-2fa/

⇱ No More Mr. Nice Guy: GitHub Demands Developers Use 2FA - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-03-10 09:12:22
No More Mr. Nice Guy: GitHub Demands Developers Use 2FA
sponsor-solo-io,sponsored-topic,
Security / Software Development

No More Mr. Nice Guy: GitHub Demands Developers Use 2FA

GitHub has decided that starting on March 13, GitHub users must begin enrolling in two-factor authorization (2FA).
Mar 10th, 2023 9:12am by Steven J. Vaughan-Nichols
👁 Featued image for: No More Mr. Nice Guy: GitHub Demands Developers Use 2FA
Featured image via Unsplash.

Last year, GitHub’s CSO Mike Hanley announced that all users who upload code to the site must enable one or more forms of two-factor authentication (2FA) by the end of 2023… or else. Many security problems later, GitHub has decided it’s not going to wait. Starting on March 13, GitHub users must begin enrolling in 2FA.

I can only say this: “It’s about time!”

In case you’ve been napping for the last few years, software supply chain attacks have become commonplace. One of the easiest ways to protect your code is to use 2FA. 2FA is simple.

Solo.io, the modern API infrastructure company, delivers application networking from the edge to service mesh enabling enterprises to adopt, secure, and operate innovative cloud native technologies.
Learn More
The latest from Solo.io

It’s Complicated

Under the hood, 2FA is complicated. It relies on one of three standards: HMAC-based One Time Password (HOTP). Time-based One-Time Password (TOTP), or the FIDO Alliance‘s  FIDO2 Universal 2nd Factor (U2F) standard. But you don’t need to worry about that as a developer unless security, authentication, and identity are your thing. You just need to, as Hanley put it, “enable one or more forms of 2FA.”

Is that so hard? I guess it is. While I haven’t been able to lay my hands on any 2023 numbers, in 2022, only a minority of GitHub users were using 2FA.

Fortunately, even if you’re allergic to 2FA, GitHub is making 2FA idiot-proof. Well, or as idiot-proof as security ever gets.

  1. Second-factor validation after 2FA setup: Users who have set up 2F) on GitHub.com will now receive a prompt after 28 days to confirm their 2FA settings. This will help prevent account lockout caused by misconfigured authenticator applications. If you’re unable to get it to work, you can reset your 2FA setup without being locked out of your account.
  2. Enroll second factors: It’s important to have multiple accessible 2FA methods to ensure account access. Users can now register both an authenticator app (TOTP) and an SMS number on their account simultaneously. Although we recommend using security keys and TOTP apps over SMS, enabling both options reduces the risk of account lockout by providing another accessible 2FA option.
  3. Choose your preferred 2FA method: Users can now set their preferred 2FA method for account login and sudo prompt. The preferred method will be used first during sign-in, and users can choose between TOTP, SMS, security keys, or GitHub Mobile. We strongly recommend using security keys and TOTPs whenever possible, as SMS-based 2FA is no longer recommended under NIST 800-63B. The most secure methods widely available are those that support the WebAuth authentication standard, such as physical security keys and personal devices that support technologies like Windows Hello or Face ID/Touch ID.
  4. Unlink your email in case of 2FA lockout: Previously, locked-out users had difficulty creating a new account using their preferred email address, which was associated with all their commits. With this feature, users can unlink their email address from a 2FA-enabled GitHub account in case they are unable to sign in or recover the account. If recovery options such as SSH keys, PATs, or previously signed-in devices are unavailable, users can start fresh with a new GitHub.com account and maintain their contribution history.

It’s Worth It

Let me underline a point GitHub makes several times: Texting, aka SMS, 2FA is better than nothing, but if someone really wants to crack your account, SMS 2FA is the easiest method to crack. Personally, I recommend either a free Google Authenticator or Microsoft Authenticator; the open source Bitwarden; or a YubiKey or Google Titan key.

Yes, I know many of you will find this very annoying. Trust me. It’s worth it. Otherwise, sooner or later, your code repositories will be hacked. It’s not “if,” it’s when. Code security attacks are at an all-time high, and you don’t want to be one of the casualties.

Solo.io, the modern API infrastructure company, delivers application networking from the edge to service mesh enabling enterprises to adopt, secure, and operate innovative cloud native technologies.
Learn More
The latest from Solo.io
TRENDING STORIES
Steven J. Vaughan-Nichols, aka sjvn, has been writing about technology and the business of technology since CP/M-80 was the cutting-edge PC operating system, 300bps was a fast internet connection, WordStar was the state-of-the-art word processor, and we liked it.
Read more from Steven J. Vaughan-Nichols
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.