Skip to content

Add a security model, allowances register, and security review workflow - #7

Closed
legit-ninja wants to merge 1 commit into
mainfrom
feat/security-review
Closed

legit-ninja wants to merge 1 commit into
mainfrom
feat/security-review

Conversation

@legit-ninja

Copy link
Copy Markdown

Add AGENTS.md and a CLAUDE.md that imports it, with the project layout, commands, and conventions for AI agents and contributors.

Document the exporter's threat model in docs/explanation/security-model.md: the metrics listener, tenant data in labels, database connection URLs, per-service read-only database grants, failure isolation, the container image, and CI and supply chain. Each control maps to its code, tests, or configuration, and controls inherited from openstackdb, client_golang, and exporter-toolkit point to their owners. Add a register of deliberate allowances, held privileges, controls owned by operators, residual risks, and fixed findings in docs/reference/security-allowances.md.

Add a tool-agnostic security review workflow in .ai/ with change and baseline modes, false-positive rules, an agent security policy, and a Claude Code skill that wraps them. The review reads AGENTS.md, the register, the security model, and its own instructions from the base ref, so a branch cannot pre-allow its own findings, and it always reports changes to the review policy, agent instructions, CI, build files, and environment configuration. The skill pre-approves exact git commands only and gives the diff to agents without edit or write tools. Open findings stay in the gitignored local/ report until their fix ships; findings in upstream code are reported privately first.

Ignore local/ in .gitignore, which .dockerignore links to, so review reports stay out of git and out of the image build context.

Add AGENTS.md and a CLAUDE.md that imports it, with the project layout,
commands, and conventions for AI agents and contributors.

Document the exporter's threat model in docs/explanation/security-model.md:
the metrics listener, tenant data in labels, database connection URLs,
per-service read-only database grants, failure isolation, the container
image, and CI and supply chain. Each control maps to its code, tests, or
configuration, and controls inherited from openstackdb, client_golang, and
exporter-toolkit point to their owners. Add a register of deliberate
allowances, held privileges, controls owned by operators, residual risks,
and fixed findings in docs/reference/security-allowances.md.

Add a tool-agnostic security review workflow in .ai/ with change and
baseline modes, false-positive rules, an agent security policy, and a
Claude Code skill that wraps them. The review reads AGENTS.md, the
register, the security model, and its own instructions from the base ref,
so a branch cannot pre-allow its own findings, and it always reports
changes to the review policy, agent instructions, CI, build files, and
environment configuration. The skill pre-approves exact git commands only
and gives the diff to agents without edit or write tools. Open findings
stay in the gitignored local/ report until their fix ships; findings in
upstream code are reported privately first.

Ignore local/ in .gitignore, which .dockerignore links to, so review
reports stay out of git and out of the image build context.

Signed-off-by: Jeremy Lee <jeremy.lee1664@gmail.com>
@legit-ninja
legit-ninja deleted the feat/security-review branch November 30, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant