Skip to content

Docs / Security

Security

Least-privilege GitHub scopes, encrypted secrets, and the append-only audit log.

developerz.ai is designed around the principle that an agent working in your repositories must be auditable, least-privilege, and honest, or it cannot be trusted there.

GitHub App permissions

The table below describes the App's permissions and their uses. Security-alert intake additionally requires the read permissions described below; this documentation does not change the App's settings or confirm an installation's grants. Check the live permission list on the App's own page, github.com/apps/developerz-ai, or read it as JSON from https://api.github.com/apps/developerz-ai. Neither needs an account.

Scope Level Used for
metadata: read Repository Required by GitHub for every App.
issues: write Repository Post triage comments, apply and remove labels, close duplicates, open the issues a dispatched task asks for, open, update and close the epic and part issues that mirror a filed plan, and comment on and close as not planned an issue with no activity for triage.close_inactive_after_days (60 days by default on a repo with a committed policy file). Issues are closed, never deleted.
pull_requests: write Repository Post reviews and review comments, merge a PR once the machine gates pass, and comment on and close a PR with no activity for pr.close_inactive_after_days (60 days by default on a repo with a committed policy file). PRs are closed, never deleted.
contents: write Repository Read maintainer.yml, manifests and diffs; push the branch a dispatched agent works on; create tags and GitHub Releases; delete the head branch of a PR the bot declined, when the repo's .maintainer.yml opts in with pr.delete_declined_branches; delete the head branch of a PR the inactive-close pass closed, with no separate opt-in, only when that branch lives in the same repo, is neither the default branch nor protected, is not the base or head of another open PR, has not moved since the close, and is neither dz/onboarding nor a developerz.ai task's saved branch (dz/<slug>--<8 hex>, retired by its own retention sweep). GitHub's Restore branch button brings it back. Push an archive/<branch>/<YYYY-MM-DD> tag at the last commit of a branch with no new commit for branches.close_inactive_after_days (60 days by default), then delete that branch, only when it lives in the same repo, is neither the default branch nor protected, is not the base or head of an open PR, and is not one of the platform's own dz/ branches; a branch created from the tag brings it back. Both passes are on by default for a repo with a committed policy file, and pr.close_inactive_after_days: false or branches.close_inactive_after_days: false turns each off; a repo with no policy file is never swept.
workflows: write Repository Included in that push: git refuses a push that touches .github/workflows/** without it. A CI change the platform itself proposes (the one-time CI-hardening ask: each uses: pinned to the sha its tag resolves to today, a permissions: block that only narrows what the workflow's token may do, or a platform template byte for byte) merges only when a deterministic proof that the diff is exactly that transform holds and the pull request's own CI is green; any other edit under .github/workflows/** by the App is refused and left to the maintainer. A pr.human_merge lane the maintainer configured is honoured: the pull request waits for them.
statuses: read Repository Read the combined commit status, so a repo whose CI reports via the Status API is graded rather than read as "no CI".
actions: write Repository Re-run a GitHub Actions job GitHub cancelled, once per commit, instead of a fix round; on a pull request the platform or a dependency bot opened, re-run a failed job once per commit before a fix round; read a failed job's full log, so a fix round works from what actually failed; receive workflow_run events, one of the signals that a pull request's CI has finished.
deployments: read Repository Receive deployment / deployment_status events, so a merged PR can be joined to a deploy verdict.
checks: write Repository List a commit's check runs to grade CI, and publish our own check runs on the pull request's head sha. One check run ships: developerz.ai review, published on every repository we review; it concludes success or neutral, never failure, because a red check a maintainer has made required would stop their merges on our availability.
members: read Organisation Read your role in an org at sign-in, to decide whether you get owner or member on that tenant. See teams & roles. Read whether a pull request's author is an active member of the org, so the merge lane can bring that pull request up to date with its base.
discussions: write Repository Requested, not currently used.
emails: read Account Requested, not currently used.

The rows marked not currently used are exactly that: requested at install time, reached by no code path today. We would rather name them here than describe a narrower App than the one you are actually installing; dropping them from the App is tracked as its own change.

The members: read read is deliberately least-privilege in its failure mode: if your org has not approved the permission, GitHub declines to tell us your role and we read that as no signal, which lands you on member rather than owner. A refusal never elevates. The same refusal leaves a pull request's author unread, so the merge lane does not update that pull request's branch, and tells a maintainer if it stays behind.

Webhook events (issues, pull requests, pushes) are delivered through the App's event subscriptions, gated by the permissions above. GitHub Apps have no separate webhooks scope for receiving events.

What that means concretely. The App can push code, which is how a dispatched coding agent opens a PR, and it can merge one, but only on the machine gates (auto_merge: true, CI green, review verdict, branch protections satisfied), never because a model decided to. It can create tags and GitHub Releases on a repo whose maintainer.yml asks for them; a repo that ships no policy file gets no releases at all. It does not request administration or secrets, so it cannot change repo settings, read your Actions secrets, or manage access. It reaches only the repositories you explicitly grant at install time.

This is a decision, not a gap we haven't gotten to. Creating a brand-new github.com/<org>/<new-repo> on your behalf would need administration: write, and we've chosen not to request it: widening a scope re-prompts every existing installation for consent, and "the App can create, and therefore delete, repositories" is a bigger reach than the rest of this table. The path we ship instead: you create the empty repo yourself (one click, or gh repo create), then ask us to scaffold it: no new permission required, and it works on personal accounts too. If that ever changes, this table changes in the same PR.

Repository security alerts

Dependabot and code-scanning alerts enter triage as security work, not as instructions from a scanner. The ask cites the GHSA or rule id and the manifest or affected path, not pasted advisory prose. Third-party text must be screened before prompt use. Triage distinguishes a dependency update from a code fix; the coding work runs on your box with your own model key and keeps the repository's existing file fences and merge gates. The security notification is informational, with the fix PR link, not a human approval gate on the coding work. No public issue is opened for an alert.

Two additional repository permissions are required:

Scope Level Used for
vulnerability_alerts: read Repository Read Dependabot alerts for intake and inventory.
security_events: read Repository Read code-scanning alerts for intake and inventory.

The GitHub App owner must request these grants and subscribe to dependabot_alert and code_scanning_alert; an installation owner must approve the requested permissions in GitHub. These are required configuration actions, not actions performed by this page or evidence that they have already happened.

GitHub does not backfill alerts through webhooks. A daily inventory lists all pages of open alerts for both kinds, with an initial inventory triggered when new permissions are accepted. Repeated deliveries refer to the same finding rather than multiplying open asks. Resolution leaves work that has already run alone; only never-run work is eligible for cancellation.

Repository readiness remains a browser action until the required grants are approved. A current permission-related inventory 403 also names the owner action in GitHub. Until both kinds have completed inventory after the current permission observation, readiness remains unknown with inventory_pending; a pre-permission completion does not count. A newer failed attempt reports inventory_failing, and stale evidence reports inventory_stale, never proof that a repository is secure. After these prerequisites, active security asks report in_flight; an open alert older than 24 hours without usable work, or a durable intake fault, calls for a lane-repair ask. A passing result requires fresh successful inventory for both kinds and no unattended open alert. This describes the intake contract, not a live security check or a guarantee that a scanner found every vulnerability.

Secret scanning is excluded. This intake does not ingest secret-scanning alerts or perform credential rotation.

Secrets and credentials

All credentials stored by developerz.ai are encrypted at rest:

  • Model keys (BYOK): envelope encryption. A per-row data key encrypts the value, and a key-encryption key wraps that data key, both AES-256-GCM with their own nonce. Decrypted in memory only at the moment of an API call; never logged or included in audit events.
  • Webhook tokens: same scheme. Transmitted only outbound to the registered webhook URL over HTTPS.
  • GitHub installation tokens: short-lived (one hour), minted on demand from the GitHub API and held in memory only, refreshed before expiry, and never written to the database or to disk.

Secrets live in Postgres on our managed Kubernetes cluster. The database has no public listener and is reachable only from inside the cluster network.

The audit log

Every action taken by the agent is written to the append-only audit log before the action is executed. The log is the source of truth for what the agent did, when, and why.

Each entry records:

Field Description
id Row id.
session_id The agent session the event belongs to.
repo_full_name owner/repo, or null for a repo-less session.
kind Event type, dotted: session.boot, model.call, tool.call.ok, tool.call.err, policy.gate.refused, escalation.fired, handoff.fired, account.paused, and so on.
tool The tool name on a tool-call row, null otherwise.
input The tool call or decision input (sanitised; no secrets).
output The result (GitHub API response code, comment ID, etc.).
ts UTC timestamp.

Rows also carry a prev_hash, the SHA-256 of the previous row for that session. The log is a hash chain, not just an append-only table: a removed or edited row breaks the chain and is detectable, and the database refuses two rows off the same predecessor so a chain cannot silently fork.

Append-only is enforced, not merely intended. No UPDATE is issued against audit_events, and the session foreign key is ON DELETE RESTRICT so the rows outlive attempts to delete what they describe. The one DELETE is retention, and it archives first: rows stay in the database for 90 days, are then written to an archive, and only after that archive exists are they pruned from the database. A session's chain moves whole, never cut mid-way, so every chain left in the database still starts at its root.

The dashboard exposes a read-only view. Raw rows are read through GET /v1/audit/events, newest-first and keyset-paginated (follow next_cursor); a token needs read:sessions to call it.

Identity

When the agent acts as itself it acts through the GitHub App, and GitHub attributes every comment, review and pull request to developerz-ai[bot], with GitHub's Bot badge.

There is one other identity lane, and it is not the bot. If you automate your own account with your own fine-grained personal access token, GitHub attributes the comment to you, because a person speaking as themselves is not the agent acting as itself. That lane is deliberately fenced: approving, reviewing and merging are refused on it, since a user's own token "approving" an agent's PR would fake a human review and satisfy branch protections nobody exercised. Those actions belong to the App identity alone.

What holds in both lanes: the agent never invents a human persona, and every post is written to the audit log with the identity it went out under.

No bot-on-bot loops

The agent detects comments from other bots (CodeRabbit, Copilot, Dependabot, Renovate) and defers to them rather than creating conflicting threads. A comment from developerz-ai[bot] never triggers another loop iteration.

Responsible disclosure

Found a security issue in developerz.ai itself? Email the contact address listed in our security.txt. We aim to acknowledge within 24 hours and resolve critical issues within 72 hours. Please do not open a public GitHub issue for security reports.

Data handling

  • Issue and PR text is sent to the inference provider you selected, see BYOK for the full list, under your own API account. Your provider's data-handling terms apply.
  • Repository code is not stored by developerz.ai; only file diffs relevant to the current event are forwarded to the model.
  • Audit logs stay in the database for 90 days, then move to an archive; nothing is pruned before its archive exists. See the audit log section above. There is no retention dial to turn down.
  • For data-residency requirements, contact us.