Skip to content

feat(fleet): unify auth resolution at CLI level#279

Merged
davideast merged 1 commit intomainfrom
feat/fleet-auth-unification
Mar 10, 2026
Merged

feat(fleet): unify auth resolution at CLI level#279
davideast merged 1 commit intomainfrom
feat/fleet-auth-unification

Conversation

@davideast
Copy link
Collaborator

  • Move all auth logic into getAuthOptions() — priority-ordered key search, deprecation warnings for legacy env var names, partial-config detection, GH_TOKEN fallback, auto-format detection in resolvePrivateKey()
  • Simplify workflow templates to auth-agnostic: no decode-key step, no create-github-app-token action, all 5 env vars always passed
  • Remove auth parameter from buildWorkflowTemplates and all template builders
  • Update live workflows in jules-sdk to simplified pattern
  • Canonical env var: FLEET_APP_PRIVATE_KEY_BASE64

BREAKING CHANGE: buildWorkflowTemplates() no longer accepts an auth parameter. Templates are now auth-agnostic — the fleet CLI resolves auth internally.

- Move all auth logic into getAuthOptions() — priority-ordered key search,
  deprecation warnings for legacy env var names, partial-config detection,
  GH_TOKEN fallback, auto-format detection in resolvePrivateKey()
- Simplify workflow templates to auth-agnostic: no decode-key step, no
  create-github-app-token action, all 5 env vars always passed
- Remove auth parameter from buildWorkflowTemplates and all template builders
- Update live workflows in jules-sdk to simplified pattern
- Canonical env var: FLEET_APP_PRIVATE_KEY_BASE64

BREAKING CHANGE: buildWorkflowTemplates() no longer accepts an auth parameter.
Templates are now auth-agnostic — the fleet CLI resolves auth internally.
@davideast davideast merged commit 11dcfc9 into main Mar 10, 2026
5 of 6 checks passed
@davideast davideast deleted the feat/fleet-auth-unification branch March 10, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant