Skip to content

Store app PEM secret immediately after creation to survive partial install failures #324

Closed

Description

@rh-hemartin

What happens

When fullsend admin install fails partway through (e.g., at the dispatch token step), the GitHub Apps have already been created but the secrets layer hasn't run yet. The PEM private key exists only in memory and is lost when the process exits.

On re-run, the installer finds the existing app but cannot locate its private key secret, producing:

app <slug> exists but its private key secret is missing;
run 'fullsend admin uninstall' first, then delete the app at
https://github.com/apps/<slug> and re-run install

The user must uninstall, manually delete each app in the browser, and start over.

What should happen

The installer should store each app's PEM secret on the .fullsend repository immediately after creating the app, before proceeding to the next role or any subsequent step. Since the .fullsend repo and workflows are created before app setup, the repo is available for secret storage at that point.

This makes partial install failures recoverable — re-running install would find both the app and its secret, and proceed from where it left off.

Activity

  1. added
    component/install
    on Apr 22, 2026
  2. ralphbean commented on Apr 22, 2026

    @ralphbean
    Member

    Totally agree!

  3. fullsend-ai-triage commented on May 5, 2026

    @fullsend-ai-triage

    RICE Priority Score: 1.8

    Score breakdown
    Dimension Score Reasoning
    Reach 1.5 This affects every org that runs fullsend admin install and encounters a partial failure. With fullsend-ai in early-stage onboarding, all three strategic customers (konflux-ci, openkaiden, guacsec) must go through install, and partial failures during setup are a realistic scenario. The issue was filed by a Red Hat contributor (rh-hemartin) with agreement from another contributor (ralphbean), indicating it has been hit in practice.
    Impact 1.5 When triggered, the user must fully uninstall, manually delete each GitHub App in the browser, and re-run install from scratch. This is a significant pain point during onboarding — exactly the moment when user trust and first impressions matter most. However, it only manifests on partial install failure, not on every install, which tempers the impact from 'blocking' to 'significant pain point'.
    Confidence 0.8 The issue is well-described with a clear reproduction scenario, exact error message, and a specific proposed solution (store PEM immediately after app creation). The scope and fix path are well-understood, giving high confidence in all three estimates.
    Effort 1 The proposed fix is well-scoped: reorder the install flow so that PEM secrets are stored on the .fullsend repo immediately after each app is created, rather than in a later batch step. This requires understanding the install flow and modifying the sequencing of operations, likely touching a few files in the install/admin command path. Medium complexity — not trivial but not architecturally risky.

    Formula: (1.5 × 1.5 × 0.8) / 1 = 1.8

  4. added a commit that references this issue on May 5, 2026
    c0f1e5f
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

    component/install

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions