Skip to content

chore: deprecate plaintext token fallback in credential store#140

Merged
rhuanbarreto merged 2 commits into
mainfrom
chore/deprecate-plaintext-credentials
Mar 22, 2026
Merged

chore: deprecate plaintext token fallback in credential store#140
rhuanbarreto merged 2 commits into
mainfrom
chore/deprecate-plaintext-credentials

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Mark the legacy plaintext token storage in ~/.archgate/credentials as deprecated
  • Users on the legacy fallback path now see a warning: "Token loaded from plaintext file (deprecated). Run archgate login refresh to migrate to secure credential storage."
  • Code comments document that the token field and file-based fallback will be removed in the next major version

Context

The credential-hardening plan (internal/plans/credential-hardening-plan.md) has been fully resolved by the git credential manager migration in #138. The plan file has been removed from the internal repo.

This PR adds deprecation markers so the legacy path can be cleanly removed in v1.0.

Test plan

  • Lint passes
  • All tests pass

🤖 Generated with Claude Code

Mark the legacy plaintext token storage (in ~/.archgate/credentials) as
deprecated. Users on the legacy path now see a warning to run
`archgate login refresh` to migrate to the git credential manager.

The token field in the credentials file and the file-based fallback
will be removed in the next major version.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 22, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: f5f0614
Status: ✅  Deploy successful!
Preview URL: https://2e435741.archgate-cli.pages.dev
Branch Preview URL: https://chore-deprecate-plaintext-cr.archgate-cli.pages.dev

View logs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rhuanbarreto rhuanbarreto merged commit 8cdffd4 into main Mar 22, 2026
8 checks passed
@rhuanbarreto rhuanbarreto deleted the chore/deprecate-plaintext-credentials branch March 22, 2026 20:31
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