Skip to content

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

incident.io 9 min read Case study mediumAdept

Better security for your app's secrets

incident.io's Go app loads config from per-environment YAML files, overrides values with environment variables, then resolves `secret-manager:` references from Google Secret Manager at boot. Moving secrets out of Heroku environment variables means only a Google Service Account credential is exposed, so it can be revoked and access audited. A VPC Service Controls security perimeter with Access Levels restricts Secret Manager access to known source IPs: offices, CircleCI egress, UK/US staff locations and Heroku's AWS eu-west-1 range. The tradeoff is new availability risk, since external changes such as Heroku IP range shifts can cause outages.

Related posts

  • Staying Evergreen: How we automated secure access and repo hygiene in a shared org

    GitHub Engineering mediumAdept

    Evergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail. It fails secure by revoking all access when a review goes unanswered, fails closed by keeping reviews pending until every removal succeeds, and never deletes anything. Rollout relied on a DRY_RUN mode, logfmt logs in Splunk, and proactive pacing to stay under GitHub's secondary content-creation rate limits of 80 requests/minute and 500/hour.

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

  • How Hugging Face Scaled Secrets Management for AI Infrastructure

    Hugging Face mediumAdept

    Hugging Face moved secrets management to Infisical as its infrastructure grew from AWS-only to multi-cloud (Azure, GCP), choosing it over HashiCorp Vault for developer workflows and multi-cloud abstraction. In Kubernetes, the Infisical Operator syncs secrets via an InfisicalSecret CRD into native Kubernetes secrets and can auto-reload Deployments. Engineers still prefer manual redeploys for control at over 10 million requests per minute. RBAC is mapped from Okta groups, the CLI replaces local .env files, and CI/CD uses GitHub Actions with OIDC, Terraform and self-hosted runners.

  • Securing Heroku CLI Credentials with System Keychain Storage

    Heroku Engineering mediumAdept

    Starting with version 11.8.0, the Heroku CLI stores auth tokens in the OS keychain by default instead of plaintext `.netrc` files. It uses macOS Keychain via `security`, Secret Service via `secret-tool` on Linux, and Windows PasswordVault, all under the service name "heroku-cli". Credential lookup follows a four-tier precedence: `HEROKU_API_KEY`, then `HEROKU_NETRC_WRITE=true` forcing `.netrc`, then the keychain, then `.netrc` as a fallback. A new git credential helper keeps `git push heroku main` working, and CI pipelines using `HEROKU_API_KEY` need no changes.

  • Mastering API Gateway Integration: Salesforce, Heroku, and MuleSoft Anypoint Flex Gateway

    Heroku Engineering mediumAdept

    MuleSoft Anypoint Flex Gateway can run as a container app inside a Heroku Private Space and act as the single public ingress for internally routed Heroku APIs. The walkthrough deploys an internal API with --internal-routing, imports its OpenAPI spec into Design Center and publishes it to Exchange, then generates registration.yaml via Runtime Manager. It deploys the gateway with Flex-specific config vars (dynamic port, idle timeouts, Envoy drain time and concurrency) and wires the internal URL as the upstream in API Manager. A Client ID Enforcement policy then demonstrates gateway-level authentication without application code changes.

The quest for software engineering knowledge.

Look:
Layout: