Skip to content

Broker GitHub App credentials for long-lived observers - #868

Merged
GraciousGazelles merged 7 commits into
mainfrom
fix/github-app-brokered-observers-v2
Sep 19, 2026
Merged

GraciousGazelles merged 7 commits into
mainfrom
fix/github-app-brokered-observers-v2

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • run long-lived PR and workflow observers without exposing installation tokens to the watcher process
  • broker a strict, repository-bound read-only subset of gh over a private Unix socket
  • refresh and revoke installation tokens inside the broker, with bounded process-group teardown before revocation
  • add focused lifecycle, proxy-validation, watcher-routing, and hosted lane coverage

Validation

  • 220 passed, 4 subtests passed across the focused observer suites
  • Python syntax compilation for changed observer scripts
  • CI planner routing tests for observer-only changes
  • independent Luna semantic review: clean on frozen head a7bd884c7cd93a2f25d0d873f41e86cff70de46c

Tracks w13882.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 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-19T21:31:23.261676Z a7bd884 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 secure, bounded IPC broker proxy (github_app_broker_proxy.py) and brokered execution support in github_app_installation_broker.py to allow read-only GitHub CLI commands to run over a private Unix socket, keeping installation tokens isolated from the top-level watchers. The feedback highlights a few critical issues: a platform-compatibility bug on macOS causing a mandatory 5-second delay per command due to the lack of /proc, potential TypeError crashes in exception handling when passing exception objects directly to _redact instead of strings, and a potential resource leak of the temporary directory if socket initialization fails before the try...finally block.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 19, 2026
Merged via the queue into main with commit 8f13d9d Sep 19, 2026
74 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/github-app-brokered-observers-v2 branch September 19, 2026 22:39
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