Skip to content

[Feature]: Simplify Vault and Cache Path Configuration for OSS CLI #135

Description

@shanchunyang0919

Problem Statement

The current OSS CLI requires two specific paths to be correctly configured for executing commands:

  • .identity/cache.json (for cache validation)
  • vault.json (path must match what’s stored in the VaultConfig Go struct)

This setup can be confusing for users, especially in multi-container environments like Docker-Compose or Kubernetes, where managing shared volumes and ensuring consistent path configurations across containers is challenging.

Proposed Solution

Introduce a more user-friendly configuration mechanism for the OSS CLI to:

  1. Automatically detect or validate the required paths (cache.json and vault.json) during runtime.
  2. Provide clear error messages or warnings if the paths are misconfigured.
  3. Optionally, allow users to specify these paths via environment variables or a centralized configuration file to simplify setup.

Alternatives Considered

No response

Additional Context

No response

Checklist

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions