Dawnfix

Security and data flow

Works with AWS Google Cloud GitHub ActionsGitHub Actions ClaudeClaude

Dawnfix runs in your GitHub Actions, on your cloud account's read-only role and your AI API key (Claude today). Your logs stay in your accounts. This page lists everything that reaches us.

Two jobs, split on purpose

Job A · readJob B · diagnose or fix
Cloud credentialsYes: a short-lived read-only role through GitHub OIDC (id-token: write), 15 minutesNone. No id-token permission, no cloud auth step
LLMNone. A deterministic scriptClaude, with your AI API key
Repo accessRead .dawnfix.yml onlyFix: read only; the agent's changes leave as an artifact. A separate publish job, on a fresh runner without the agent, commits them and opens the draft PR with contents and pull requests write. Diagnose: issues write only, no contents write
What it seesYour logs, read-onlyOnly the redacted findings.json from Job A, and your code
Agent tools—Fix: read and edit files, run your test command; no git, no gh, no web; network sandbox limited to package registries. Diagnose: read files and write its report, no shell
Sends to usThe summary below, only if you set an Enterprise keyThe PR link and state (fix only, Enterprise key only)

Which Job B runs is set by autonomy in your .dawnfix.yml: diagnose runs the diagnose job, plan and draft-pr the fix job. No key and no call to us decides it. The workflow is public in dawnfix/dawnfix, and you can pin it to a release tag or a commit, so you can read every step before you run it.

The AWS role comes from a CloudFormation template that grants only read actions on CloudWatch Logs, CloudWatch and Elastic Load Balancing; infra/aws/verify_readonly.py checks the deployed role with iam:SimulatePrincipalPolicy and refuses it if it can write. On GCP the identity gets roles/logging.viewer, never privateLogViewer. Inside the read job every AWS client refuses any API call outside its five-operation allowlist before the request is built. We suggest CODEOWNERS on .github/ and .dawnfix.yml and branch protection on your default branch.

What leaves your account: the ingest schema

One JSON document per run, dawnfix.ingest/1, at most 64 KB, sent only when you set an Enterprise key as the DAWNFIX_ENTERPRISE_KEY secret. The hosted service validates it strictly: an unknown key, a wrong type, free text or a value outside these patterns is rejected with 400 and not stored. Without a key the workflow sends nothing at all.

FieldAllowed valuesWhat it is
schema"dawnfix.ingest/1"Payload format version.
generated_atstring, matching ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$When the tick ran, UTC, to the second.
window_minutesinteger 1–10080How many minutes of logs this tick read.
phi_modetrue or falseWhether PHI mode was on for this tick.
countsobject, no other keys allowedTotals for the window.
counts.eventsinteger ≥ 0Error events read.
counts.newinteger ≥ 0Fingerprints never seen before.
counts.spikeinteger ≥ 0Known fingerprints at several times their usual rate.
counts.knowninteger ≥ 0Known fingerprints at their usual rate (counted, not listed).
counts.ignoredinteger ≥ 0Events your rules ignore.
sourceslist, at most 50One entry per configured source, in order. No names, regions, accounts or projects.
sources[].typeone of "aws", "gcp"Which cloud.
sources[].oktrue or falseWhether the source could be read.
sources[].error_codenull, or string, matching ^[A-Za-z0-9_.-]+$, at most 64 charactersThe cloud API error code when it could not (for example ExpiredTokenException), never the message.
findingslist, at most 500New and spiking errors only.
findings[].fingerprintstring, matching ^[0-9a-f]{16}$First 16 hex digits of a SHA-256 over source, service, route template and error stem. One-way: it does not contain them.
findings[].statusone of "new", "spike"New, or a spike of a known error.
findings[].severityone of "critical", "high", "medium", "low"From your rules, or the default.
findings[].sourceone of "aws", "gcp"Which cloud.
findings[].kindone of "log", "alarm", "alb"Log line, CloudWatch alarm, or load balancer 5xx.
findings[].routestring, matching ^(/[A-Za-z0-9_.:-]*)*$, at most 200 charactersThe route template with every id, email and number replaced (/users/:id), no query string.
findings[].methodone of null, "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"HTTP method, if the log had one.
findings[].http_statusnull, or integer 100–599HTTP status, if the log had one.
findings[].error_classstring, matching ^[A-Za-z][A-Za-z0-9_]{0,63}$The error type (TypeError, ECONNRESET, HTTP502): one identifier, no message.
findings[].countinteger 1–100000000Events of this fingerprint in the window.
findings[].pr_urlnull, or string, matching ^https://github\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+/pull/[0-9]+$, at most 200 charactersThe draft PR in your repo, once there is one.

Never sent: log lines, error messages, stack traces, request values, user data, service or log group names, regions, account ids, project ids, your AI API key. The fix job's findings file (redacted samples, none in PHI mode) stays in your repo's Actions storage for three days.

The schema file, verbatim
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dawnfix.dev/schema/ingest.schema.json",
  "title": "dawnfix ingest payload",
  "description": "The only data sent to the hosted service. Enums, counts, hashes, route templates and a PR URL; no free text. The service rejects anything that does not validate.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "generated_at",
    "window_minutes",
    "phi_mode",
    "counts",
    "sources",
    "findings"
  ],
  "properties": {
    "schema": {
      "const": "dawnfix.ingest/1"
    },
    "generated_at": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "window_minutes": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10080
    },
    "phi_mode": {
      "type": "boolean"
    },
    "counts": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "events",
        "new",
        "spike",
        "known",
        "ignored"
      ],
      "properties": {
        "events": {
          "$ref": "#/$defs/count"
        },
        "new": {
          "$ref": "#/$defs/count"
        },
        "spike": {
          "$ref": "#/$defs/count"
        },
        "known": {
          "$ref": "#/$defs/count"
        },
        "ignored": {
          "$ref": "#/$defs/count"
        }
      }
    },
    "sources": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "ok",
          "error_code"
        ],
        "properties": {
          "type": {
            "enum": [
              "aws",
              "gcp"
            ]
          },
          "ok": {
            "type": "boolean"
          },
          "error_code": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9_.-]+$"
              }
            ]
          }
        }
      }
    },
    "findings": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "fingerprint",
          "status",
          "severity",
          "source",
          "kind",
          "route",
          "method",
          "http_status",
          "error_class",
          "count",
          "pr_url"
        ],
        "properties": {
          "fingerprint": {
            "type": "string",
            "pattern": "^[0-9a-f]{16}$"
          },
          "status": {
            "enum": [
              "new",
              "spike"
            ]
          },
          "severity": {
            "enum": [
              "critical",
              "high",
              "medium",
              "low"
            ]
          },
          "source": {
            "enum": [
              "aws",
              "gcp"
            ]
          },
          "kind": {
            "enum": [
              "log",
              "alarm",
              "alb"
            ]
          },
          "route": {
            "type": "string",
            "maxLength": 200,
            "pattern": "^(/[A-Za-z0-9_.:-]*)*$"
          },
          "method": {
            "enum": [
              null,
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE",
              "OPTIONS",
              "HEAD"
            ]
          },
          "http_status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "integer",
                "minimum": 100,
                "maximum": 599
              }
            ]
          },
          "error_class": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000000
          },
          "pr_url": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 200,
                "pattern": "^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+/pull/[0-9]+$"
              }
            ]
          }
        }
      }
    }
  },
  "$defs": {
    "count": {
      "type": "integer",
      "minimum": 0
    }
  }
}

Redaction

Before anything is written, every string passes the redactor: email addresses (also URL-encoded), phone numbers, long numeric ids, ObjectIds, UUIDs, JWTs and bearer tokens, URL user info, query strings; non-printable characters are dropped and lengths capped. Log text is treated as untrusted data: the agent is told it may contain instructions and must not follow them.

PHI mode

With phi_mode: true in .dawnfix.yml, no log text reaches a PR, an issue, a commit, a test or the digest: not the error message, not a sample. Only fingerprints, counts, error classes, methods, statuses and route templates. Test fixtures are always synthetic.

BAA. The ingest schema cannot carry health or other personal data, so Dawnfix does not receive PHI and does not sign a Business Associate Agreement. The model provider does see your code and, outside PHI mode, redacted log samples: if your logs can hold PHI, you need your own BAA and zero data retention with your model provider (Anthropic, or Claude through AWS Bedrock or Google Vertex AI in your own cloud account). Confirm your position with your counsel; this is not legal advice.

The hosted service

  • Runs on Cloudflare Workers with a D1 database; no third-party mail vendor (Cloudflare Email Service).
  • License keys are 256-bit random values; only their SHA-256 is stored. Sign-in links are single use, 15 minutes, hashed.
  • Every response carries a strict Content-Security-Policy, HSTS, X-Frame-Options: DENY and nosniff. The pages load no third-party script or asset. Their only script is a small inline one for the copy button, allowed by its hash.
  • Rate limits at the edge per address and per license key.
  • Sub-processors: the list. Anthropic is not one of ours: your key, your contract with them.

Report a vulnerability

Email dawnfix@sivakoza.ai.