feat(cli): add forge creds — unified credential management #17
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/cli-creds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a single
forge credsumbrella over every credential plane ForgeGraph touches:/api/fg/integrations(encrypted)~/.forgegraph/credentials.json/api/fg/ssh-keysSubcommands
creds status— aggregate audit view across all planes (where stored, valid/active, last verified)creds set <provider>— store/update a credential (integration token, CLI token, or SSH key)creds rotate <provider>— rotate an integration token or a Postgres passwordcreds rm <provider>— remove/revoke a credentialIntegration providers already had full server-side CRUD on
/api/fg/integrations(GET / POST-upsert / DELETE) but no CLI write path — you had to use the web UI. This exposes set/rotate/rm and unifies it with the existingauth,ssh-key, anddb rotate-passwordflows. Provider registry + parsing helpers are unit-tested (creds_test.go); fullcmd/fg/commandssuite passes.Smoke-tested live:
creds statuscorrectly aggregates cloudflare+hetzner (active), forgejo (not set), 3 SSH keys, auth, and postgres.🤖 Generated with Claude Code
forge creds— unified credential management