Skip to content

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

Render 4 min read How-to mediumAdept

Using SSH keys for Private Package Management

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.

Assumes: SSH key pairspackage managers like pip or npm

Related posts

  • Host a Dev Environment on Render with VS Code and Tailscale

    Render mediumAdept

    A self-hosted cloud dev environment can run on Render as a private service, reached over a Tailscale subnet router and edited with VS Code's Remote-SSH extension. code-server works and installs as a PWA, but it lacks some extensions. OpenSSH fails in Render's unprivileged containers because privilege separation needs CAP_SYS_CHROOT, so dropbear serves SSH instead, with SSH agent forwarding for GitHub authentication. A persistent disk mounted at /home keeps repos, caches and the VS Code binaries across deploys, and a start script recreates authorized_keys at runtime so the mount doesn't overwrite it.

  • Using GitHub Actions with Heroku Flow for additional Security Control

    Heroku Engineering mediumAdept

    Because GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action. The action uses the Platform API's Source Endpoint to upload private repo code, deploy apps on push, dispatch or schedule events, and create, update or remove Review Apps on pull request events. A weekly scheduled workflow rebuilds and redeploys the runner to meet GitHub's 30-day update requirement. Tradeoffs include no repo link in the Review App UI, no automatic Heroku CI tests, no Fir support, and a custom runner image that other actions should be tested against.

  • Use One-Click Deploys for Secure Online VS Code

    Render mediumAdept

    OpenVSCode Server can be deployed on Render by forking Gitpod's repo, adding a minimal Dockerfile that pulls the published image, and defining a persistent disk mount in a render.yaml Blueprint. Once render.yaml exists, a single line of markdown in the README creates a Deploy to Render button for one-click deploys. Securing the browser IDE means adding OAuth2-Proxy in the same Blueprint, with `sync: false` keys so users enter their own secrets in the dashboard at deploy time rather than committing them.

  • 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.

  • Security keys are now supported for SSH Git operations

    GitHub Engineering mediumAdept

    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.

The quest for software engineering knowledge.

Look:
Layout: