Skip to content

installer: require ArmorIQ account; abort on declined connect#5

Merged
Harihara04sudhan merged 1 commit into
mainfrom
installer/require-armoriq-connect
May 29, 2026
Merged

installer: require ArmorIQ account; abort on declined connect#5
Harihara04sudhan merged 1 commit into
mainfrom
installer/require-armoriq-connect

Conversation

@Harihara04sudhan

Copy link
Copy Markdown
Contributor

Summary

  • Installer no longer allows local-only mode. If the user declines the "Connect your ArmorIQ account now?" prompt (or runs without a TTY without ARMORIQ_API_KEY), the install is aborted with a full teardown: plugin uninstalled, marketplace removed, install dir wiped.
  • Drops the --skip-login flag (no longer supported).
  • If ARMORIQ_API_KEY is set or ~/.armoriq/credentials.json already exists, the connect step is skipped non-interactively.

Why

Product direction: ArmorCopilot is account-gated. Without credentials the plugin cannot issue signed intent tokens, ship audit, or apply policy with backend visibility. Letting users finish installation in a half-broken local-only state surfaces a worse experience than aborting cleanly.

Test plan

  • Fresh install, answer Y at the connect prompt: completes normally.
  • Fresh install, answer N at the connect prompt: plugin removed, marketplace removed, ~/.armoriq/armorCopilot removed, exit code 1, "re-run when ready" message shown.
  • Fresh install via bash <(curl ...) (no TTY) without ARMORIQ_API_KEY: aborts with the no-TTY message and teardown.
  • Fresh install with ARMORIQ_API_KEY set: skips the prompt, completes silently.
  • Re-run after a successful install: skips the connect prompt (credentials.json exists).

🤖 Generated with Claude Code

Previously the installer let users decline the "Connect your ArmorIQ
account now?" prompt and continued installing in local-only mode. Per
product direction, ArmorCopilot is account-gated. If the user declines,
or runs without a TTY without ARMORIQ_API_KEY, the installer now:

  - uninstalls the plugin
  - removes the marketplace registration
  - removes the install dir
  - exits non-zero with a clear "re-run when ready" message

Also drops --skip-login (no longer a supported state) and re-runs the
same teardown if armoriq-dev login fails or produces no credentials.

If ARMORIQ_API_KEY is set or ~/.armoriq/credentials.json already exists,
the connect step is skipped non-interactively (no prompt, no abort).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 29, 2026 09:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Harihara04sudhan Harihara04sudhan merged commit 3fc6193 into main May 29, 2026
1 check failed
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.

3 participants