Skip to content

Fly setup wizard: one GitHub device sign-in for enrollment, first administrator and dashboard login (not three) #3923

Done

Description

@integry

Problem

A Fly dashboard launch on the ProPR App path asks the user to complete GitHub's device sign-in three times, with the same account against the same App:

  1. GitHub step (startDeviceSignIn / deviceSignInProgress in src/flyLaunch/connectRoutes.ts): device flow to enroll the relay token; the user token is used once and discarded.
  2. Administrator step (startAdminDevice / adminDeviceProgress): a second device flow only to read the user's profile and check userCanAccessRelayInstallation.
  3. Dashboard login after setup finishes: a third device flow for the browser session.

Reported by the maintainer during the 0.9.4 release-candidate test: "I had to do the device login like 3 times during the setup+login". It is the most tedious part of the launch, and it will show in the launch video.

Wanted: one sign-in

  • Use the GitHub step's device sign-in for all three purposes. While the wizard holds that user token in memory (as it already does while the user picks an installation), also:
    • read the profile and run the installation access check, and make that user the first administrator (admin, PROPR_ADMIN_USERS). The Administrator step becomes a confirmation ("You are @login; you will be the first administrator") with a "Use a different GitHub account" option that runs the existing admin device flow;
    • when setup finishes, sign the same browser in to the dashboard: issue the normal dashboard session for that admin to the browser that completed the wizard (it is already authenticated to the wizard by the setup code), so the user lands signed in.
  • The pasted-token fallback path should do the same where the token allows it (profile + access check); otherwise keep the separate admin sign-in there.
  • Keep the token guarantees from connectSetup.ts: never stored, logged or rendered; discarded when the wizard no longer needs it, at the latest when setup finishes or the step changes. The dashboard session must not embed the GitHub token beyond what the normal dashboard login stores.
  • Update the stepper (if the Administrator step folds into the GitHub step, the wizard has one step fewer), the setup-fly docs, and the tests: one device flow from launch to a signed-in dashboard; "use a different account" still works; the session is bound to the wizard browser only; expired/cancelled device flows; pasted-token path.

Acceptance

From a fresh launch, the user completes GitHub's device sign-in once and ends on the dashboard signed in as the first administrator.

Activity

  1. propr-dev commented on Nov 30, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3923/gpt-6.2-sol-fly-setup-wizard-one-gith-20261130-1333-e3p
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3923-20261130-1333-gpt-6.2-sol-e3p

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3924, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions