Skip to content

refactor: remove dead deploy-key scaffolding (CLI)#26

Merged
Taure merged 1 commit into
mainfrom
fix/remove-dead-deploy-key-scaffolding
Jul 3, 2026
Merged

refactor: remove dead deploy-key scaffolding (CLI)#26
Taure merged 1 commit into
mainfrom
fix/remove-dead-deploy-key-scaffolding

Conversation

@Taure

@Taure Taure commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

PR1 of the credential-model cleanup. asobi deploy is a pull model - the CLI uploads the bundle to saas over its Bearer access token (auth.DeployBundle), saas stores it, and the engine pulls its own bundle via /internal/bundle with x-engine-key. The CLI never holds an engine credential, so the direct-to-engine deploy + ephemeral-key-mint paths are orphaned.

Removed (all no callers)

  • cmd/asobi/main.go: resolveDeployCredentials, cmdDeployEphemeral
  • internal/auth/saas.go: MintKey, EphemeralDeploy (+ response types)
  • internal/client/client.go: Client.Deploy, DeployRequest, DeployResponse (kept Script - used by internal/deploy)
  • internal/auth/device_test.go: the two MintKey tests

Kept (live)

DeployBundle, ListEnvs/ListEnvs2, CreateEnv, Destroy, RefreshAccessToken, Client.Health, and --ephemeral on env list (a different, live env-listing feature).

Verify

go build ./..., go vet ./..., go test ./... all green.

First of 4 dead-code PRs; the matching saas /internal/cli/mint-key + /ephemeral-deploy routes are removed in PR2 (merge this first).

asobi deploy is a pull model: the CLI uploads the bundle to saas over its
Bearer access token (auth.DeployBundle), saas stores it, and the engine
pulls its own bundle with x-engine-key. The CLI never holds an engine
credential. These paths were orphaned (no callers):

- main.go: resolveDeployCredentials, cmdDeployEphemeral
- auth/saas.go: MintKey, EphemeralDeploy (+ their response types)
- client/client.go: Client.Deploy, DeployRequest, DeployResponse (kept
  Script, used by internal/deploy)
- auth/device_test.go: the two MintKey tests

Removes the ephemeral cli_deploy key-mint client surface. build/vet/test
green. First step of the credential-model cleanup (server-side mint/
validate routes follow).
@Taure
Taure merged commit aeafd59 into main Jul 3, 2026
1 check passed
@Taure
Taure deleted the fix/remove-dead-deploy-key-scaffolding branch July 3, 2026 13:30
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