Security guide#
Least-privilege credentials#
| Integration | Grant | Do not grant |
|---|---|---|
| Jira (each person, optional) | Their own API token / personal access token, used only to read the projects, sprints and stories they can see; stored encrypted, deleted on Disconnect | Sharing tokens between people |
| Jira (bot account) | Browse projects, Add comments, Create attachments, Transition issues (only if Jira status updates are on) — in the pilot projects only | Administer, Delete, project admin |
| GitLab | Project access token, role Developer, scopes api, read_repository, write_repository; protect main so Developers cannot push or merge to it |
Maintainer/Owner, group tokens, personal tokens of people |
| GitHub | Fine-grained token for the repositories: Contents write, Pull requests write, Actions read, Metadata read; branch protection with required reviews on main |
Administration, Workflows write, classic tokens |
| Anthropic API | A dedicated workspace key with a spend limit | Organisation admin keys |
| Amazon Bedrock | bedrock:InvokeModel / InvokeModelWithResponseStream on the exact model/inference-profile ARNs, in the region you chose for data residency |
bedrock:*, other regions |
| S3 artifacts | s3:PutObject, s3:GetObject, s3:ListBucket on arn:aws:s3:::<bucket>/sprintflow/*; bucket blocks public access, default encryption on |
Bucket policy changes, other prefixes |
| Secrets | secretsmanager:GetSecretValue on sprintflow/* (AWS) / Key Vault Secrets User on one vault (Azure) / a read-only Vault policy on secret/data/sprintflow/* |
List/write on the whole store |
| PostgreSQL | One database; the role owns only it; TLS (sslmode=require) |
Superuser |
Example IAM policy for Bedrock + S3 + Secrets Manager:
{
"Version": "2012-10-17",
"Statement": [
{"Effect": "Allow", "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],
"Resource": ["arn:aws:bedrock:<region>:<account>:inference-profile/*.anthropic.claude-*",
"arn:aws:bedrock:<region>::foundation-model/anthropic.claude-*"]},
{"Effect": "Allow", "Action": ["s3:PutObject", "s3:GetObject"], "Resource": "arn:aws:s3:::<bucket>/sprintflow/*"},
{"Effect": "Allow", "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::<bucket>",
"Condition": {"StringLike": {"s3:prefix": "sprintflow/*"}}},
{"Effect": "Allow", "Action": "secretsmanager:GetSecretValue",
"Resource": "arn:aws:secretsmanager:<region>:<account>:secret:sprintflow/*"}
]
}
Threat model (summary)#
| Threat | Controls |
|---|---|
| Ticket text or repository content tries to steer the agent (prompt injection) | Draft PRs only — no merge, approve or mark-ready code exists; independent review; risk approvals; build/test in containers with no network when sandbox.runtime is docker or podman (see Where build and test commands run); commands from repository settings are never executed |
| AI-written code runs during build/test | With sandbox.runtime docker or podman: throwaway container, non-root, all capabilities dropped, CPU/memory limits, no network; fails closed if the runtime is missing. With the default, none: on the computer itself (see below) |
| Personal data or secrets reach the model | Data guard redaction (reversible placeholders), withheld files, Bedrock in-region |
| Stolen console session / CSRF / XSS | HttpOnly+Secure+SameSite cookies, CSRF token, strict CSP, no inline script, all untrusted text rendered as text; SSO with group-based roles |
| Forged webhooks | GitHub HMAC-SHA256, GitLab secret token, Jira token — constant-time compared; stop switch honoured |
| Secrets at rest | Encrypted in the console store (Fernet, key from a secrets manager); masked in the API; never logged |
| Hostile test reports / archives | defusedxml (no DTDs/entities); backups checksum-verified, traversal and links rejected |
| Runaway cost | Per-run caps, daily/monthly budgets, alerts, stop switch |
| Losing track of what happened | Audit log (users, changes, runs), per-run event log, OpenTelemetry traces |
Where build and test commands run#
Build and test commands execute code the AI wrote. sandbox.runtime decides where:
sandbox.runtime |
Where | Network |
|---|---|---|
none (the default) |
On the computer AI SprintFlow runs on, as the user it runs as, with a reduced environment (no SprintFlow tokens or keys) | Yes |
docker / podman |
A throwaway container with only the working copy mounted | Only while installing dependencies; none during build and test |
The desktop app and the VS Code extension start with none, because most computers have no container runtime.
For anything beyond a trial on one's own repositories, set Settings → Sandbox → runtime to docker or podman.
Administer → Health shows the current state as build isolation, as a warning while it is off.
The desktop app and the VS Code extension#
- The console listens on 127.0.0.1 only, and answers only requests addressed to
127.0.0.1:<port>orlocalhost:<port>: a website whose name is made to point at this computer (DNS rebinding) is refused. Webhooks are exempt; they prove themselves with a signature. - Other people signed in to the same computer (a terminal server, for example) can reach that address. The console's sign-in is what keeps them out: use a strong password, one account per person.
- The encryption key (
console.key) lies in the user's own app-data folder, next to the encrypted secrets. It protects backups and copies of the data, not against software running as the same user. - The Windows programs are code-signed by the release workflow;
vscode-extension/scripts/package.jsrefuses to build a Marketplace package from unsigned programs.
Company proxies and certificates#
AI SprintFlow uses the proxy of the environment it starts in (HTTPS_PROXY, NO_PROXY; on Windows also the proxy
set in the system settings). Where a proxy inspects TLS, connections fail with a certificate error until the
company's root certificate is trusted: set SSL_CERT_FILE to a PEM file that contains it (together with the public
certificate authorities you need) before AI SprintFlow starts. Amazon Bedrock reads AWS_CA_BUNDLE and Google
Vertex AI REQUESTS_CA_BUNDLE instead; git uses its own setting (http.sslCAInfo, or the Windows certificate
store with Git for Windows). Build tools started by a run receive the proxy variables and NODE_EXTRA_CA_CERTS.
AI SprintFlow has no setting that turns certificate checks off.
Penetration-test checklist#
- Console: authentication (lockout, SSO state/nonce/audience), authorisation (every role against every endpoint), CSRF, XSS in run content, path traversal in artifact URLs, security headers, TLS at the ingress.
- Webhooks: unsigned/forged/replayed requests; oversized payloads.
- Workers: container escape attempts from a malicious test; network egress during build/test.
- Data guard: seeded personal data in tickets and files never appears in model requests (OpenTelemetry/Langfuse).
- Backups: tampered archive, traversal entries, restore without the master key.