3 Commits

Author SHA1 Message Date
f6bb13271d feat: add env/secret flags to config entries
Worker changes:
- KVEntry now has optional env (default true) and secret (default false) fields
- PUT /config/:key accepts env and secret in request body
- New PATCH /config/:key endpoint to update flags without changing value
- GET and sync responses include env/secret flags
- Backward compatible: existing entries default to env=true, secret=false

CLI changes (cli/cfg-node):
- cfg set supports --no-env and --secret flags
- cfg env skips entries with env=false
- cfg list shows no-env/secret flags with color
- New cfg flags command to view/modify flags on existing keys

Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
2026-04-21 10:34:31 +08:00
7ea436be34 fix: pass CONFIG_KV binding to handlePut, add custom domain config 2026-04-20 14:02:58 +00:00
4c6271a21a init: config service — layered KV store with CF Worker + CLI
- CF Worker with shared/personal scope layering
- Python CLI client (cfg) with sync/get/set/list/delete
- Agent registration script
- Auth via bearer token, sha256 hash lookup
2026-04-20 13:02:11 +00:00