Skip to content

Two-factor authentication for developer accounts: which accounts and which methods

Turn on two-factor authentication for your code host, cloud, e-mail and registries. Prefer passkeys or security keys over SMS. A short checklist.

Published by Contextingo.

An attacker with a developer’s password can read code, push changes and steal keys. Two-factor authentication (2FA) means a stolen password alone is not enough.

Accounts to protect first

  • E-mail, because it resets everything else.
  • The code host (GitHub, GitLab).
  • Cloud and hosting consoles.
  • Package registries you publish to.
  • Password manager and domain registrar.
  • The accounts of tools your agents connect to.

Methods, strongest first

  1. Passkeys and hardware security keys (FIDO2/WebAuthn), which resist phishing.
  2. An authenticator app that produces one-time codes.
  3. SMS codes, only if nothing else is offered. They can be intercepted or redirected.

Do

  • Keep recovery codes somewhere safe and offline.
  • Register two methods, for example two security keys.
  • Require 2FA for every member of your organisation on the code host.

In Contextingo

Staff must enable 2FA before they can use the admin console, and each person connects their agents with their own personal key. See the security page.

Questions

Good to know.

Is an authenticator app good enough?

It is much better than a password alone. Security keys and passkeys are stronger against phishing.

What if I lose my device?

Use your recovery codes or your second registered method.

Nothing learned is lost. Nothing unchecked is done.