← #13 Add zero-trust mode with local grant ledger and config command

#11 Add config command with get and set subcommands

open medium · sable · 2026-03-02 23:37 · Phase 4: AppView + Web UI

Comments — 3

sable note 2026-03-02 23:37

New CLI command: opake config get <key> and opake config set <key> <value>. Reads/writes config.toml programmatically. Keys: pds_url, trust_mode, appview_url, etc. opake config get with no key dumps all config. Validates values on set (e.g. trust_mode only accepts 'standard'/'zero-trust', URLs must parse). Does NOT expose secrets (session tokens, etc.).

sable note 2026-03-02 23:37

config get/set should also handle default_did — replace the existing set-default command with opake config set default_did <did>. The dedicated set-default command gets removed in favor of the unified config interface. Full key list: pds_url, default_did, trust_mode, appview_url.

sable note 2026-03-02 23:37

Config struct Default impl should populate appview_url from OPAKE_APPVIEW_URL env var if set. This lets deployment environments (e.g. Docker, systemd) inject the AppView URL without touching config.toml. Same pattern as OPAKE_DATA_DIR. Env var takes precedence over config file value — check env on load, not just on Default.

Generated 2026-03-03 02:53 UTC