Config v2: XDG, permissions check, env/command secret indirection, back-compat
- Dominant language
- Go
- Stars
- 218
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
XDG path (~/.config/dbui/config.yml), 0600 warning, ${ENV_VAR} expansion in DSNs, dsn_cmd for secret managers (1Password/pass/security) — no native keyring lib (dsn_cmd covers it and works headless). Validation at load (duplicate aliases, unknown types, empty DSN). Legacy ./dbui.yml, ~/dbui.yml and -dsn/-type/-f keep working with a one-time deprecation notice.
**Acceptance:** existing documented setups work unchanged; secrets never need to live in the file; validation errors are positional.
Contributor guide
Research direction
Start by tracing the current configuration loading and the -dsn, -type, and -f command-line entry points. Compare the existing behavior with the XDG path, legacy paths, environment and dsn_cmd inputs, permission warning, validation, and deprecation requirements; done means documented setups remain compatible and validation errors identify their positions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100