Repository navigation
Add a security model, allowances register, and security review workflow - #7
Closed
legit-ninja wants to merge 1 commit into
Closed
legit-ninja wants to merge 1 commit into
legit-ninja wants to merge 1 commit into
Conversation
legit-ninja
requested review from
DavidRBanks,
adamhackl,
davidhulick and
etimmons
November 20, 2026 20:17
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
force-pushed
the
feat/security-review
branch
from
November 20, 2026 20:19
136d29b to
c5234ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.