Skip to content

feat: persist CLI credentials for client creation#31

Open
Magic-Jia wants to merge 1 commit into
Permify:mainfrom
Magic-Jia:feat/credential-storage
Open

feat: persist CLI credentials for client creation#31
Magic-Jia wants to merge 1 commit into
Permify:mainfrom
Magic-Jia:feat/credential-storage

Conversation

@Magic-Jia
Copy link
Copy Markdown

Summary

  • Persist API token, TLS certificate path, and TLS certificate key path in the CLI profile config
  • Create Permify clients from the full persisted config instead of only the endpoint
  • Add bearer token per-RPC credentials and TLS client certificate support for gRPC connections
  • Write config files with owner-only permissions because they may now contain credentials

Test Plan

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

Closes #2
/claim #2

Store API token and TLS certificate paths in the CLI config, use the persisted configuration when creating Permify clients, and keep config files owner-only because they may now contain tokens.
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.

Endpoint, Token, Cert Path, and Cert Key Storage for CLI Tool

1 participant