feat: multiple GitHub Apps with per-app metrics observability#28
Draft
Copilot wants to merge 5 commits into
Draft
feat: multiple GitHub Apps with per-app metrics observability#28Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
Co-authored-by: AlexandreODelisle <39196192+AlexandreODelisle@users.noreply.github.com>
…t mounts Co-authored-by: AlexandreODelisle <39196192+AlexandreODelisle@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for multiple GitHub Apps with different permissions
feat: multiple GitHub Apps with per-app metrics observability
Mar 10, 2026
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.
A single GitHub App creates permission over-reach and rate limit pressure. This adds full multi-app support with per-app Prometheus metrics and Helm chart wiring for Kubernetes deployments.
Metrics evolution
Five metrics were missing the
applabel, making them useless in multi-app deployments:POLICY_LOADS_TOTAL[backend, result][app, backend, result]POLICY_CACHE_HITS[app]POLICY_CACHE_MISSES[app]GITHUB_API_CALLS[endpoint, result][app, endpoint, result]GITHUB_TOKEN_ISSUED[scope, permissions][app, scope, permissions]Callers in
policy_loader.py,github_app.py, andrate_limit.pyupdated accordingly.Helm chart: multi-app configuration
New
github.appsmap invalues.yamlallows configuring multiple apps, each backed by its own Kubernetes Secret:When
github.appsis non-empty:configmap.yamlrenders anapps:block in the YAML config, with each app'sprivate_key_pathpointing to its mounted volumedeployment.yamladds avolumeMountper app at/etc/github-sts/apps/{appName}/, backed by asecretvolume scoped viaitems:to only the private key fileThe existing single-app env var path (
github.appId+github.existingSecret) remains fully backward-compatible and can coexist withgithub.appsentries.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.