Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

GitHub Engineering 6 min read Announcement mediumAdept

Security keys are now supported for SSH Git operations

GitHub now accepts SSH keys backed by hardware security keys (ecdsa-sk and ed25519-sk types) for Git operations, keeping the secret material on the device so a stolen private key file is useless without the physical key. Every remote operation (push, fetch, pull, clone) requires a user-presence tap that clients do not cache, which blocks malware from silently initiating requests, while local Git operations proceed uninterrupted. Keys are generated with ssh-keygen and registered like ordinary SSH keys, unused keys are automatically removed, and password authentication for Git is slated for removal later in the year in favor of PATs and SSH keys.

Assumes: SSH key authenticationGit remote operations

Related posts

  • Post-quantum security for SSH access on GitHub

    GitHub Engineering mediumAdept

    GitHub is adding the hybrid post-quantum SSH key exchange sntrup761x25519-sha512 (Streamlined NTRU Prime combined with X25519 ECDH) to its Git SSH endpoints on September 17, 2025. The goal is to defend against "store now, decrypt later" attacks. Because the scheme is hybrid, security is never weaker than classical X25519. The change covers github.com, non-US GitHub Enterprise Cloud regions and GHES 3.19, but not the FIPS-only US region. Clients running OpenSSH 9.0+ negotiate it automatically, older clients fall back, and `ssh -Q kex` or `ssh -v` shows support and the negotiated algorithm.

  • Enforcing device trust on code changes

    Figma mediumAdept

    Figma requires code merged into GitHub release branches to come from company-managed MacBooks by signing commits with short-lived X.509 Okta Device Trust certificates instead of relying on GitHub's "Verified" badge, which trusts personal GPG keys and web-flow signatures that compromised tokens can obtain. A forked smimesign plus a wrapper script makes Git look up the current certificate key ID at commit time, since the certificates rotate every 15 days. A GitHub App backed by an AWS Lambda receives push webhooks, checks that the HEAD commit's S/MIME signature chains to the private CA, and posts a required commit-integrity-verification status. Bot commits such as Dependabot's are checked against an allowlist and heuristics on what they change.

  • How to Create and Use an AI Git Agent

    Docker mediumAdept

    An LLM-driven Git agent runs Git commands inside an alpine/git container while authenticating with the user's own SSH keys, so non-Git users such as UI tech writers can fetch, check out PR branches and get a three-dot diff of changed files. A setup prompt mounts ~/.ssh read-only and ~/.gitconfig into a container, then copies them to a writable location. It fixes container-breaking settings such as UseKeychain and carriage-return rules, and persists the result to a /thread volume that the Git tool copies in before each command. Tagging the thread in the VSCode extension keeps credentials across runs, and read-only credentials could let people without a local Git install review PRs.

  • Using SSH keys for Private Package Management

    Render mediumAdept

    Builds on Render can install dependencies from private Git repositories by storing a Base64-encoded, passphrase-less SSH private key (e.g. ed25519) as an SSH_KEY variable in a shared environment group. That group is linked to each service via a blueprint or the dashboard. A custom build.sh decodes the key and configures SSH before running the package manager, such as pip install, and is set as the service's build command. SSH keys are preferred over token-in-URL approaches because not every package manager supports environment-variable tokens.

  • Security Disclosure Recommendation: Check for Anomalous GitHub Access

    Railway mediumAdept

    Railway users who connect GitHub, following the October 21, 2026 security disclosure, should audit their GitHub accounts for persistence an attacker may have left behind, then confirm no unexpected commits reached their deployments. On personal accounts, filter the 90-day security log for authentication and access events and review OAuth apps, GitHub Apps, SSH/GPG keys and personal access tokens, regenerating all tokens. Organization owners should export the 180-day audit log before revoking anything, then check third-party access and each repository's deploy keys, secrets, webhooks and collaborators, since these can outlive a password reset.

The quest for software engineering knowledge.

Look:
Layout: