Skip to content

Phase 5: Decommission GITHUB_ADMIN_PAT (#432) #440

Open

Description

@neuromechanist

Scope

Two-cycle soak then revoke.

Soak

  • After Phase 3 ships and reaches production, monitor for two release cycles (~2 weeks) with `getDefaultGitHubAuth` preferring App auth but PAT fallback wired.
  • Watch `github-rl` log lines: confirm orchestrator activity is attributed to the App bucket (`resource=core`, different reset cadence than the user bucket).
  • Run a 20-dataset publish-approve batch (similar shape to bruaristimunha's batch that surfaced the issue) and verify no 403 rate-limit errors.

Decommission

  • Remove `GITHUB_ADMIN_PAT` from prod + dev Worker secrets:
    ```bash
    npx cfman wrangler --account sccn secret delete GITHUB_ADMIN_PAT -c backend/wrangler-sccn.toml
    npx cfman wrangler --account sccn secret delete GITHUB_ADMIN_PAT -c backend/wrangler-sccn.toml --env dev
    ```
  • Delete the PAT-fallback branch in `getDefaultGitHubAuth`. `GitHubAuth` union loses the `pat` variant.
  • Update tests to drop PAT-mode coverage.
  • Revoke the underlying user PAT in GitHub Settings.
  • Remove `GITHUB_ADMIN_PAT` from `Bindings` interface and any documentation.

Acceptance

  • No reference to `GITHUB_ADMIN_PAT` anywhere in `backend/src`.
  • Worker secrets confirm only `GITHUB_APP_ID`, `GITHUB_APP_PRIVATE_KEY`, `GITHUB_APP_INSTALLATION_ID` (and any per-org installation IDs) are configured for GitHub auth.
  • Prod and dev e2e both pass.

Part of epic #432. Depends on Phase 4 + 2-cycle soak.

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

    P2infrastructure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions