Skip to content

Add read-only GitHub App token broker - #761

Merged
GraciousGazelles merged 7 commits into
mainfrom
feature/w13791-github-app-broker-20260905
Sep 5, 2026
Merged

GraciousGazelles merged 7 commits into
mainfrom
feature/w13791-github-app-broker-20260905

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • add a stdlib-only broker for short-lived GitHub App installation tokens scoped to one selected repository and an explicit read-only permission subset
  • validate App, installation, repository, command-source, credential-custody, output-bound, redaction, refresh, and revocation invariants without PAT or App-user fallback
  • add a secret-free mock contract harness to the existing codex.agent-workflow-sanity hosted lane and document the downstream carry boundary

Scope

This is a read-only transport boundary only. It does not add queue mutations, workflow reruns, webhook handling, multi-repository access, or a generalized service. Private-key material is supplied at runtime through a fixed systemd credential basename; no live credential or installation identifier is stored in the repository.

Validation

Hosted validation will run the explicit codex.agent-workflow-sanity lane for the exact PR head. No repository compilation or test execution was performed on the coordination workstation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-05T07:31:02.816333Z 5bfb227 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a read-only GitHub App installation-token broker (github_app_installation_broker.py) along with comprehensive mock-only contract tests, documentation, and CI integration. The broker acts as a secure, stdlib-only transport boundary that validates App installations, limits permissions, runs fingerprint-bound child processes, and guarantees token revocation on exit. The review feedback identifies a bug where passing directory paths as command arguments causes validation failures, and points out that the permission validation logic is overly restrictive. Additionally, several instances of unused imports and dead code (such as the _header helper and READ_PERMISSION_NAMES constant) were flagged for removal to improve code cleanliness.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit fabe866 Sep 5, 2026
91 checks passed
@GraciousGazelles
GraciousGazelles deleted the feature/w13791-github-app-broker-20260905 branch September 5, 2026 08:36
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.

2 participants