Skip to content

docs: reproducible GitHub App identities (reviewer + coordinator) - #43

Merged
rizzstack-coordinator[bot] merged 1 commit into
mainfrom
docs/github-apps
Nov 27, 2026
Merged

rizzstack-coordinator[bot] merged 1 commit into
mainfrom
docs/github-apps

Conversation

@mojomast

Copy link
Copy Markdown
Owner

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/:
    • template manifests with <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 with O_EXCL at 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.py checks:
    • the manifests carry exactly the documented permissions and no forbidden ones;
    • the page POSTs with a 32-hex state;
    • the state file is mode 600;
    • the scripts never print the key or token.
  • Links from the README and from docs/profiles.md (orchestrator profile). .gitignore now 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).

@mojomast mojomast left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@rizzstack-coordinator
rizzstack-coordinator Bot merged commit c363b45 into main Nov 27, 2026
9 of 11 checks passed
@rizzstack-coordinator
rizzstack-coordinator Bot deleted the docs/github-apps branch November 27, 2026 20:29
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