Skip to content

feat: add credential storage for endpoint, token, cert path and cert key#42

Open
GautamKumarOffical wants to merge 1 commit into
Permify:mainfrom
GautamKumarOffical:feature/credential-storage
Open

feat: add credential storage for endpoint, token, cert path and cert key#42
GautamKumarOffical wants to merge 1 commit into
Permify:mainfrom
GautamKumarOffical:feature/credential-storage

Conversation

@GautamKumarOffical

Copy link
Copy Markdown

Summary

Implements credential storage for the Permify CLI tool as requested in #2.

Changes

  • ****: Added , , and fields to struct. Added and helper functions. Updated to detect SSL when cert path is provided.
  • ****: Added struct and updated to accept optional credentials. Implemented for per-RPC token auth and for TLS certificate loading.
  • ****: Updated configure flow to prompt for token, cert path, and cert key (all optional, can be skipped by pressing enter).
  • ****: Updated all client factories to pass stored credentials from config.

Features

  • Token-based authentication via gRPC per-RPC credentials
  • TLS support via certificate and key file pairs
  • All credential fields are optional and backward-compatible
  • Credentials stored securely in the YAML config file
  • Proper error handling for missing/invalid credentials

Closes #2

Store and retrieve endpoint, token, cert path, and cert key in the CLI
configuration. Supports token-based authentication via per-RPC credentials
and TLS via certificate/key file pairs. Credentials are prompted during
'permctl configure' and persisted in the YAML config file.

Closes Permify#2

Signed-off-by: Gautam Kumar <gautamkumarofficial@users.noreply.github.com>
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