Skip to content

Support native GitHub App installation token minting for credential providers #5664

Open

Description

@stevenlee-oai

An OpenShell-backed installation needs to keep the GitHub App private key with OpenShell while still delivering usable, short-lived GitHub installation tokens to sandboxed agents. Today OCE signs a GitHub App JWT and exchanges it for an installation token; keeping that minting service in OCE would break end-to-end OpenShell credential lifecycle ownership or require OCE to retrieve the App private key.

Please add a native GitHub App installation provider/refresh strategy that:

  • Stores the App private key as non-injectable OpenShell-owned material.
  • Signs the App JWT and calls GitHub's POST /app/installations/{installation_id}/access_tokens endpoint.
  • Delivers only the resulting usable installation token to authorized attached sandboxes, and renews/caches it according to expiry.
  • Keeps the private key and App JWT out of sandbox injection and runtime credential export.

OCC can continue enforcing additional per-request repository or branch policies through OpenShell middleware; that authorization is separate from token minting. Dynamic token downscoping is outside this issue's OCE requirement.

Previous tracking issue #3941 was automatically closed as stale, although implementation PR #3676 remains open. GitHub API reference.

Activity

  1. johntmyers commented on Nov 18, 2026

    @johntmyers
    Collaborator

    @mrunalp should this be delivered as a cred issuer? The linked PR may be obsolete if so

  2. grs commented on Nov 18, 2026

    @grs
    Contributor

    I have updated PR #3676 and changed it to reference this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:triage-neededOpened without agent diagnostics and needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions