Organizing ownership: How we assign errors in our monolith
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.
Related posts
- How we organize and get things done with SERVICEOWNERS
GitHub Engineering mediumAdeptGitHub added a service layer between code and teams in its 4.2M-line Rails monolith: a SERVICEOWNERS file maps glob patterns, directories and files to named services, and a service-mappings.yaml ties each service to teams, managers, chat channels and tier ratings. A serviceowners Ruby gem combines the two to generate CODEOWNERS automatically, so reassigning a service is a one-line YAML change, and it answers ownership queries via a CLI and chat-op. CI enforces rules such as no duplicate patterns, every new file must have a service, and every pattern must match an existing file. ownership.yaml files in other repos feed the same service catalog, letting services span repositories and making on-call contacts, SLOs and dependencies discoverable during incidents.
- How our product team use Catalog
incident.io mediumAdeptincident.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.
- Onboarding yourself as an engineer at incident.io
incident.io mediumAdeptNew 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.
- Defending Your Software Supply Chain: What Every Engineering Team Should Do Now
Docker mediumAdeptRecent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.
- Rolling out Roles
incident.io mediumAdeptincident.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.