Repository navigation
docs: reproducible GitHub App identities (reviewer + coordinator) - #43
Conversation
mojomast
left a comment
There was a problem hiding this comment.
APPROVE (independent review — outside reviewer Claude, at owner Kyle's request) at 500b524
Checked: the manifest templates match policy/identities.md exactly (coordinator: contents, pull_requests, issues, actions, workflows write; checks, statuses, metadata read. reviewer: pull_requests write; contents, checks, metadata read. No events, inactive hook). convert.sh sets umask 077, writes the pem with O_EXCL at mode 600, pops and discards client_secret and webhook_secret without printing, and prints only safe fields. verify.sh revokes the installation token (DELETE /installation/token). No IDs, hosts, IPs or key material in the diff. The guide marks gate-by-login as planned, says GitHub has no reviews-only permission (so the poster enforces it), and puts key custody front and center. tests/test_github_apps.py is added.
Generated by Claude Code
Makes the GitHub App identity split reproducible for anyone running rizzstack on their own repositories.
docs/github-apps.md: the full guide. It covers why the owner, coordinator and reviewer get separate identities; the exact permissions of each app, why each is needed, and what's deliberately excluded (administration, secrets, members, environments, webhooks, all-repositories); name fallbacks (-<owner>, 34-char limit); the manifest POST flow (open the page in a browser on the machine holding the file; third-party HTML proxies are optional and untrusted); the one-hour code and its state check; key custody on the always-on orchestrator host (mode 600, never in repos, reviewer key under a separate OS user); manual installation with "Only select repositories"; verification and the fingerprint check; how the orchestrator mints, narrows and revokes installation tokens; key rotation and revocation; and the gate-by-login plan, marked planned.tools/github-apps/:<owner>/<app-name>placeholders;make_submit_page.py, which writes the self-submitting page with a random state and a mode-600 state file;convert.sh, which checks the state, writes the pem withO_EXCLat mode 600 in a mode-700 directory, and drops the client and webhook secrets unprinted;verify.sh: JWT →/app→ installations → metadata-only token, revoked after use → exact repository set, taken from--repos;fingerprint.sh.tests/test_github_apps.pychecks:docs/profiles.md(orchestrator profile)..gitignorenow ignores*.pem,out-*/and*.state.json.No real App IDs, client IDs, installation IDs, fingerprints, hosts or tokens appear anywhere; all are placeholders. No code or gate behaviour changes. Complements the identities policy in #42; it doesn't touch the files that PR changes. gitleaks: no leaks (history and tree).