Skip to content

github setup prompts for app PEM when apps already exist in the org #32

Description

@guyoron1

What happens

Running github setup against an org where GitHub Apps are already installed prompts for a .pem file path for each role:

App <slug> exists but its private key is missing.
Do you already have the .pem file? [Y/n]

What should happen

github setup uses OIDC mint mode (--mint-url). The mint holds all PEMs. When an app is already installed, it should be reused silently without prompting for a local key file.

Context

runGitHubSetupPerOrg calls runAppSetup with empty mintProject, so no gcf.Provisioner is created. The fallback secretExists callback checks GitHub repo secrets (FULLSEND_<ROLE>_APP_PRIVATE_KEY), which don't exist in OIDC-mint-mode installs (PEMs are in Secret Manager). The check returns false → handleExistingApprecoverPEM → interactive prompt.

Relevant code

  • internal/cli/github.go:502runAppSetup call with empty mintProject
  • internal/cli/admin.go:1346–1357 — GitHub-secrets secretExists fallback
  • internal/appsetup/appsetup.go:580–611handleExistingApprecoverPEM

Mirrored from fullsend-ai#2163

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/highSignificant impact, address soonready-to-codeTriaged and ready for the code agenttype/bugConfirmed defect in existing behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions