Skip to content

[codex] persist permify cli credentials#36

Draft
kitwongpixel wants to merge 1 commit into
Permify:mainfrom
kitwongpixel:codex/permify-credentials-storage
Draft

[codex] persist permify cli credentials#36
kitwongpixel wants to merge 1 commit into
Permify:mainfrom
kitwongpixel:codex/permify-credentials-storage

Conversation

@kitwongpixel
Copy link
Copy Markdown

Summary

Persist Permify connection credentials in a dedicated per-profile credentials file and wire the CLI client to load endpoint, token, and optional mTLS material from it.

Why

The issue requests that the CLI stop forcing users to re-enter connection details and instead retrieve them from storage when building the client.

What changed

  • Added ~/.permify/credentials storage with per-profile endpoint, token, cert path, and cert key values.

  • Updated client.New to read stored credentials, attach bearer metadata, and select insecure/TLS/mTLS transport options as appropriate.

  • Extended configure to collect and persist the new credential fields alongside the existing profile config.

  • Added regression tests for credential persistence and client credential handling.

Validation

  • git diff --check
  • go test ./...

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