Interview Prep/Git & GitHub/Security: secrets, signing, access and supply chain

How do you enforce two-factor authentication and SSO across an organisation?

IntermediateProductionSecurity: secrets, signing, access and supply chain
Answer

Require 2FA in org settings (members without it are removed) and enforce SAML SSO so tokens and SSH keys must be authorised for the org. Prefer passkeys or hardware keys for admins. With Enterprise Managed Users the IdP fully owns the accounts.

All Git & GitHub questions Roadmap: Git & GitHub

More on Security: secrets, signing, access and supply chain