Repository navigation
Add shared GitHub App identities and scoped agent access - #331
Merged
Merged
Conversation
8 tasks done
Pengfei Ni (feiskyer)
requested changes
Oct 27, 2026
Pengfei Ni (feiskyer)
requested changes
Oct 27, 2026
7 of 8 tasks
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.
Summary
Add a shared GitHub App identity so each Agent can be limited to selected repositories and explicit Code, Pull requests, and Issues permissions. The Broker verifies the configuring user's authority and requests a narrowed installation token for each execution; GitHub records actions as the App bot, while provider credentials stay in the Broker/MCP boundary.
Related issue
Self-contained feature proposal; no separate tracking issue.
Validation
Offline checks passed using Go 1.27.3, Node.js 24.15.0, Helm 4.3.1, and Python 3.12.3. Go checks used
GOPROXY=off GOTOOLCHAIN=local GOFLAGS=-mod=readonlyafter a separate dependency setup step.app/internal,app/cetirun-agent-broker,app/cetirun-connections-mcp,app/cetirun-portalgo test ./... -count=1andgo vet ./...app/cetirun-agent-brokergo test -race ./internal/broker -run 'TestGitHub|TestConcurrentAccountLogin' -count=3app/internalgo test -race ./agenttools ./tlsreload -count=1make portal-test portal-lintnpm --prefix app/cetirun-portal/web run buildbash scripts/cetirun-agent-broker-helm-test.shbash scripts/cetirun-istio-helm-test.shmake -C app/cetirun-connections-mcp test vet chart-lintpython3 -B -m unittest scripts.tests.test_istio_gateway_isolation -vmake docs-checkgit diff --check origin/mainandgofmt -lon changed Go filesThe new interrupted-reauthentication and App-rename regressions were also run against the pre-fix implementation and reproduced both failures before passing with the fixes.
Not run for this PR head: full repository
make check/make test/make lint, Operator envtest, or live GitHub/Kubernetes acceptance tests. Local validation was scoped to the affected components. The final review fixes have not been deployed.Compatibility and operational impact
providers.github.appand a referenced Kubernetes Secret. Existing personal OAuth connections remain supported; incomplete App configuration is rejected./connectionsand renames the relevant navigation/actions. Gateway rendering distinguishes the exact SPA page paths from Agent paths.main.Checklist