Signifly Docs
How we work

Secure development

The lifecycle of a change, from the decision to production, and how we handle incidents.

This page describes the lifecycle of a change in our software. It also tells you how we control access, keep secrets out of the code and handle incidents.

1. Decide and record

Before we build a change that affects the architecture, we write an Architecture Decision Record (ADR). The ADR gives the context, the decision and its consequences. For a change to data access, the ADR names who can read and write the data. The ADR goes into the repository with the code, so a reviewer reads the decision and the change together.

2. Change through a pull request

We make each change on a branch and open a pull request. Our rule is that an engineer reviews each pull request before it is merged. An AI agent can open a pull request, but only as a draft. An engineer reviews it and decides to merge it.

3. Test automatically

We have these automated tests:

TestWhat it checks
Unit testsThe logic of each module, without a network or a browser.
Database testsWe build the database again from its migrations alone. Then we test it.
Row-level security testsFor each table and each kind of caller, the test declares what the caller can read and write. A table that has no declaration fails the test.
Component testsEach story of each component renders in a real browser. A story with interactions runs them. We also check each story for accessibility issues.
Visual reviewWe take a screenshot of each story and compare it with the accepted version. A person accepts or refuses each change.

The database tests run in CI when a change touches the database. Lint and type checks run on every pull request.

4. Monitor dependencies

Dependabot monitors the dependencies of our repositories. It opens a pull request for each security update. We also copy the Dependabot alerts of client repositories into our operations platform. Thus we can see which clients a published vulnerability affects.

5. Release through staged environments

A change goes through three environments:

  1. Local. A developer runs the application with a local database. The local database is built from the same migrations as production.
  2. Preview. Each pull request gets its own preview deployment. Reviewers use the preview to check the change before it merges.
  3. Production. A merge to the main branch deploys the code. A person applies database migrations to production as a separate step.

When we publish a package, for example the feedback widget, the release workflow authenticates with a short-lived token from the CI provider. The package registry attaches a provenance statement that names the commit that built it.

Least privilege

  • A person gets access through a role, in a scope: the platform, one client organization or one position. A role is a set of named capabilities.
  • An access grant can have a last day. Read access for an external person always has a last day.
  • Our application code reads data as the signed-in person, so the database applies that person's access rules. Only a small set of trusted server tasks can bypass these rules.
  • An AI agent acts as the person who connected it, with that person's access. Its access token expires after one hour.
  • Our CI workflows ask only for the permissions that they need.

Secrets

We keep secrets out of the source code. Each environment gets its own secrets from the hosting platform at deployment. Some values look like keys but are public by design. For example, the site key of the feedback widget only identifies a site. It does not grant access to data.

Incidents

We record each incident in our operations platform. An incident has an owner, a status and a visibility: private, shared with named organizations, or public.

  • Classification. A new report starts as suspected. A Signifly staff member assesses it and classifies it as confirmed or not an incident. A rejection needs a reason. A client can report a suspected incident but cannot classify it.
  • Automated detection. Our own uptime probes monitor client sites. A probe that sees a failure can open an incident.
  • Timeline. Staff record each step with its time: identified, escalated, confirmed, contained, restored, validated and resolved.
  • Evidence. We do not delete a report that is not an incident. We classify it and keep it, so that we can show how we assessed it.

On this page