Skip to content

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

incident.io 4 min read How-to mediumAdept

Onboarding yourself as an engineer at incident.io

New engineers at incident.io onboard themselves by opening a PR to the infrastructure repo that adds them as a user, puts them on a team in a Jsonnet config, and defines a Spacelift dev stack. Once merged, Terraform provisions their dev environment, grants Google Cloud access based on user tags, and syncs Google Group memberships from the same config. The Catalog Importer then maps that team data into incident.io's Team catalog type, so the company's own product is configured as code alongside GCP, Sentry and Spacelift.

Assumes: Terraform basicsJsonnet

Related posts

  • How our product team use Catalog

    incident.io mediumAdept

    incident.io's product team populated its own Catalog with features, integrations and teams to replace messy, hand-curated incident Custom Fields. Features come from a static Jsonnet list plus per-Go-module module.jsonnet ownership files, integrations from a catalog.jsonnet list checked by static analysis, and teams serve as a source of truth that Terraform uses to provision Google Groups and Sentry projects. The catalog-importer runs in CircleCI in about 20 seconds, in parallel with builds, so the data stays in sync with the codebase. That data drives workflows such as announcing incidents to owning teams' Slack channels, deriving team-level fields for pager-load insights, and routing follow-ups to the right Linear project.

  • Using Terraform to Manage Infrastructure

    Shopify Engineering mediumAdept

    Shopify's Conversations team replaced GUI-based configuration of Twilio TaskRouter, which routes contact-center tasks to agents, with Terraform. Twilio had no provider when the project started, so the team wrote a custom one in Go with the Terraform Plugin SDK. Each managed resource gets a file defining its schema, its CRUD functions and an importer for existing infrastructure. Changes now go through pull requests where Atlantis posts the `terraform plan` output and runs apply after review, which gives the configuration revision history, review and rollback, and lets non-developer teams safely make routing changes themselves.

  • Keeping it boring: the incident.io technology stack

    incident.io easyNovice

    incident.io runs a deliberately minimal stack on Google Cloud that lets two platform engineers support thousands of customers. Compute runs mostly on GKE Autopilot, which trades control over node lifecycle and system namespaces (including DNS settings) for hands-off operations. Workloads that are long-lived or need large storage or resources run on immutable Compute Engine VMs configured with Cloud Init. The rest of the stack is Postgres on Cloud SQL Enterprise Plus, Pub/Sub topics managed in application code, Argo CD GitOps, Buildkite CI, and Terraform via Spacelift. Monitoring uses Grafana Cloud with self-hosted Tempo for traces to control cost, and alerts are defined in Jsonnet.

  • Organizing ownership: How we assign errors in our monolith

    incident.io mediumAdept

    incident.io assigns error ownership inside its monolith by dividing the codebase into team-owned units (apps, backend feature packages, integrations), each with a required jsonnet module file declaring owner, criticality and customer-facing features. A CI check enforces that every package has an owner, and a script rolls these up into a CODEOWNERS file. Error-wrapping middleware in Go recursively unwraps errors, maps stack-frame source paths against CODEOWNERS to find the deepest owning team, and tags the error with a team field that monitoring and alerting tools use for routing. A manual override is supported, and errors with no identifiable owner stay untagged and fall back to the on-call team.

  • Rolling out Roles

    incident.io mediumAdept

    incident.io added role-based access control by mapping a fixed set of customer-facing roles (owner, admin, etc.) to granular internal scopes. A variadic getIdentity(ctx, requiredScopes...) check in Go puts each API's permission behind a one-line change, and generated type-safe scope enums let the TypeScript frontend gate UI such as a GatedButton. Rollout used a per-organization enforcement timestamp with a March 1st deadline and owner opt-in. Initial owners were the original installers and admins were inferred from past product usage, with owners prompted to review both.

The quest for software engineering knowledge.

Look:
Layout: